Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Is there a way to bypass the delivery info. page?


staceyd

Recommended Posts

hi stacey. look near the top of checkout_shipping.php. there's some code for 'virtual' products that auto-forwards to chckout_payment if all products are virtual (like downloads)

 

find:

// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
 if ($order->content_type == 'virtual') {
if (!tep_session_is_registered('shipping'))  tep_session_register('shipping');
$shipping = false;
$sendto = false;
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
 }

 

edit (or better yet, copy and edit) and remove the outer if part like so:

// if the order contains only virtual products, forward the customer to the billing page as
// a shipping address is not needed
if (!tep_session_is_registered('shipping'))  tep_session_register('shipping');
$shipping = false;
$sendto = false;
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));

 

now, rather than checking for virtual first it will always just register the shipping into the session, and go to checkout_payment

Link to comment
Share on other sites

  • 1 month later...

Thanks for the tip. Works great. If the person pays by check, is there a way for me to edit the "Your order will not ship until we receive payment" text in the payment information box, as well as on the email the person receives?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...