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

#   Content module problem

##

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

8 years 4 months ago -  8 years 4 months ago [\#295119](#295119) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  *[Content module problem](/forum/27-checkout/895218-content-module-problem#295119 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8  Hi, We set a rule that when cart total more than 500$ user can choose a gift into cart. The problem is I put a module content module of gift in checkout page using module anywhere. But when click on add to cart button, the cart module on the top right corner just don't response, but when I refresh page, the gift will show in cart. Here is the url of the developing site:    diggo.com.tw  please login by test1/123456  and in checkout page you can see it. I compare the add to cart URL from shop page and check out page, the only different is in Itemid, like   www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;    www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;  What is itemid? how can I change the one in checkout page?  Could you tell me why the add to cart button doesn't work in my checkout page? but it works fine in my other pages. And what should I do to fix the problem or how can I change the itemid into other number?  Thanks in advance")* was created by *[twscott](/forum/user/43011-twscott "View twscott's Profile")*

-- HikaShop version -- : 3.5
-- Joomla version -- : 3.8

Hi,
We set a rule that when cart total more than 500$ user can choose a gift into cart.
The problem is I put a module content module of gift in checkout page using module anywhere.
But when click on add to cart button, the cart module on the top right corner just don't response, but when I refresh page, the gift will show in cart.
Here is the url of the developing site:

[ diggo.com.tw](https://diggo.com.tw)
please login by test1/123456

and in checkout page you can see it.
I compare the add to cart URL from shop page and check out page, the only different is in Itemid, like
[ www.diggo.com.tw/index.php?option=com\_hi...add=1&amp;product\_id=29&amp;](http://www.diggo.com.tw/index.php?option=com_hikashop&ctrl=product&task=updatecart&add=1&product_id=29&)Itemid=632
[ www.diggo.com.tw/index.php?option=com\_hi...add=1&amp;product\_id=29&amp;](http://www.diggo.com.tw/index.php?option=com_hikashop&ctrl=product&task=updatecart&add=1&product_id=29&)Itemid=602
What is itemid? how can I change the one in checkout page?

Could you tell me why the add to cart button doesn't work in my checkout page? but it works fine in my other pages.
And what should I do to fix the problem or how can I change the itemid into other number?

Thanks in advance

Last edit: 8 years 4 months ago by [twscott](/forum/user/43011-twscott "View twscott's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTIxOC1jb250ZW50LW1vZHVsZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 4 months ago [\#295129](#295129) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Content module problem](/forum/27-checkout/895218-content-module-problem#295129 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8  Hi, We set a rule that when cart total more than 500$ user can choose a gift into cart. The problem is I put a module content module of gift in checkout page using module anywhere. But when click on add to cart button, the cart module on the top right corner just don't response, but when I refresh page, the gift will show in cart. Here is the url of the developing site:    diggo.com.tw  please login by test1/123456  and in checkout page you can see it. I compare the add to cart URL from shop page and check out page, the only different is in Itemid, like   www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;    www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;  What is itemid? how can I change the one in checkout page?  Could you tell me why the add to cart button doesn't work in my checkout page? but it works fine in my other pages. And what should I do to fix the problem or how can I change the itemid into other number?  Thanks in advance")*

Hi,

You need to look at the AJAX request made when you click on the add to cart button:
[ monosnap.com/file/b9m3vpusOd0uElBc6M4FRBQgfMSetv](https://monosnap.com/file/b9m3vpusOd0uElBc6M4FRBQgfMSetv)
As you'll see, you have some javascript which is added to the json response and that breaks the refresh of the different areas.
That javascript is either added by another extension on your website or by a customization you made.

The following user(s) said Thank You: [twscott](/forum/user/43011-twscott "View twscott's Profile")

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

- **[twscott](/forum/user/43011-twscott "View twscott's Profile")**
- [![twscott's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/gallery/beer.png)](/forum/user/43011-twscott "View twscott's Profile") Topic Author
- [ Offline](/forum/user/43011-twscott)

Less More

- Posts: 252
- Thank you received: 1
-
-
-
-

8 years 4 months ago [\#295173](#295173) by [twscott](/forum/user/43011-twscott "View twscott's Profile")  Replied by *[twscott](/forum/user/43011-twscott "View twscott's Profile")* on topic *[Content module problem](/forum/27-checkout/895218-content-module-problem#295173 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8  Hi, We set a rule that when cart total more than 500$ user can choose a gift into cart. The problem is I put a module content module of gift in checkout page using module anywhere. But when click on add to cart button, the cart module on the top right corner just don't response, but when I refresh page, the gift will show in cart. Here is the url of the developing site:    diggo.com.tw  please login by test1/123456  and in checkout page you can see it. I compare the add to cart URL from shop page and check out page, the only different is in Itemid, like   www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;    www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;  What is itemid? how can I change the one in checkout page?  Could you tell me why the add to cart button doesn't work in my checkout page? but it works fine in my other pages. And what should I do to fix the problem or how can I change the itemid into other number?  Thanks in advance")*

Thanks, Nicolas,
I've fond the cause of the problem.
It was caused by a function I put in plugin as below. Code:

public function onAfterCartSave(&amp;$element) { $ifCheckout = UJhtmlHelper::parseUrl($_SERVER['HTTP_REFERER'], 'ctrl'); if($ifCheckout=='checkout') { $js = '&lt;script language="JavaScript"&gt; window.opener.location.reload(); &lt;/script&gt;'; echo $js; } }

I want to refresh the cart by refresh this page when user click on add to cart button in checkout window.
It works in most case, only the add to cart button ajax was disturbed, or what shall I do to achieve the purpose.

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI3LWNoZWNrb3V0Lzg5NTIxOC1jb250ZW50LW1vZHVsZS1wcm9ibGVtP3RtcGw9bWFya2Rvd24=) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86587
- Thank you received: 14326
-
-

8 years 4 months ago [\#295184](#295184) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Content module problem](/forum/27-checkout/895218-content-module-problem#295184 "-- HikaShop version -- : 3.5 -- Joomla version -- : 3.8  Hi, We set a rule that when cart total more than 500$ user can choose a gift into cart. The problem is I put a module content module of gift in checkout page using module anywhere. But when click on add to cart button, the cart module on the top right corner just don't response, but when I refresh page, the gift will show in cart. Here is the url of the developing site:    diggo.com.tw  please login by test1/123456  and in checkout page you can see it. I compare the add to cart URL from shop page and check out page, the only different is in Itemid, like   www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;    www.diggo.com.tw/index.php?option=com&#95;hi...add=1&amp;product&#95;id=29&amp;  What is itemid? how can I change the one in checkout page?  Could you tell me why the add to cart button doesn't work in my checkout page? but it works fine in my other pages. And what should I do to fix the problem or how can I change the itemid into other number?  Thanks in advance")*

Hi,

There should be nothing to do.
After the add to cart request is done, the different cart areas on the page should refresh automatically.
I tried to look again at the issue but I couldn't find the products listing anymore on your checkout.

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

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