Jump to content

Your Shopping Cart Is Currently Empty


Guest Cowboy75043

Recommended Posts

Guest Cowboy75043

When I click on “View Basket†I get the message “Your shopping cart is currently emptyâ€.

I have tried to fix the problem as described in the forum at

http://www.cubecart.com/site/forums/index....24070&st=45

The original code in my .htaccess file was as follows, but this when I get the message “Your shopping cart is currently emptyâ€.

RewriteEngine on

RewriteCond %{HTTP_HOST} ^castlecopies.com$ [OR]

RewriteCond %{HTTP_HOST} ^www.castlecopies.com$

RewriteRule ^/?$ http://www.castlecopies.com/shop/ [R=301,L]

-------------------------------------------------------------------------------------------------------------------

Using the following code, when I click on “View Basketâ€, it should display the contents of my basket but instead it jumps to my Homepage. When I click on “View Basket†again from my Homepage, it then correctly displays the contents of the basket.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^castlecopies\.com$ [OR]

RewriteCond %{HTTP_HOST} !^www\.castlecopies.com [NC]

RewriteRule ^(.*) https://www.castlecopies.com/shop/ [L,R=301]

RewriteCond %{QUERY_STRING} (.+)

------------------------------------------------------------------------------------------------------

When I use the same code as above but remove the “s†from https on the RewriteCond line

RewriteEngine On

RewriteCond %{HTTP_HOST} ^castlecopies\.com$ [OR]

RewriteCond %{HTTP_HOST} !^www\.castlecopies.com [NC]

RewriteRule ^(.*) http://www.castlecopies.com/shop/ [L,R=301]

RewriteCond %{QUERY_STRING} (.+)

Click on “View Basketâ€, the page times out and I get the message “The page cannot be displayedâ€.

------------------------------------------------------------------------------------------------------------

I don’t understand the code well enough, to modify it, so that I can view the contents of the basket without first being bounced to the Homepage.

CC version 3.0.17

Server: Apache + MOD

I would greatly appreciate any help or advice.

Link to comment
Share on other sites

Guest Cowboy75043

Im not sure why you are using an htaccess file for mod_rewrite when you are not using the SEO mod, or atleast as im looking at your store right now you are not using it.

I think my host provider set up the .htacess file contents, I did not do it.

I am trying to modify the .htacess file now because that was the solution that I found on the forum.

If there is a better solution to the problem of the "empty shopping cart" I would love to try it.

I have noticed that when my basket/cart shows that it is empty, I can add a "www" to the browser URL

and then the contents of the cart show up correctly.

Adding the "s" in the .htacess file also fixes the problem but anytime you click on "View Basket" it jumps to the Homepage.

I am at a loss for what to do ??????

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...