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 topic has 5 replies, 3 voices, and was last updated 8 years, 5 months ago by
Tim Deeley.
-
AuthorPosts
-
June 29, 2017 at 8:50 pm #14354
Tim Deeley
SpectatorThis 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.
June 30, 2017 at 1:43 am #75948admin
KeymasterThat 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?
June 30, 2017 at 9:31 am #75949Tim Deeley
SpectatorYes – 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).
June 30, 2017 at 12:27 pm #75950wzp
ModeratoreStore 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?”
June 30, 2017 at 3:25 pm #75951Tim Deeley
SpectatorThe .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
July 2, 2017 at 10:45 am #75952Tim Deeley
SpectatorHi – 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
-
AuthorPosts
- You must be logged in to reply to this topic.