Jump to content
Sign in to follow this  
lewis1111

Free shipping with VAT

Recommended Posts

yea in checkout_shipping.php you do something like

 

if(!$total_weight) {
// add the free shipping code here from the shipping process switch
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}

Edited by enigma1

Share this post


Link to post
Share on other sites

I'm sorry, could you explain a little more what's meant here?

 

// add the free shipping code here from the shipping process switch

Share this post


Link to post
Share on other sites

backup your catalog\checkout_shipping.php file then open it for editing

 

locate this code

// process the selected shipping method
 if ( isset($HTTP_POST_VARS['action']) && ($HTTP_POST_VARS['action'] == 'process') ) {

 

right before the code above add this:

if(!$total_weight) {
 if (!tep_session_is_registered('shipping')) tep_session_register('shipping');
 $quote[0]['methods'][0]['title'] = FREE_SHIPPING_TITLE;
 $quote[0]['methods'][0]['cost'] = '0';
 $shipping = array('id' => $shipping,
				'title' => (($free_shipping == true) ?  $quote[0]['methods'][0]['title'] : $quote[0]['module'] . ' (' . $quote[0]['methods'][0]['title'] . ')'),
				'cost' => $quote[0]['methods'][0]['cost']);

 tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
}

 

see if it works

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×