Jump to content

How to pass PS variables to module


VladimirKon

Recommended Posts

In the first module i can't manage to display thumbnail image in my module using code from product.tpl . For example if i copy-paste code below to any place (under 'condition' for example)  in product.tpl it show last thumbnail image. But when i copy-paste code to my module there is no image. 

<img src="{$link->getImageLink($product->link_rewrite, $imageIds, 'cart_default')|escape:'html':'UTF-8'}"/>

 

My module hook is 'rightColumnProduct' and {debug} says $imageIds is not assigned. 

 

Module 2.

Module hook: displayProductTab / displayProductTabContent

I want to move all customization options to custom tab on product page and move all code related to customization to mymodule.tpl. Select and radio option(Size/Color ex.) works good but i can't move textfield to my module. 

i have {debug} in mymodule.tpl and $customizationFields variable have no values and it's not assigned. 

 

My modules displayed on the product page why they do not receive values from product.tpl?

How can i pass ALL prestashop product page variables to my module? 

Thanks.

Edited by VladimirKon (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...