Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to limit shipping options for customers based on weight etc.


veral

Recommended Posts

Posted

Hi all,

 

 

I have postage costs set by value (with numerous choices from economy to priority) set for customers to choose at the checkout stages.

How do I limit them so that if something is above a certain weight, they HAVE to choose the next option up?

 

My settings are similar to:

 

0.5:2.99,5.0:3.99,9999:9.99

0.5:5.99,5.0:10.99,10.0:12.99,20.0:15.99,9999:19.99

 

 

So the economy I'd want to stop at about 5.0 lbs (or whatever), and force them to choose the priority option... something like that anyway.

Ideally I'd want it limited by value - so all purchases above say $100 HAVE to go via priority...

 

 

Any clues or assistance would be greatly appreciated.

 

 

Thanks!

Posted

Hi

 

In the php file for city link in \includes\modules\shipping there is code to stop the option appearing if the3 wt is < 3kg

 

if ($total_weight < 3) { // If total ship weight is less than 3.00Kg do not show this shipping method

$this->enabled = false; // Anything under 3Kg its not economically wise to use this method (Royal Mail recommended)

} // To remove this 3.00Kg limit, simply delete these 3 lines

 

Guess this could be adapted.

 

Enjoy

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 ======>>>>>.

Archived

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

×
×
  • Create New...