See related products in Add to Cart Modal - How?

  • Posts: 2
  • Thank you received: 0
11 years 3 weeks ago #130759

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).

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
11 years 2 weeks ago #130808

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:

$_REQUEST['product_id']=$product->product_id;
$_REQUEST['task']='show';
after the line:
$class = hikashop_get('class.currency');
echo $class->format($product->prices[0]->price_value,$product->prices[0]->price_currency_id);
That should help the module to display itself after the display of the information of the product added to the cart.

Please Log in or Create an account to join the conversation.

Time to create page: 0.054 seconds
Powered by Kunena Forum