Skip to content

Instantly share code, notes, and snippets.

@kylewest
Created August 22, 2012 17:31
Show Gist options
  • Save kylewest/3427780 to your computer and use it in GitHub Desktop.
Save kylewest/3427780 to your computer and use it in GitHub Desktop.

Changes to Shipping Adjustments

Shipping Adjustments allow you to change the shipping rates displayed for a particular Brand, Product Group, or Item.

The Old Way

Shipping Adjustments were applied to all available shipping methods. For example, if you enable UPS Ground and UPS Next Day Air and define a 100% shipping discount, both UPS Ground and UPS Next Day Air would calculate to $0.00.

The New Way

  • Percentage Discount shipping adjustments will be applied to all shipping methods unless the resuling rate is $0.00 (a 100% discount).

  • Fixed Amount Discount shipping adjustments will be applied to all shipping methods unless the resulting rate is $0.00 (adjustment >= rate).

  • Rates adjusted to $0.00 with the two aforementioned methods will be discarded and a new rate "Free Shipping" will be added.

  • Fixed Price shipping adjustments will replace all rates with the name "Fixed Rate Shipping". No other rates will be shown or calculated.

Examples

For the purposes of our examples we'll assume the following rates are returned from UPS:

Method Amount
UPS Ground $10.00
UPS Next Day Air $100.00

50% Percentage Discount

Defining a 50% Percentage Discount Shipping Adjustment would result in the following rates:

Method Amount
UPS Ground $5.00
UPS Next Day Air $50.00

100% Percentage Discount

Defining a 100% Percentage Discount Shipping Adjustment would result in the following rate:

Method Amount
Free Shipping $0.00
UPS Ground $10.00
UPS Next Day Air $100.00

$15 Fixed Amount Discount

Defining a $15 Fixed Amount Discount Shipping Adjustment would result in the following rates:

Method Amount
Free Shipping $0.00
UPS Next Day Air $85.00

$50 Fixed Price

Defining a $50 Fixed Price Shipping Adjustment would result in the following rate:

Method Amount
Fixed Rate Shipping $50.00

$0 Fixed Price

Defining a $0 Fixed Price Shipping Adjustment would result in the following rate:

Method Amount
Free Shipping $0.00
UPS Ground $10.00
UPS Next Day Air $100.00
@kylewest
Copy link
Author

In the 2nd example "100% Percentage Discount" both shipping rates are removed and only "Free Shipping" remains.

This works because:

  • 100% off anything is $0
  • We don't want to show $0 Overnight

This fails because:

  • Customer cannot select full price overnight shipping ... you know, he has a big race and needs that CAI.

The same is true in the last example: "$0 Fixed Price"


Question If a shipping adjustment sets all rates to $0 should:

  1. the original rates are shown PLUS the "Free Shipping" rate.
  2. only the "Free Shipping" rate is shown.

@mattgold
Copy link

I say #1. Show the Free Shipping rate as well as the other methods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment