Post by yeh » Tue Aug 09, 2022 6:53 pm

Hi, I am experiencing a weird issue with opencart shopping cart,

If I am a guest , on my site (https://aol.org.my/) and added some products to my cart:

http://prnt.sc/2sBGBbAeu4yA

everything is fine,

but then I logged in as a user, and goto my cart page:

http://prnt.sc/HeHCmGkXlYOy

the items in the guest cart will be merged with the items in user cart, but the quantity for the products that came from the guest cart keeps multiplying when I refresh or redirect the pages

http://prnt.sc/nlL0rsLpisdR

I have no idea what went wrong, can someone advise me on which file I should check that is causing this issue?

Thanks
Last edited by yeh on Wed Aug 10, 2022 10:41 am, edited 1 time in total.

yeh
Newbie

Posts

Joined
Wed May 07, 2014 1:23 pm

Post by thekrotek » Tue Aug 09, 2022 7:30 pm

yeh wrote:
Tue Aug 09, 2022 6:53 pm
the items in my user cart and guest cart got merged, but the quantity of items from the guest cart keeps multiplying when I refresh or redirect the pages
This is very confusing. Once you logged in, your cart stops being a guest cart. So when you say that "guest cart keeps multiplying" you need to be more specific. You either missed the step when you logged out or you're using wrong terms.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by yeh » Wed Aug 10, 2022 10:42 am

thekrotek wrote:
Tue Aug 09, 2022 7:30 pm
yeh wrote:
Tue Aug 09, 2022 6:53 pm
the items in my user cart and guest cart got merged, but the quantity of items from the guest cart keeps multiplying when I refresh or redirect the pages
This is very confusing. Once you logged in, your cart stops being a guest cart. So when you say that "guest cart keeps multiplying" you need to be more specific. You either missed the step when you logged out or you're using wrong terms.
hi, I have modified the explaination, is it still confusing?

yeh
Newbie

Posts

Joined
Wed May 07, 2014 1:23 pm

Post by yeh » Wed Aug 10, 2022 1:43 pm

anyone know where I can start looking for the bug?

yeh
Newbie

Posts

Joined
Wed May 07, 2014 1:23 pm

Post by thekrotek » Wed Aug 10, 2022 2:49 pm

yeh wrote:
Wed Aug 10, 2022 10:42 am
hi, I have modified the explaination, is it still confusing?
A simple example of multiplication would be much better than the screenshot with results. You mean like this?

Guest cart: Product A x 3 pcs
Registered cart: Product A x 2 pcs
Combined cart: Product A x 5 pcs

Then on every page load it adds 3 pcs for product A.

Professional OpenCart extensions, support and custom work.
Contact me via email or Skype by support@thekrotek.com


User avatar
Expert Member

Posts

Joined
Sun Jul 03, 2016 12:24 am


Post by paulfeakins » Wed Aug 10, 2022 5:00 pm

yeh wrote:
Tue Aug 09, 2022 6:53 pm
I have no idea what went wrong, can someone advise me on which file I should check that is causing this issue?
Very unlikely as we can't really guess what the problem is, but it's likely to be an installed extension so try disabling those in turn until the problem goes away and then the last one you disabled was the cause.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 69 guests