Show price and tax including price for every variant of configurable product
-
Hello! In my shop i show two prices : normal price and tax-included price. For simple products i used getTaxInclusiveRate function to get the tax-included price, but this function does not work for configurable products. I need to write a function wich returns tax included price for every variant of an configurable product.
Has anyone done that and can help me?
-
What problem are you facing in configurable product?
-
@ionutbalasanu said in Show price and tax including price for every variant of configurable product:
Has anyone done that and can help me?
For products that can be customized, you'll need to go through each child variant, get its final price, and then apply the tax rate by hand instead of using getTaxInclusiveRate. This manner, you can figure out the right price for each variety that includes taxes and send them back as a list.
-
@ionutbalasanu
For products that can be customized, you'll need to go through each child variant, get its final price, and then apply the tax rate by hand instead of using getTaxInclusiveRate. This manner, you can figure out the right price for each variety that includes taxes and send them back as a list.