Shipping Methods - Maximum Purchase

Post feature requests to this forum and a pre-configured poll will automatically be created for you.
Post Reply

How important is this enhancement to you?

It's a critical enhancement that I must have.
7
54%
It's an important enhancement but others are more critical.
2
15%
I'd like to have it but it's not that important.
2
15%
I'd never use this feature.
2
15%
 
Total votes: 13

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Shipping Methods - Maximum Purchase

Post by Robbie@FireFold » Mon Oct 13, 2008 10:38 am

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.
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Shipping Methods - Maximum Purchase

Post by kastnerd » Thu Oct 23, 2008 7:14 am

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.

Robbie@FireFold
Commodore (COMO)
Commodore (COMO)
Posts: 433
Joined: Wed May 28, 2008 9:42 am
Location: Concord, NC
Contact:

Re: Shipping Methods - Maximum Purchase

Post by Robbie@FireFold » Tue Oct 28, 2008 1:09 pm

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!
Robbie Hodge
General Manager
Robbie@FireFold.com
http://www.FireFold.com

User avatar
William_firefold
Commander (CMDR)
Commander (CMDR)
Posts: 186
Joined: Fri Aug 01, 2008 8:38 am

Re: Shipping Methods - Maximum Purchase

Post by William_firefold » Fri Nov 14, 2008 8:15 am

I did this.
First find this line, ~851 for us.

Code: Select all

string methodName = (totalRate > 0) ? quote.Name + ": " + formattedRate : quote.Name
Then modify the following code and insert it just below that line.

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));
}

User avatar
Mizmo67
Commander (CMDR)
Commander (CMDR)
Posts: 155
Joined: Wed Mar 16, 2005 5:35 pm
Location: NJ
Contact:

Re: Shipping Methods - Maximum Purchase

Post by Mizmo67 » Sat Nov 12, 2011 5:14 pm

This code is wonderful, thank you!
~Mo

Maureen Albertson
Scott's Bait & Tackle / Mystic Reel Parts LLC
Contact Me Via Store Website
Image
Ablecommerce Gold R11 Catalog LIVE

Post Reply