Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

No shipping method selected, cannot proceed to checkout_payment


superkingkong

Recommended Posts

hi guys,

 

for some reason, if no shipping methods are available for that order, customer can just continue to payment page and checkout the order.

 

anyway to prevent this? like on payment page, if you don't select any any payment methods, you are not allowed to proceed to checkout_confirmation.

 

i don't want to call customer up and tell them, oh i don't ship to your address, that's why no shipping method available for your order and i will refund you.

 

any solutions will be much appreciated.

Link to comment
Share on other sites

add wt to your product so its not considered as virtual.

 

Also in shipping policy define where You do not ship.

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

  • 4 weeks later...

Hey, I've got the same issue. Of the four shipping methods, all are set to Australian Zones yet if I use a non-Australian address it provides no options and allows a $0 shipping cost checkout. What is 'wt' referred to above that I'm supposed to add to my product so it's not considered virtual? I have download disabled.

Link to comment
Share on other sites

Hey, I've got the same issue. Of the four shipping methods, all are set to Australian Zones yet if I use a non-Australian address it provides no options and allows a $0 shipping cost checkout. What is 'wt' referred to above that I'm supposed to add to my product so it's not considered virtual? I have download disabled.

 

PS If 'wt' is 'weight' then all my products already have a weight assigned. If there are no shipping methods available then surely it should block checkout?

Link to comment
Share on other sites

i'm not sure of the normal way to block this,

 

but i've figured out a way to "block" checkout if no shipping method is selected

 

NOTE: I don't have VIRTUAL PRODUCTS, so it's safe for me to apply/block this. If you have virtual products, you can't apply this. Virtual products doesn't need shipping and customers will not be able to checkout if they purchase virtual products from your store because they don't need to select shipping method.

 

On the file CHECKOUT_SHIPPING.PHP: (i'm not sure what line because i'm using normal windows notepad)

 

look for ...

 

$shipping = false;

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

 

remark the "tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));"

 

Eg:

 

$shipping = false;

// UNREMARK if want to proceed to checkout_payment without shipping module enabled

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

 

... basically, by default, if no shipping method is selected, users are still being directed to the next page, checkout_payment.php. so, i block it, no shipping, no forward :)

 

to double check,

 

there are 3 "tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));" lines ... you only have to remark the 3rd one.

 

let me know if you need further info :)

 

cheers,

leo

Link to comment
Share on other sites

Cool thanks, that blocks it so I'm out of trouble for now. But I think I'll try to sort a nice way with an error message or something so the customer knows what's happened. Cheers for your help!

Link to comment
Share on other sites

What would be really nice (if I understood enough about how it all worked :() is, it obviously sorts out what shipping methods are available, and if it comes back with none then display a message instead. Sounds easy... just have to work out how :unsure:

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...