[Skip to main content](#vessel-content)

#   See related products in Add to Cart Modal - How?

##

- **[janbartos24](/forum/user/29031-janbartos24 "View janbartos24's Profile")**
- [![janbartos24's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29031-janbartos24 "View janbartos24's Profile") Topic Author
- [ Offline](/forum/user/29031-janbartos24)

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 11 months ago [\#130759](#130759) by [janbartos24](/forum/user/29031-janbartos24 "View janbartos24's Profile")  *[See related products in Add to Cart Modal - How?](/forum/2-general-talk-about-hikashop/863339-see-related-products-in-add-to-cart-modal-how#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).")* was created by *[janbartos24](/forum/user/29031-janbartos24 "View janbartos24's Profile")*

Hello.

I had used the how to from [ www.hikashop.com/forum/2-general-talk-ab...-cart-modal-how.html](http://www.hikashop.com/forum/2-general-talk-about-hikashop/54757-see-product-in-add-to-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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MzMzOS1zZWUtcmVsYXRlZC1wcm9kdWN0cy1pbi1hZGQtdG8tY2FydC1tb2RhbC1ob3c/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86308
- Thank you received: 14273
-
-

12 years 11 months ago [\#130808](#130808) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[See related products in Add to Cart Modal - How?](/forum/2-general-talk-about-hikashop/863339-see-related-products-in-add-to-cart-modal-how#130808 "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).")*

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: Code:

$_REQUEST['product_id']=$product-&gt;product_id; $_REQUEST['task']='show';

after the line: Code:

$class = hikashop_get('class.currency'); echo $class-&gt;format($product-&gt;prices[0]-&gt;price_value,$product-&gt;prices[0]-&gt;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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzItZ2VuZXJhbC10YWxrLWFib3V0LWhpa2FzaG9wLzg2MzMzOS1zZWUtcmVsYXRlZC1wcm9kdWN0cy1pbi1hZGQtdG8tY2FydC1tb2RhbC1ob3c/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.159 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
