xavilt Posted July 4, 2016 Share Posted July 4, 2016 Hi, I'm developing a new page which will include two products, with their custom information and forms to add them to the cart. I have managed to add one in this way: <script src="/themes/jrailpass/js/product.js"></script> {include file=$tpl_dir|cat:"product.tpl" product=$product1 groups=$product1->groups combinations=$product1->combinations attributesCombinations=$product1->attributesCombinations customizationFields=$product1->customizationFields cover=$product1->cover have_image=true HOOK_PRODUCT_ACTIONS=$product1->HOOK_PRODUCT_ACTIONS} and it works properly. The problem comes when I try to add the second one. Due to product.js is not coded in order to work with different products at the same time (it has global variables with generic names) when I try to add a second product2 with a {include file} and its $product2 information, prestashop is not able to handle it. Is there a way of doing this, to load various products with their information and "add form" in the same page? Thanks a lot, xavi 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