yakusa Posted July 2, 2019 Share Posted July 2, 2019 (edited) Welcome, I am writing my first module which is to show in my template .tpl some info based on the data coming directly from the product controller, let's say {$product.name}. Well, everything works but only on the product page ... On the category page when the module template is hooked to the hook {hook h='displayProductListReviews' product=$product} and contains {$product.name} then I get info Notice: Undefined index: product ... When I paste the code from the module's tpl directly into the file product.tpl (thumbnail) everything works. When I add something like that to my tpl {foreach from=$products item="product"} {$product.name} {/foreach} Then it works but as you can see it's not as I would like it - it does not display info for a given product. I would add that I used all necessary implementations of the product from the ps_specials which should be just fine $products = $this->getSpecialProducts(); $this->smarty->assign( array( 'products' => $products, )); return false; Thanks for the help! Edited July 2, 2019 by yakusa (see edit history) 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