Skip to content

Commit

Permalink
- fix bug in rate matching
Browse files Browse the repository at this point in the history
  • Loading branch information
andyvance committed Feb 9, 2021
1 parent c71832e commit a6cc5f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions view/frontend/web/js/shipping_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ define([
PICKUP_POINT: 'pickup_point',
COLLECT_IN_STORE: 'collect_in_store',
processRate: function(rate){
var configEntry = _.findWhere(shippingRates, {carrierCode: rate.carrier_code, rateCode: rate.method_code});
var configEntry = _.findWhere(shippingRates, {carrier_code: rate.carrier_code, rate_code: rate.method_code});
if(!configEntry){
configEntry = _.findWhere(shippingRates, {carrierCode: rate.carrier_code, rateCode: ""});
configEntry = _.findWhere(shippingRates, {carrier_code: rate.carrier_code, rate_code: ""});
}
if(!configEntry){
//no config for this option, so we don't show it
Expand Down

0 comments on commit a6cc5f7

Please sign in to comment.