Jump to content

passing value to another page


blackwinds

Recommended Posts

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

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 by blackwinds (see edit history)
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...