1

A configurable product having prices as [10,12,15,15].

What will be output of the $product->getFinalPrice() ?

3
  • 2
    If this is an exam question and you are answering according to theory - usually lowest price Aug 4, 2019 at 0:28
  • For configurable products, each child product's base price is a final price. If it has any special prices then that will be subtracted on final price.
    – Ask Xah
    Aug 4, 2019 at 7:34
  • And for your question, if you skip checking child products and directly call like this => $product->getFinalPrice() you will get only a first child product price "10"
    – Ask Xah
    Aug 4, 2019 at 7:36

1 Answer 1

1

If you call directly like this, You will get only a first child product price.

$product->getFinalPrice()  

It will return 10.

1
  • Because it's lowest? Jan 23, 2021 at 14:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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