I don't want to load shipping method on City changed, if $valuePackage < $valueFreeShipping (because the shippinig cost in this case is zero)
How can I get these two values : $valuePackage(the total cart cost) and $valueFreeShipping (if total cart cost is greater than $valueFreeShipping , the shipping cost is zero) inside the file
vendor/..../romcity/view/frontend/web/js/model/shipping-rates-validation-rules.js ?
i need something like this
if ($valuePackage < $valueFreeShipping) {
observableFields.push('city_id'); // Load shipping method on City_id changed
}
$valuePackage and $valueFreeShipping are not defined inside the file vendor/..../romcity/view/frontend/web/js/model/shipping-rates-validation-rules.js
Thank you!