Implementing dynamic shipping prices in Medusa
calculatePrice
, it’s inside that the magic will happen
calculated_amount
is the price that will be displayed to the customer and used for any further calculations inside Medusa.
calculatePrice
function.
You can find the complete code on “GitHub”