Latest News: (loading..)
geoffreywalton

Skip Shipping Page

6 posts in this topic

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 by geoffreywalton
CDNYYC likes this

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

How much was the total monetary value of everything the basket?

 

What was the total weight of everything in the basket?

 

Cheers

 

G

Share this post


Link to post
Share on other sites

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 by jack_frost

Share this post


Link to post
Share on other sites

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

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