blackwinds Posted October 7, 2015 Share Posted October 7, 2015 Hi to all I add lot numbers to my products I define a variable in product-list.tpl called "sayi" for each item on products i add 1 as a result it works now my products have numbers 1 to total product count but i want to show these numbers in product page i mean in product.tpl how can i post or pass this numbers to product page I dont want to put any string to my url CategoryController.php or ProductController.php can do this if how ? sorry for this easy question... Link to comment Share on other sites More sharing options...
taydotech123 Posted October 7, 2015 Share Posted October 7, 2015 you can make a module hook to displayHeader. then make a function like: function hookDisplayHeader($params){ $this->context->smarty->asssign("sayi",1) } So you can use sayi variable on anywhere in tpl file Link to comment Share on other sites More sharing options...
blackwinds Posted October 7, 2015 Author Share Posted October 7, 2015 (edited) taydotech123 thanks for reply function hookDisplayHeader($params){ $this->context->smarty->assign("sayi",1); } where to use this variable in Productcontroller.php or Categorycontroller.php I dont understand it at all ... there is an increment number at product-list.tpl and i want to pass this value to the product.tpl Edited October 7, 2015 by blackwinds (see edit history) Link to comment Share on other sites More sharing options...
blackwinds Posted October 8, 2015 Author Share Posted October 8, 2015 is there any one has an idea ? 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