After adding product to cart, it doesn't show in cart summary until refresh

  • Posts: 33
  • Thank you received: 0
7 years 8 months ago #264539

-- HikaShop version -- : 3.0.1
-- Joomla version -- : 3.6.5
-- PHP version -- : 5.6.30
-- Browser(s) name and version -- : Firefox 51.0
-- Error-message(debug-mod must be tuned on) -- : No error message

When adding items to the cart, they do not show immediately in the small 'Proceed to Checkout' cart module display, only when the page is refreshed or you navigate to another page. This was working correctly in previous versions of v3 Hikashop.
This is URGENT as our customer is going live this week and everything else is working well!

I've tried creating a new cart module but with the same result.

Site URL is behind a protected directory:
username: labuser
pw: vial2017

Last edit: 7 years 8 months ago by iafdesign. Reason: added extra information

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #264542

Hi,

On your website I'm not even able to add anything to the cart. When I try, I'm gettting redirected to a "the cart is empty" page.
Looking at the inspector of my browser I can see this:
monosnap.com/file/MnACJWHKdzEpytTnRbuycNy11QRcHf
The add to cart process is blocked by admin tools.
So it doesn't seem to be linked to your version of HikaShop v3 but to admin tools which is blocking the add to cart for some reasons.

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

  • Posts: 33
  • Thank you received: 0
7 years 8 months ago #264594

Hi

Thank you for the reply, I've updated Admin Tools - the problem seems to be with Ajax - www.akeebabackup.com/support/admin-tools/27190-hikashop-2.html
Would you try again?

Thanks

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 8 months ago #264595

Hi,

I see that you're using the new add to cart system and not the legacy one. However, it seems that you have a view override for the file "cart" of the view "product" in your template which is based on an old version of HikaShop and thus doesn't support the new add to cart system.
You would have to either go back to the add to cart legacy, or remove the view override on the cart.
Renaming the file templates/YOUR_TEMPLATE/html/com_hikashop/product/cart.php should easily fix that.

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

  • Posts: 33
  • Thank you received: 0
7 years 8 months ago #264639

Looking at the override for product/cart.php I couldn't see anything that we'd changed, so I took a copy and then deleted the view override and now the cart module displays correctly.

Many thanks for your prompt and helpful reply. Great service as usual.

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

Time to create page: 0.061 seconds
Powered by Kunena Forum