Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    May 13, 2010 @ 15:23
    Matt Brailsford
    0

    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

  • Soeren Sprogoe 575 posts 259 karma points
    May 13, 2010 @ 16:53
    Soeren Sprogoe
    0

    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:

    <xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>

    <xsl:variable name="cart" select="CommerceLibrary:GetBasket()"/>

    <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>

    Hope it can help you out!

    /SoerenS

     

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 13, 2010 @ 20:25
    Søren Spelling Lund
    0

    @Matt: Just to make sure I understand the issue correctly. Are you talking about prices returned from the catalog or the for basket?

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    May 14, 2010 @ 09:17
    Matt Brailsford
    0

    I'm talking about prices displayed in the catalog. I would like them to display inclusive of VAT.

    Many thanks

    Matt

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 21, 2010 @ 16:52
    Søren Spelling Lund
    0

    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? 

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    May 21, 2010 @ 17:11
    Matt Brailsford
    0

    Yes and Yes

  • Søren Spelling Lund 1797 posts 2786 karma points
    May 31, 2010 @ 15:43
    Søren Spelling Lund
    0

    Are you using the value in or the variant price?

    $product/product/@price
  • Søren Spelling Lund 1797 posts 2786 karma points
    May 31, 2010 @ 15:52
    Søren Spelling Lund
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft