Jump to content

Email Smarty Templates


Recommended Posts

Hi Denver,

'Documented' is probably too much too ask... (One of the bigger worries about PrestaShop is their code documentation)

 

But normally, they are defined in the controller of the accompanying tpl file(s), for example, the Product detail tpl file (themes/<your theme folder>/product.tpl, has smarty variables that are (mostly) defined in file controllers/front/ProductController.php

 

Mostly they will be found in the function initContent, and can be found starting with code like this:

 

$this->context->smarty->assign(array(
     ...
 

So this is normally the place to add additional variables needed in the .tpl files.

 

If it concerns a module, they may be defined in the modules/<modulename>/<modulename>.php files

 

 

Hope this helps,

pascal.

Edited by PascalVG (see edit history)
Link to comment
Share on other sites

I found: /controllers/front/PdfInvoiceController.php

 

The odd way of creating an invoice slip ID and using that in the PDF invoice instead of the order ID is what I wanted to try. No one remembers the random letters for an order. Talking on the phone can create typos in the way people pronounce certain letters. So, I wanted to use the order ID instead of the slip INVxxxxxxx and put the company address in the top right.

Link to comment
Share on other sites

I agree the random letters that are prestashop's default order number are terrible for customer communication. We use this module https://www.prestashop.com/forums/topic/218257-module-change-order-reference-using-order-id-andor-cart-id/ that way you can change the order reference directly and the invoice will be changed accordingly

Written 9 months ago, though.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...