Jump to content

Where I find file for edit product details?


Recommended Posts

  • 2 weeks later...

many thanks, but I need next help with this:-)
 
in ProductController.php I paste my text php code to function "protected function formatQuantityDiscounts"
 
For example I paste echo($price); to ProductController.php (in real I need paste some php code for leasing calculator, but for example I write only echo($price); ... )

 

It is ok and it show price at left corner of page. But I need this text remove to price area. I don´t know, how pass variable to smarty array then you will be able to use it in product.tpl in theme directory

 

Please help, many thanks ...

Link to comment
Share on other sites

hello

 

you have to edit productController file located in controllers/front/ directory

 

you've got there  smarty array definition:

$this->context->smarty->assign(array(

with many variables defined inside. just define own variable there - then you will be able to use it in product.tpl file (theme file)

  • Like 1
Link to comment
Share on other sites

  • 2 years later...
  • 4 weeks later...
×
×
  • Create New...