Currently when setting up Shipping Methods we have the option to setup a minimum.
I would like to set a maximum purchase.
Would help me in controlling USPS selections.
Shipping Methods - Maximum Purchase
-
- Commodore (COMO)
- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
- Contact:
Re: Shipping Methods - Maximum Purchase
For USPS First class international since it can not be insured, we only do it on small products under $50.
Over $50 we would require USPS Express Mail International. But Express mail would be an option under 50 as well.
Over $50 we would require USPS Express Mail International. But Express mail would be an option under 50 as well.
-
- Commodore (COMO)
- Posts: 433
- Joined: Wed May 28, 2008 9:42 am
- Location: Concord, NC
- Contact:
Re: Shipping Methods - Maximum Purchase
I would like to also add in a great feature request.
Being able to select specific items. Just like in promo codes.
Options like:
-Only these items
-Everything but these items
etc.
Vote for me!
Being able to select specific items. Just like in promo codes.
Options like:
-Only these items
-Everything but these items
etc.
Vote for me!
- William_firefold
- Commander (CMDR)
- Posts: 186
- Joined: Fri Aug 01, 2008 8:38 am
Re: Shipping Methods - Maximum Purchase
I did this.
First find this line, ~851 for us.
Then modify the following code and insert it just below that line.
First find this line, ~851 for us.
Code: Select all
string methodName = (totalRate > 0) ? quote.Name + ": " + formattedRate : quote.Name
Code: Select all
//Decide what methods the rule applies to
if(methodName.ToString().Contains("USPS First Class") || methodName.ToString().Contains("USPS Priority Mail")){
//Set the maximum price for which these methods will be available
if(shipment.GetItems().TotalPrice()<50){
localQuotes.Add(new LocalShipRateQuote(quote.ShipMethodId, methodName, formattedRate));
}
}else{
localQuotes.Add(new LocalShipRateQuote(quote.ShipMethodId, methodName, formattedRate));
}
Re: Shipping Methods - Maximum Purchase
This code is wonderful, thank you!
~Mo
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE
Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Ablecommerce Gold R11 Catalog LIVE