Products not being added to cart
Products not being added to cart
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
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
-
- VIP Member
- Posts: 1996
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 26 times
- Been thanked: 175 times
Re: Prioducts not being added to cart
No it's not.
In your admin:
Layout Modules>Product Info - Buy Button
In github repository:
https://github.com/CE-PhoenixCart/Phoen ... button.php
Re: Prioducts not being added to cart
Thanks,heatherbell wrote: ↑Mon Apr 25, 2022 1:51 pmNo it's not.
In your admin:
Layout Modules>Product Info - Buy Button
In github repository:
https://github.com/CE-PhoenixCart/Phoen ... button.php
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.
-
- VIP Member
- Posts: 1996
- Joined: Mon Oct 07, 2019 4:39 am
- : Buy Me A Beverage
- Has thanked: 26 times
- Been thanked: 175 times
Re: Prioducts not being added to cart
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.
Re: Prioducts not being added to cart
Thanks,heatherbell wrote: ↑Mon Apr 25, 2022 3:27 pmThere 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.
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.
Re: Products not being added to cart
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.
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.
- Kofod95
- 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
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
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
Here are a lot of corns: Phoenix user guide
Re: Products not being added to cart
Thanks,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
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"
- Kofod95
- 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
Yes, that's what solved it for those two - I hope it will do the same for you!tedukes wrote: ↑Wed Apr 27, 2022 12:49 pm Is this correct?Code: Select all
Header set Cache-Control "no-cache, private"
//Daniel
I'm not smart, but sometimes even a blind chicken can find a corn.
Here are a lot of corns: Phoenix user guide
Here are a lot of corns: Phoenix user guide
Re: Products not being added to cart
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.Kofod95 wrote: ↑Wed Apr 27, 2022 2:17 pmYes, that's what solved it for those two - I hope it will do the same for you!tedukes wrote: ↑Wed Apr 27, 2022 12:49 pm Is this correct?Code: Select all
Header set Cache-Control "no-cache, private"
//Daniel
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.