5

I'm currently reviewing code that edit a shipping method and there's

$method->setCost([int]);
$method->setPrice([int]);

What is the difference between those two? When should they be different or the same?

Thanks

  • I think I found it while asking, cost is what the merchant pays and price is what the customer pays. – Pobe Mar 4 '15 at 22:20
  • Yes, that's the definition of these words ;-) Feel free to add it as an answer and accept your own answer as soon as the site allows it. – Fabian Schmengler Mar 4 '15 at 23:20
8

The cost is what the merchant pays.

The price is what the customer pays.

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.