Henri Posted June 20, 2018 Share Posted June 20, 2018 Hey there; I'm looking to take a variable called $quantity_discount that can be found in: themename/templates/catalog/_partials/Product-discounts.tpl And put it in: themename/templates/catalog/product.tpl However when doing it i get the following error: ContextErrorException in smarty_internal_templatebase.php(157) : eval()'d code line 311: Notice: Undefined index: quantity_discount As you may have guessed I'm trying to show special offers in the catalog page. But i'm also just curious how you are supposed to do this in general for other modifications. Finally, where would be a good lace to learn about this properly? I haven't been able to find any good documentation that is not fragmented or assumes a much higher level of understanding of how this works than i currently have. Link to comment Share on other sites More sharing options...
phinq1910 Posted June 20, 2018 Share Posted June 20, 2018 You need assign variable on controller before use it on template Link to comment Share on other sites More sharing options...
Henri Posted June 20, 2018 Author Share Posted June 20, 2018 1 hour ago, phinq1910 said: You need assign variable on controller before use it on template Which controller would that be? Link to comment Share on other sites More sharing options...
Henri Posted June 27, 2018 Author Share Posted June 27, 2018 Bump, i'm still stuck with this issue. Any help would be appreciated. Link to comment Share on other sites More sharing options...
Henri Posted June 27, 2018 Author Share Posted June 27, 2018 I've been scouring these forums the whole afternoon, and i stumbled on another thread which i think asked for the same thing but i honestly am not sure what the solution ended up being.... https://www.prestashop.com/forums/topic/570319-how-to-display-discounted-price-on-home-page/#elUserLink_menu Link to comment Share on other sites More sharing options...
Henri Posted June 29, 2018 Author Share Posted June 29, 2018 Well basically this https://mypresta.eu/modules/front-office-features/quantity-discounts-on-products-lists.html But without overpaying for something this silly... Link to comment Share on other sites More sharing options...
Henri Posted June 29, 2018 Author Share Posted June 29, 2018 Here is the unfortunate answer to my trouble i believe http://forge.prestashop.com/browse/BOOM-4004 $product.quantity_discounts is showing up empty on the listings page for some reasons. 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