Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Customer adds item to cart but it doesn't show up
Author « Topic »  

Bob88
Ecommerce Template Expert

958 Posts

Pre-sales questions only
(More Details...)

Posted - 12/13/2017 :  14:59:17  
We just had a weird customer call. When he adds a product to the shopping cart and goes to checkout his cart is empty. This is the only time this has happened and was wondering if you could think of any reason for this to happen. Thanks.

Sinbad
ECT Moderator

USA
65937 Posts

Posted - 12/13/2017 :  15:03:26  
Hi Bob, that can occur when switching between urls using www and non-www, you may want to check that the urls on the site are consistent (header/left menu/footer). Also make sure the store url in the admin uses the same.

Winners never quit, quitters never win
CSS and Responsive Designs
User Manual for Ecommerce Templates

Bob88
Ecommerce Template Expert

958 Posts

Pre-sales questions only
(More Details...)

Posted - 12/13/2017 :  17:14:18  
Nothing has been changed on the site in header, footer or menu for years. Do you think anything on the customers local computer could cause such a problem?

Also, when text is entered into the "Order status" area here; (adminorders.php?id=79599) and click on "Update" Nothing shows up in the form field after you go and select the order and open it up. You also have to refresh the screen to see the entered text. Doesn't seem right.

Edited by - Bob88 on 12/13/2017 18:58:54

Andy
ECT Moderator

95440 Posts

Posted - 12/14/2017 :  00:07:35  
Hi Bob

Do you have any cache plugin / module installed on your site or server as that would be a likely cause for both situations?

Andy

Please feel free to review / rate our software

Bob88
Ecommerce Template Expert

958 Posts

Pre-sales questions only
(More Details...)

Posted - 12/14/2017 :  04:07:15  
Sorry, but I don't even know what that is. How can I tell if there's a cache plugin anywhere?
Google had us add some code to our .htaccess file which I removed and now it seems to be working OK but not sure how it will affect us and Google.
Here's the code they added and that I removed. Do you think this could have been the problem and can I remove it safely?

# Enable Compression
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>

# Leverage Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>

<IfModule mod_headers.c>
<filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
Header set Cache-Control "max-age=2678400, public"
</filesmatch>
<filesmatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, private, must-revalidate"
</filesmatch>
<filesmatch "\.(pdf)$">
Header set Cache-Control "max-age=86400, public"
</filesmatch>
<filesmatch "\.(js)$">
Header set Cache-Control "max-age=2678400, private"
</filesmatch>
</IfModule>



Edited by - Bob88 on 12/14/2017 04:21:56

Andy
ECT Moderator

95440 Posts

Posted - 12/14/2017 :  04:21:47  
It's probably not that if you haven't made any changes - have you been able to recreate it by entering the URL with and then without the "www" and trying to check out?

Andy

Please feel free to review / rate our software

Andy
ECT Moderator

95440 Posts

Posted - 12/14/2017 :  04:31:28  
There is caching there and it's best not to use on a dynamic ecommerce site so I would remove this

# Leverage Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>

<IfModule mod_headers.c>
<filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$">
Header set Cache-Control "max-age=2678400, public"
</filesmatch>
<filesmatch "\.(html|htm)$">
Header set Cache-Control "max-age=7200, private, must-revalidate"
</filesmatch>
<filesmatch "\.(pdf)$">
Header set Cache-Control "max-age=86400, public"
</filesmatch>
<filesmatch "\.(js)$">
Header set Cache-Control "max-age=2678400, private"
</filesmatch>
</IfModule>

Andy

Please feel free to review / rate our software

Bob88
Ecommerce Template Expert

958 Posts

Pre-sales questions only
(More Details...)

Posted - 12/14/2017 :  04:35:55  
Yes I removed that and everything is working now. Thanks for the help.

Edited by - Bob88 on 12/14/2017 04:39:34

Andy
ECT Moderator

95440 Posts

Posted - 12/14/2017 :  04:38:48  
I would remove the above as I said and then go to

http://www.grabbarspecialists.com/products.php and add to cart, then go to http://grabbarspecialists.com/products.php and add to cart - that will tell you if there is a problem with the "www" or not. I think it's the cache code above but check this also.

Andy

Please feel free to review / rate our software
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000