Products not being added to cart

Ask the community for help and support.
tedukes
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Has thanked: 17 times
Been thanked: 1 time

Products not being added to cart

Post by tedukes »

Not sure when this started.

Last thing I remember messing with a couple months back were the Add to Cart buttons and their location. One puts it to the right of the product and the other at the bottom. I was messing with the pi thing but I can't find where that is. Can't search the forums for it because it's only 2 letters.

Little help please.

TIA
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Prioducts not being added to cart

Post by heatherbell »

tedukes wrote: Mon Apr 25, 2022 1:44 pmCan't search for it because its only 2 letters.
No it's not.
In your admin:
Layout Modules>Product Info - Buy Button
In github repository:
https://github.com/CE-PhoenixCart/Phoen ... button.php
tedukes
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Has thanked: 17 times
Been thanked: 1 time

Re: Prioducts not being added to cart

Post by tedukes »

heatherbell wrote: Mon Apr 25, 2022 1:51 pm
tedukes wrote: Mon Apr 25, 2022 1:44 pmCan't search for it because its only 2 letters.
No it's not.
In your admin:
Layout Modules>Product Info - Buy Button
In github repository:
https://github.com/CE-PhoenixCart/Phoen ... button.php
Thanks,

I have that button, but I can't find where to switch from the add to cart button to the right or at the bottom.

I have looked thru the menus. I also cannot access admin >> modules >> hooks. Previously, it was just security checks I couldn't access.

I did update a couple addons in the past weeks, will try to go back and undo those.
heatherbell
VIP Member
VIP Member
Posts: 1996
Joined: Mon Oct 07, 2019 4:39 am
Has thanked: 26 times
Been thanked: 175 times

Re: Prioducts not being added to cart

Post by heatherbell »

tedukes wrote: Mon Apr 25, 2022 2:34 pm I have that button, but I can't find where to switch from the add to cart button to the right or at the bottom.
There are 2 Buy Button modules.
In your admin:
Layout Modules>Product Info - Buy Button
Modules>Content - Buy Button (Group) product_info
Of course, the Layout module can be placed anywhere in any case.
tedukes
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Has thanked: 17 times
Been thanked: 1 time

Re: Prioducts not being added to cart

Post by tedukes »

heatherbell wrote: Mon Apr 25, 2022 3:27 pm
tedukes wrote: Mon Apr 25, 2022 2:34 pm I have that button, but I can't find where to switch from the add to cart button to the right or at the bottom.
There are 2 Buy Button modules.
In your admin:
Layout Modules>Product Info - Buy Button
Modules>Content - Buy Button (Group) product_info
Of course, the Layout module can be placed anywhere in any case.
Thanks,

Unfortunately, that wasn't the problem. I also uninstalled some recent addons update and installed the older ones. That wasn't it either.

I just moved from self-hosting the mysql backend from my home server to an Amazon Lightsail instance. Maybe something got hosed up when I imported the database.
tedukes
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Has thanked: 17 times
Been thanked: 1 time

Re: Products not being added to cart

Post by tedukes »

Something is definitely not right!!

I originally imported a OCS database, when I installed v. 1.0.8.2 (I think). Been problems ever since.

Today, I decide to start over from scratch. I installed v. 1.0.8.12, the version I was using. Could not get PayPal to install. Wasted hours trying. So, I went back to v. 1.0.8.10, it installed, got PayPal installed, no problems.

Added back some addons, checking every now and again to make sure things worked with the sample data.

Manually added all my products and then did some product attributes for downloads and a choice of options on one product. It broke again!! Cannot add products to shopping cart. Getting your cart is empty after adding something, even on a product with no attributes.

I thinks something is broken with the product attributes (not using the AJAX addon). The last product I added to my working version of v.1.0.8.12 back a month or so ago was a digital download product.
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Products not being added to cart

Post by Kofod95 »

At some point, two shops on the same host had a problem with the add to cart. This was something that would come and go and was caused by the host adding something they call 'dynamic cache', which made something go wrong with the sessions. The solution for them was to block cache entirely through .htaccess.

No idea if this will help you, but it seemed worth it to mention it.

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
tedukes
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Has thanked: 17 times
Been thanked: 1 time

Re: Products not being added to cart

Post by tedukes »

Kofod95 wrote: Tue Apr 26, 2022 8:58 pm At some point, two shops on the same host had a problem with the add to cart. This was something that would come and go and was caused by the host adding something they call 'dynamic cache', which made something go wrong with the sessions. The solution for them was to block cache entirely through .htaccess.

No idea if this will help you, but it seemed worth it to mention it.

//Daniel
Thanks,

Did a search for dynamic cache where you mentioned adding this to the .htaccess file. Is this correct?

Code: Select all

Header set Cache-Control "no-cache, private"
User avatar
Kofod95
VIP Member
VIP Member
Posts: 605
Joined: Sat Feb 06, 2021 7:38 pm
Has thanked: 80 times
Been thanked: 141 times

Re: Products not being added to cart

Post by Kofod95 »

tedukes wrote: Wed Apr 27, 2022 12:49 pm Is this correct?

Code: Select all

Header set Cache-Control "no-cache, private"
Yes, that's what solved it for those two - I hope it will do the same for you!

//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
tedukes
Posts: 87
Joined: Wed Oct 27, 2021 11:27 pm
Has thanked: 17 times
Been thanked: 1 time

Re: Products not being added to cart

Post by tedukes »

Kofod95 wrote: Wed Apr 27, 2022 2:17 pm
tedukes wrote: Wed Apr 27, 2022 12:49 pm Is this correct?

Code: Select all

Header set Cache-Control "no-cache, private"
Yes, that's what solved it for those two - I hope it will do the same for you!

//Daniel
Thanks, it didn't work for me. Does it matter where in the .htaccess file it needs to be placed? I placed it just before the rewrite section.

Getting ready to start adding products to installation #3. Going to start with a product that has 3 options. If that works, will add one with a digital download. Fingers crossed and holding my breath, LOL.
Post Reply