Denver Prophit Jr. Posted May 8, 2015 Share Posted May 8, 2015 Does anyone know where those smarty {xxxx} variables are documented? Also, the best way to get the additional variables added by various payment and shipping modules so that we can email out say the tracking number, invoice transaction number, etc? Link to comment Share on other sites More sharing options...
PascalVG Posted May 8, 2015 Share Posted May 8, 2015 (edited) 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 May 8, 2015 by PascalVG (see edit history) Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted May 10, 2015 Author Share Posted May 10, 2015 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 More sharing options...
defuzed Posted May 11, 2015 Share Posted May 11, 2015 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 Link to comment Share on other sites More sharing options...
Denver Prophit Jr. Posted May 11, 2015 Author Share Posted May 11, 2015 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now