Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I waive shipping on individual items?


minuteman1970

Recommended Posts

If you specify a product with a d/l attribute for example it becomes virtual so no shipping is added. If you see the checkout_shipping.php you have this code

 

// 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'));
 }

 

Now the problem is you have to add that attribute and will remain visible as a d/l when you browse the products. So in product_info.php and in the shopping cart you will have to remove that drop-down list and replace it with a nice cliche free shipping for this item. If you do not use d/l products at all there will be no problem if you detect a d/l attribute you simply show the nice free shipping text. If you use a combination of d/l products and products where you waive the shipping it needs additional code to differentiate whether a product has a real d/l attribute or not.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...