Post by imsvg » Fri Oct 22, 2021 2:07 pm

I'm new to this software and I'm making an implementation for a store, but the cart isn't working. When you click 'add to cart' it says added to cart but when you go to the cart then it says "Cart is empty". If anyone could help, it would be nice. Thanks!

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

Post by OSWorX » Fri Oct 22, 2021 2:55 pm

Please read this here first before continuing: viewtopic.php?f=176&t=200480

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by thekrotek » Fri Oct 22, 2021 4:54 pm

Can be literally anything: your browser, custom theme, caching extension etc.

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 » Fri Oct 22, 2021 5:43 pm

imsvg wrote:
Fri Oct 22, 2021 2:07 pm
I'm new to this software and I'm making an implementation for a store, but the cart isn't working. When you click 'add to cart' it says added to cart but when you go to the cart then it says "Cart is empty". If anyone could help, it would be nice. Thanks!
Could it be this one? viewtopic.php?t=208215

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

Post by straightlight » Fri Oct 22, 2021 7:03 pm

imsvg wrote:
Fri Oct 22, 2021 2:07 pm
I'm new to this software and I'm making an implementation for a store, but the cart isn't working. When you click 'add to cart' it says added to cart but when you go to the cart then it says "Cart is empty". If anyone could help, it would be nice. Thanks!
.htaccess, config.php and / or admin/config.php configuration issues. Also ensure your timezone setting is set correctly: viewtopic.php?f=201&t=222369&p=830270#p830270 .

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by imsvg » Fri Oct 22, 2021 9:24 pm

my website is http://lilacsandlace.cf/ and I have added one thing to my original template which is to redirect to the cart when the "add to cart" button is pressed but it is not that because the problem was happening before. I also tried completely reinstalling opencart on my website and I have the same problems. I have also another problem which is I cannot log in to the customer page and at first when I first installed it, I couldn't log in to the admin panel. But i fixed the admin page from reading the forums. Just I cannot find what to do for the Customer login and the Cart not updating.

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

Post by xxvirusxx » Fri Oct 22, 2021 9:53 pm

Enable SSL from store settings then edit both config files and replace http:// from your store url with https://

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by imsvg » Fri Oct 22, 2021 10:17 pm

xxvirusxx wrote:
Fri Oct 22, 2021 9:53 pm
Enable SSL from store settings then edit both config files and replace http:// from your store url with https://
where would the store settings be located?

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

Post by xxvirusxx » Fri Oct 22, 2021 10:24 pm

System-->Settings.

Also tell us how you added redirect to cart...

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by imsvg » Fri Oct 22, 2021 10:31 pm

xxvirusxx wrote:
Fri Oct 22, 2021 10:24 pm
System-->Settings.

Also tell us how you added redirect to cart...
I used an intruction manual from an extention.

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

Post by straightlight » Fri Oct 22, 2021 10:32 pm

imsvg wrote:
Fri Oct 22, 2021 10:31 pm
xxvirusxx wrote:
Fri Oct 22, 2021 10:24 pm
System-->Settings.

Also tell us how you added redirect to cart...
I used an intruction manual from an extention.
Contact the extension developer to resolve this issue.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by xxvirusxx » Fri Oct 22, 2021 10:39 pm

imsvg wrote:
Fri Oct 22, 2021 10:31 pm
I used an intruction manual from an extention.
Undo that modification because not compatible with 3.0x

LE. Test this
https://www.opencart.com/index.php?rout ... n_id=37598

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by imsvg » Fri Oct 22, 2021 10:50 pm

xxvirusxx wrote:
Fri Oct 22, 2021 10:39 pm
imsvg wrote:
Fri Oct 22, 2021 10:31 pm
I used an intruction manual from an extention.
Undo that modification because not compatible with 3.0x

LE. Test this
https://www.opencart.com/index.php?rout ... n_id=37598
ok i have but it hasnt changed anything. The cart still says its empty

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by ADD Creative » Sat Oct 23, 2021 12:30 am

The issue might be that your site is setting the OCSESSID cookie twice in each request, with one of them using an expires date in the past. This will just delete the session cookie.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by imsvg » Sat Oct 23, 2021 1:42 am

ADD Creative wrote:
Sat Oct 23, 2021 12:30 am
The issue might be that your site is setting the OCSESSID cookie twice in each request, with one of them using an expires date in the past. This will just delete the session cookie.
how would i do that?

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

Post by ADD Creative » Sat Oct 23, 2021 6:31 pm

Something is clearly modifying your OCSESSID cookie. It could be an extension, something to do with your hosting or modifications you have made to the setcookie code.

If you want help you would have to provide more details on what extensions your are using and what modifications you have made to the code.

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by straightlight » Sat Oct 23, 2021 10:27 pm

imsvg wrote:
Sat Oct 23, 2021 1:42 am
ADD Creative wrote:
Sat Oct 23, 2021 12:30 am
The issue might be that your site is setting the OCSESSID cookie twice in each request, with one of them using an expires date in the past. This will just delete the session cookie.
how would i do that?
You could always create a new service request in the Commercial Support section of the forum to get this fixed as a custom job.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

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

Post by imsvg » Sun Oct 24, 2021 2:45 am

ADD Creative wrote:
Sat Oct 23, 2021 6:31 pm
Something is clearly modifying your OCSESSID cookie. It could be an extension, something to do with your hosting or modifications you have made to the setcookie code.

If you want help you would have to provide more details on what extensions your are using and what modifications you have made to the code.
Should i just completly re install opencart?

Newbie

Posts

Joined
Fri Oct 22, 2021 12:06 pm

Post by xxvirusxx » Sun Oct 24, 2021 3:09 am

Download 3.0.3.8 from github, and upload all files and folders without install and image. Also if you have ocmod extensions disable all of them an try
https://github.com/opencart/opencart/ar ... enance.zip

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România
Who is online

Users browsing this forum: Semrush [Bot] and 258 guests