♥geoffreywalton Posted April 1, 2013 Share Posted April 1, 2013 (edited) Welcome to the osCommerce Skip Shipping Page add-on. There are various reasons you might want to skip the shipping page. This add-on is written to skip the shipping page if the basket total is zero and the total weight is zero. You can amend these rules to reflect your requirements. Your first shipping method will be "selected" for the order and be shown on the checkout confirmation page but you can add code to hide that if you wish. You can see this in action at www.theukwaltons.co.uk by adding items in the how to section to your basket and checking out. Only 1 edit to implement this feature. The add-on is available at Skip Shipping Page. You might be interested in another add-on, skip the payments page Edited April 1, 2013 by geoffreywalton CDNYYC 1 Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
lucky4life Posted April 1, 2013 Share Posted April 1, 2013 hello, pls i just installed this adons but its not working, how can i make it wrok??? Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted April 1, 2013 Author Share Posted April 1, 2013 Check the version of your shop. Is it 2.3.1? Check you have followed the instructions in the read me. What did you do? Cheers G @@lucky4life Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted April 1, 2013 Author Share Posted April 1, 2013 How much was the total monetary value of everything the basket? What was the total weight of everything in the basket? Cheers G Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. Link to comment Share on other sites More sharing options...
jack_frost Posted May 14, 2013 Share Posted May 14, 2013 (edited) I made this change: This is what you have written: // if the order contains only virtual products or the cart wt is zero and the cart total is zero as well, // forward the customer to the billing page as a shipping address is not needed. - www.theukwaltons.co.uk if ($order->content_type == 'virtual' || $total_weight == 0 && $cart->show_total() == 0) { But should read // if the order contains only virtual products or the cart wt is zero and the cart total is zero as well, // forward the customer to the billing page as a shipping address is not needed. - www.theukwaltons.co.uk if ($order->content_type == 'virtual' || $total_weight == 0 || $cart->show_total() == 0) { However, it seems to skip the shipping page regardless of the weight i have a product that weighs 0.00 but my other products weigh something and they skip the shipping as well Edited May 14, 2013 by jack_frost Quote Link to comment Share on other sites More sharing options...
♥geoffreywalton Posted May 14, 2013 Author Share Posted May 14, 2013 I made this change: This is what you have written: // if the order contains only virtual products or the cart wt is zero and the cart total is zero as well, // forward the customer to the billing page as a shipping address is not needed. - www.theukwaltons.co.uk if ($order->content_type == 'virtual' || $total_weight == 0 && $cart->show_total() == 0) { But should read // if the order contains only virtual products or the cart wt is zero and the cart total is zero as well, // forward the customer to the billing page as a shipping address is not needed. - www.theukwaltons.co.uk if ($order->content_type == 'virtual' || $total_weight == 0 || $cart->show_total() == 0) { However, it seems to skip the shipping page regardless of the weight i have a product that weighs 0.00 but my other products weigh something and they skip the shipping as well Your code will skip shipping if all the products are virtual products or they all have total zero wt or the basket value is zero. if ($order->content_type == 'virtual' || ($total_weight == 0 && $cart->show_total() == 0)) { This will skip skipping if all the products are virtual or the basket wt is zero and the value is zero. Nice catch. G Quote Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>. 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.