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

#   Display duplicated after adding item to cart

##

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

Less More

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

12 years 10 months ago -  12 years 10 months ago [\#136832](#136832) by [lionelpcn](/forum/user/28331-lionelpcn "View lionelpcn's Profile")  *[Display duplicated after adding item to cart](/forum/25-install-update/864393-display-duplicated-after-adding-item-to-cart#136832 "-- url of the page with the problem -- :   www.icyber.co.za/index.php/microsoftoffice.html  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.16 -- PHP version -- : 5.3.15 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : None  Hi All  I've done an automated update from the previous to the latest version of HikaShop (2.2.3)  After the update, whenever I add something to the cart (no matter which browser is used) the whole page is duplicated. It seems that it tries to display the site within the cart module. When I turn off the cart module the phenomenon disappears.  Please, I need urgent assistance since this is a Live site.  Regards, Lionel  ---EDIT--- This problem occurs when I set &quot;After a product is added to the cart&quot; to &quot;Always go to the checkout&quot;.  When I use Stay on same page and Display a popup options the problem does not occur.")* was created by *[lionelpcn](/forum/user/28331-lionelpcn "View lionelpcn's Profile")*

-- url of the page with the problem -- : [ www.icyber.co.za/index.php/microsoftoffice.html](http://www.icyber.co.za/index.php/microsoftoffice.html)
-- HikaShop version -- : 2.2.3
-- Joomla version -- : 2.5.16
-- PHP version -- : 5.3.15
-- Browser(s) name and version -- : All
-- Error-message(debug-mod must be tuned on) -- : None

Hi All

I've done an automated update from the previous to the latest version of HikaShop (2.2.3)

After the update, whenever I add something to the cart (no matter which browser is used) the whole page is duplicated. It seems that it tries to display the site within the cart module. When I turn off the cart module the phenomenon disappears.

Please, I need urgent assistance since this is a Live site.

Regards,
Lionel

---EDIT---
This problem occurs when I set "After a product is added to the cart" to "Always go to the checkout".

When I use Stay on same page and Display a popup options the problem does not occur.

- [ ![h2163a12.png](/forum/attachment/14304) ](/forum/attachment/14304 "h2163a12.png") [ ](/forum/attachment/14304?download=1 "h2163a12.png")

Last edit: 12 years 10 months ago by [lionelpcn](/forum/user/28331-lionelpcn "View lionelpcn's Profile"). Reason: New info added

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NDM5My1kaXNwbGF5LWR1cGxpY2F0ZWQtYWZ0ZXItYWRkaW5nLWl0ZW0tdG8tY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 10 months ago [\#136852](#136852) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Display duplicated after adding item to cart](/forum/25-install-update/864393-display-duplicated-after-adding-item-to-cart#136852 "-- url of the page with the problem -- :   www.icyber.co.za/index.php/microsoftoffice.html  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.16 -- PHP version -- : 5.3.15 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : None  Hi All  I've done an automated update from the previous to the latest version of HikaShop (2.2.3)  After the update, whenever I add something to the cart (no matter which browser is used) the whole page is duplicated. It seems that it tries to display the site within the cart module. When I turn off the cart module the phenomenon disappears.  Please, I need urgent assistance since this is a Live site.  Regards, Lionel  ---EDIT--- This problem occurs when I set &quot;After a product is added to the cart&quot; to &quot;Always go to the checkout&quot;.  When I use Stay on same page and Display a popup options the problem does not occur.")*

Hi,

Thanks for the report, I just corrected it on our end.

To correct it, you have to edit the file "components/com_hikashop/controllers/product.php" function "updatecart()" and replace: Code:

if($params-&gt;get('from','module') == 'module'){

By: Code:

if($params-&gt;get('from','module') == 'module' &amp;&amp; $config-&gt;get('redirect_url_after_add_cart','stay_if_cart') != 'checkout'){

Or wait for the next package.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NDM5My1kaXNwbGF5LWR1cGxpY2F0ZWQtYWZ0ZXItYWRkaW5nLWl0ZW0tdG8tY2FydD90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

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

Less More

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

12 years 10 months ago [\#137370](#137370) by [lionelpcn](/forum/user/28331-lionelpcn "View lionelpcn's Profile")  Replied by *[lionelpcn](/forum/user/28331-lionelpcn "View lionelpcn's Profile")* on topic *[Display duplicated after adding item to cart](/forum/25-install-update/864393-display-duplicated-after-adding-item-to-cart#137370 "-- url of the page with the problem -- :   www.icyber.co.za/index.php/microsoftoffice.html  -- HikaShop version -- : 2.2.3 -- Joomla version -- : 2.5.16 -- PHP version -- : 5.3.15 -- Browser(s) name and version -- : All -- Error-message(debug-mod must be tuned on) -- : None  Hi All  I've done an automated update from the previous to the latest version of HikaShop (2.2.3)  After the update, whenever I add something to the cart (no matter which browser is used) the whole page is duplicated. It seems that it tries to display the site within the cart module. When I turn off the cart module the phenomenon disappears.  Please, I need urgent assistance since this is a Live site.  Regards, Lionel  ---EDIT--- This problem occurs when I set &quot;After a product is added to the cart&quot; to &quot;Always go to the checkout&quot;.  When I use Stay on same page and Display a popup options the problem does not occur.")*

Hi Xavier

Awesome and thanks for the fix. I will however wait for the next version since I've found a good workaround.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg2NDM5My1kaXNwbGF5LWR1cGxpY2F0ZWQtYWZ0ZXItYWRkaW5nLWl0ZW0tdG8tY2FydD90bXBsPW1hcmtkb3du) 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.092 seconds

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

[](#top)
