Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Empty cart redirects wrong


tknospdr

Recommended Posts

I'm having a small problem. The issue that I'm having is that the 'Checkout' link isn't working right. If I hover over the link it shows the correct location, which should be something like:

 

https://secure.technospider.com/~ts_tgearheart/catalog/checkout_shipping.php?osCsid=xxx

 

But when I click on it part of the correct link is stripped out like so:

 

https://secure.technospider.com/catalog/checkout_shipping.php?osCsid=xxx

 

I've narrowed the problem down to this bit of code:

 

// if there is nothing in the customers cart, redirect them to the shopping cart page
 if ($cart->count_contents() < 1) {
tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));

 

Since the link works right if the cart is not empty, but I don't know where the code gets it's info from to track it any further.

 

The shop is located at http://www.tarantulaspiders.com/catalog/ - I'd really appreciate any help.

 

If this has been asked and answered someone who knows could just point me to the right thread. I've looked around but so many of these threads are so many pages long it's hard to find what you're looking for sometimes.

 

Thanks,

David

 

PS - I know I'm using a self-signed security cert, if you could just trust it for the sake of testing I'd appreciate it.

Link to comment
Share on other sites

I can't find anything wrong with your store. Do I have to login first?

Other great Open Source (Free) programs: (Free as in free speech not free beer)

The Gimp - An image program. | Firefox - All you have to do is add the Web Developer add-on to make this web browser complete. | FileZilla - An ftp program. | Inkscape - A good program to create images with. | Thunderbird - An email program. | Openoffice.org - An office suite that is compatible with MS Office. | Abiword - Another office suite. | Audacity - A sound recording tool. | ddp's Picks | Wordpress - An easy to use blogging software. | Joomla - An easy to use CMS that has ecommerce plug-ins. | Drupal - Another CMS

How do I find these programs? Google Search!

Link to comment
Share on other sites

I can't find anything wrong with your store. Do I have to login first?

Yes, if you click on the 'Checkout' button and you're not already logged in you'll have to open an account or log in. Then if the cart is empty you should be redirected to the 'Cart Contents' page.

However, during the redirect part of the URL gets stripped and you end up on an error page. If you add something to the cart it works correctly. It's a minor annoyance but I'd still like to get it sorted out.

 

Thanks,

David

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...