VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: sandomatyas on October 28, 2016, 10:39:16 AM

Title: Net price of the product with product override
Post by: sandomatyas on October 28, 2016, 10:39:16 AM
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?
Title: Re: Net price of the product with product override
Post by: sandomatyas on November 22, 2017, 16:03:31 PM
Anybody?  :-\
Title: Re: Net price of the product with product override
Post by: AH on November 22, 2017, 17:00:43 PM
Have you considered looking at

$product->prices['discountedPriceWithoutTaxTt']

$product->prices['discountedPriceWithoutTax']