- Posts: 2
- Thank you received: 0
See related products in Add to Cart Modal - How?
- janbartos24
-
Topic Author
- Offline
Less
More
12 years 11 months ago #130759
by janbartos24
See related products in Add to Cart Modal - How? was created by janbartos24
Hello.
I had used the how to from www.hikashop.com/forum/2-general-talk-ab...-cart-modal-how.html to add the added product. Is there a way how to add below the related products?
I can pass a module position to the popup but if i try to adding related items module to this doesnot work (custom html in the module shows, so the module position added i functional).
I had used the how to from www.hikashop.com/forum/2-general-talk-ab...-cart-modal-how.html to add the added product. Is there a way how to add below the related products?
I can pass a module position to the popup but if i try to adding related items module to this doesnot work (custom html in the module shows, so the module position added i functional).
Please Log in or Create an account to join the conversation.
12 years 10 months ago #130808
by nicolas
Replied by nicolas on topic See related products in Add to Cart Modal - How?
Hi,
The issue is that if you add the display of a related products module in the popup, the module won't know for which product you're calling it. In fact, it doesn't even see itself on a product page and so it won't display the related products of the product you added to the cart.
Following the code of the other thread, you should also add such code:
after the line:
That should help the module to display itself after the display of the information of the product added to the cart.
The issue is that if you add the display of a related products module in the popup, the module won't know for which product you're calling it. In fact, it doesn't even see itself on a product page and so it won't display the related products of the product you added to the cart.
Following the code of the other thread, you should also add such code:
Code:
$_REQUEST['product_id']=$product->product_id;
$_REQUEST['task']='show';
Code:
$class = hikashop_get('class.currency');
echo $class->format($product->prices[0]->price_value,$product->prices[0]->price_currency_id);
Please Log in or Create an account to join the conversation.
Time to create page: 0.162 seconds