Jump to content
Sign in to follow this  
DesignAlot

No Shipping, Only Pickup

Recommended Posts

I was looking for a way to skip the shipping completely, and found a write up on how to do it. But when I made this change, I no longer got state tax added at the confirmation step of the checkout. Or a phone number in the email order. I put original code back in, and tax was back but so was shipping. Any better ways to pull of no shipping, or an edit to this code perhaps? Here is the code -

 

To lose all shipping verbage, make sure item weight is set to 0. Then,

In 'checkout_shipping.php' find the lines here: (Line 50)

 

// 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') || ($order->content_type == 'virtual_weight')) {

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

$shipping = false;

$sendto = false;

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

}

 

$total_weight = $cart->show_weight();

$total_count = $cart->count_contents();

 

 

 

And replace with this:

 

// IFD MOD_SQUAD BEGIN: zero weight should skip shipping page

 

$total_weight = $cart->show_weight();

$total_count = $cart->count_contents();

 

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

($order->content_type == 'virtual_weight') ||

($total_weight == 0 )) {

if (!tep_session_is_registered('shipping')) tep_session_register('shipping');

$shipping = false;

$sendto = false;

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

}

// IFD MOD_SQUAD BEGIN

;)

Share this post


Link to post
Share on other sites

If you have a pickup-only store, set up your tax class so that it applies to all zones. Then tax should be applied regardless of whether there is a shipping address. Once you do that, you should be fine skipping the shipping page, as far as tax goes.


Contributions

 

Discount Coupon Codes

Donations

Share this post


Link to post
Share on other sites

I went into tax classes and there is no way to apply to all zones. It is applied to Florida, but even a Florida customer gets no tax when all items are taxable. Which preference am I supposed to set this at?

Share this post


Link to post
Share on other sites

It appears that phone numbers just don't come in with the emails when people order. Is there a way to add an email text field that customer can fill out while still skipping shipping and tax appears on orders? Maybe this is a tall order....

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  

×