News:

Support the VirtueMart project and become a member

Main Menu

Net price of the product with product override

Started by sandomatyas, October 28, 2016, 10:39:16 AM

Previous topic - Next topic

sandomatyas

I have to create a product XML export with some product parameters (SKU, name, etc) and I have to put the product gross and net price too. I have only one calculation rule which is a simple VAT tax.
Everything is great, I can get $product->prices['salesPrice'] as price and baseprice as net price.
But let's assume I use an override=1 price param. salesPrice gets product_override_price as gross price and as far as I can see there isn't a "without tax" version of this price.
Is there a good approach of this topic instead calculate it myself?


AH

Have you considered looking at

$product->prices['discountedPriceWithoutTaxTt']

$product->prices['discountedPriceWithoutTax']
Regards
A

Joomla 4.4.5
php 8.1