DesignAlot Posted December 4, 2006 Share Posted December 4, 2006 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 ;) Quote Link to comment Share on other sites More sharing options...
kgt Posted December 4, 2006 Share Posted December 4, 2006 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. Quote Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
DesignAlot Posted December 5, 2006 Author Share Posted December 5, 2006 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? Quote Link to comment Share on other sites More sharing options...
DesignAlot Posted December 11, 2006 Author Share Posted December 11, 2006 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.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.