How would I override the price of shipping if a customer is logged in?

For example, Flat rate shipping for guest checkout is $4.99 but if you are logged in you can get it for $2.99.

I do no understand right now how the KnockoutJS is pulling the price in for the shipping method.


You can add rules to apply the discount to loggedin users using the cart rules like that image below.

magento2 shippment amount discount

  • I would like that same functionality, but for the shipping prices not product prices. Do you know if that is available via admin or programmatically? – TylerLHM May 22 '17 at 19:50
  • I changed my answer @TylerLHM – Rafael Corrêa Gomes May 22 '17 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.