Post by DesignCart » Fri Feb 21, 2020 5:40 pm

I have a problem with the cart in my shop. It adds a product that has additional information placed in the new oc_cart column. Everything works properly, informations are transferred to the order. In admin panel I can read it.

There is one situation where this information is cleaned. When I have the product in my shopping cart and I will go to checkout, then I will choose the option with registration. During the registration at the transition to the shipping step, the data from the shopping cart disappears.

Does anyone know which file is updating the shopping cart during the checkout steps?

my website: Tworzenie sklepu internetowego Opencart


User avatar
New member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by paulfeakins » Fri Feb 21, 2020 7:28 pm

Hmm that's pretty strange. Usual questions apply:

What version of OpenCart?
What extensions?
What theme?
Any custom work?

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Expert Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom

Post by DesignCart » Fri Feb 21, 2020 8:55 pm

Thank you for your answer. I'm writing a new extension.

I found a problem. Library->cart has an index method that the basket just overwrites.

my website: Tworzenie sklepu internetowego Opencart


User avatar
New member

Posts

Joined
Thu Nov 10, 2016 2:06 pm
Location - Gubin

Post by straightlight » Fri Feb 21, 2020 9:44 pm

DesignCart wrote:
Fri Feb 21, 2020 8:55 pm
Thank you for your answer. I'm writing a new extension.

I found a problem. Library->cart has an index method that the basket just overwrites.
The default library cart does not contain an index. It contains a __construct method. Alternatively, you could create an event to pass the data that you need.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by letxobnav » Fri Feb 21, 2020 11:26 pm

the cart class tries to merge the guest cart with the registered customer cart in the construct which is flawed.

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan
Who is online

Users browsing this forum: No registered users and 34 guests