Problem with overwrite checkout templates

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Czarek
Posts: 3
Joined: 28 Jun 2021, 11:33

Problem with overwrite checkout templates

Post by Czarek » 28 Jun 2021, 11:50

Hello,

I'm trying to overwrite templates from extension (ext/ai-client-html/client/html/templates/checkout/standard).
I've found that there are couple ways to do this, depends on aimeos version probably (I have 2021.04) and none worked for me.

Where exactly can I place for example file "delivery-body-standard.php", so aimeos could load it instead of original one (from path above)?

Could you please help me with that?

PS. I don't want it to be blade.php file.

User avatar
aimeos
Administrator
Posts: 7866
Joined: 01 Jan 1970, 00:00

Re: Problem with overwrite checkout templates

Post by aimeos » 29 Jun 2021, 05:42

If you don't want to create a Blade template, there's only one way how to overwrite a PHP template. I assume you already created your own extension using the Aimeos extension generator: https://aimeos.org/extensions

Then, copy your modified file to ./ext/<yourext>/client/html/templates/checkout/standard/delivery-body-standard.php.
The path and file name must be exactly the same as in the ai-client-html extension.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Czarek
Posts: 3
Joined: 28 Jun 2021, 11:33

Re: Problem with overwrite checkout templates

Post by Czarek » 29 Jun 2021, 06:20

Thanks, this worked!

Post Reply