Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › eStore – cart won't update quantity or add more than one product
- This topic has 5 replies, 2 voices, and was last updated 11 years, 8 months ago by admin.
-
AuthorPosts
-
March 7, 2013 at 11:49 am #8698majickSpectator
Have just about everything setup for eStore so I am testing out the cart to see if it’s all working fine and found a few things…
Notes: Using WP 3.5 with Cart shortcode [wp_eStore_cart_fancy1_when_not_empty]
in a right hand sidebar text widget. WP eStore v6.9.7.2 and Extra Shortcodes v4.5.6
Issue 1. Can’t successfully change quantity (empties cart.)
[http://priceless.thekeytowealth.org/apprenticeship-program/apprenticeship-payment/]
a. Add 3 (or any number really) of single payments for the apprenticeship program.
(Result: Works fine. Quantity shows up in right hand sidebar cart.)
b. Change the quantity in the cart and press enter.
(Result: Cart is emptied and spits out the following PHP warnings:)
Warning: Invalid argument supplied for foreach() in /home/thekeyto/public_html/priceless/wp-content/plugins/wp-cart-for-digital-products/wp_eStore1.php on line 477
Issue 2. Adding a 2nd Item to Cart Removes 1st Item
[http://priceless.thekeytowealth.org/store/divination/crystal-balls/]
(or any product page this is just for example)
a. Add any quantity of 1st Item.
(Result: works fine. item added to cart in right hand sidebar.)
b. Add any quantity of another Item.
(Result: 2nd Item added but first has disappeared.)
Any ideas? Thanks.
March 7, 2013 at 10:55 pm #54264adminKeymasterHi, PHP session is not working on your server or you have another plugin that is breaking PHP session on the site. This post will help:
https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly
March 8, 2013 at 4:59 am #54265majickSpectatorGreat, thanks for that. After a LOT of activating/deactivating/testing I’ve found out the following plugins are causing the conflicts:
“WP Spam Free” and “WP SlimStat”
Any tips on for tracking down what code might be in them that could be causing the problem? I typically try to customize/fix these things myself but I’m not really sure what would be creating the issue, there are no “session” calls in either plugin. Are there any other functions that could be resetting the PHP session.
March 8, 2013 at 11:41 pm #54266adminKeymasterWhy a plugin is breaking PHP session functionality on your site is not something we can help you with in this forum unfortunately (We can’t really fix other plugins). One of the plugins you mentioned has the following notice:
There are no longer updates for now.
Because I’m really busy with school.
Maybe in the future.
That is not the kind of plugin you should use on your site. Please find an alternative (there are good alternatives for example: Akismet). Have you tried using Akismet?
March 9, 2013 at 5:30 am #54267majickSpectatorSure I understand that, could you point me to where/how the session is set in eStore?
That way I may have more of a clue in tracking things down in the other plugins.
As for WP Spam Free, I know it hasn’t been updated in a while but I’ve found it to still be far better than most, I deactivated it on a few sites awhile ago when I saw that on his website, and was inundated with spam again and turned it back on. I use a number of anti-spam plugins in combination including NoSpamNX, SABRE, Simple Trackback Validation and bcSpamBlock.
Thanks.
March 9, 2013 at 10:40 pm #54268adminKeymasterThis is how eStore starts a session:
if(!isset($_SESSION)){
@session_start();
}It checks to make sure a session hasn’t already been started before starting a new one. It will simply use the existing session if one is already running.
-
AuthorPosts
- You must be logged in to reply to this topic.