Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

redirect to shopping cart if cart is empty


andyshep

Recommended Posts

hi all,

 

i am trying to allow the checkout process to continue when the shopping cart is empty.

 

you might ask why?

 

i am trying to duplicate the checkout process for credit card payments that are not related to the shop.

 

in checkout_payment.php there is this 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));
 }

 

i thought ahhh.. just remove that and job done...

 

it is still redirecting to the shopping cart if i remove this.

 

Anyone know what else i need to change or ,

can i put a dummy product in the cart, this might seem easier but then i will need to set the price of this dummy product to ?0.00 and as ive got it setup at the moment delivery charges will be added and i dont want that.

 

any ideas anyone? cheers andy.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...