- This topic has 5 replies, 3 voices, and was last updated 7 years, 4 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore Troubleshooting › Click on add to cart displays cart with no item in it
This started to happen 2 days ago after the site went live
URL of webstore – [http://xm655.com/webstore-departments/]
Select any item and click on add to cart – cart will then display showing “Your cart is empty”.
I have disabled W3 Cache – no change.
That usually happens if there is some caching happening. Do you have any caching plugin on this site? Is your hosting provider using caching on their end?
Yes – I have W3 Total Cache plugin on the site, but this is currently deactivated, also my hosting provider had PHP FPM cache enabled, but for the last tests this was disabled.
eStore was working happily until the site was made live.(Same server but .htaccess changed to point to subdirectory containing wordpress).
eStore was working happily until the site was made live.(Same server but .htaccess changed to point to subdirectory containing wordpress).
When the site was “not live,” how were you accessing it? In other words, what were the differences between the “not live” and “live” sites; and specifically, what did you do, to make the site “live?”
The .htacccess file in the root was amended to point to the sub-directory with the insertion of the following commands
RewriteCond %[HTTP_HOST] ^(www.)?xm655.com$
RewriteRule ^(/)?$ blog[L]
The index.php was copied from the sub-directory where WordPress was originally installed. The line “require ( dirname( _FILE_ ) . ‘/wp-blog-header.php’ );” was amended to read “require ( dirname( _FILE_ ) . ‘/blog/wp-blog-header.php’ );”
These were the only changes that were made to make the site live
Hi – First of all thanks for your help
Following the information you forwarded ( https://support.tipsandtricks-hq.com/forums/topic/php-session-not-working-correctly ), I can confirm that the Hosting provider have reconfigured the PHP session configuration and also the caching of the site, and this has fixed the cart problem
Again, many thanks for your assistance