I think there is an issue with the "Show prices with VAT" checkbox on the calatlog. It doesn't seem to alter the output at all (ie prices are always shown without VAT). I'm assuming that the @price attribute on the product should have the VAT already added to it?
The basket @price, ie. the price of a single item, doesn't have VAT included. Don't ask my why, I've already mentioned it to the uCommerce devs. Can't remember what the answer was.
The way I've solved it is by taking @total of the line items and dividing it by @quantity. Which can be tricky, since @total may be in EU format whereas XSLT operates in US format (ie. using period as decimal separator).
<xsl:for-each select="$cart/purchaseOrder/lineItems/lineItem"> Single item price: <xsl:value-of select="format-number(number(umbraco.library:Replace(@total,',','.')) div number(@quantity),'#.##0,00','euro')"/><br/> </xsl:for-each>
I cannot reproduce the behavior you're describing. Tried with a product w. variants and without. Both reflect the correct price when I flip the switch on the catalog.
Show prices with VAT
Hi Guys,
I think there is an issue with the "Show prices with VAT" checkbox on the calatlog. It doesn't seem to alter the output at all (ie prices are always shown without VAT). I'm assuming that the @price attribute on the product should have the VAT already added to it?
Many thanks
Matt
The basket @price, ie. the price of a single item, doesn't have VAT included. Don't ask my why, I've already mentioned it to the uCommerce devs. Can't remember what the answer was.
The way I've solved it is by taking @total of the line items and dividing it by @quantity. Which can be tricky, since @total may be in EU format whereas XSLT operates in US format (ie. using period as decimal separator).
This is how I've solved it:
Hope it can help you out!
/SoerenS
@Matt: Just to make sure I understand the issue correctly. Are you talking about prices returned from the catalog or the for basket?
I'm talking about prices displayed in the catalog. I would like them to display inclusive of VAT.
Many thanks
Matt
Two things to check:
Did you enter a VAT percentage on the price group in Settings / Catalog / Price Group / <Your Price Group>?
Do you have "Show prices with VAT" checked on the catalog?
Yes and Yes
Are you using the value in or the variant price?
I cannot reproduce the behavior you're describing. Tried with a product w. variants and without. Both reflect the correct price when I flip the switch on the catalog.
See included screenshot: http://twitpic.com/1sr868
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.