Copied to clipboard

Flag this post as spam?

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


  • Streety 358 posts 568 karma points
    Apr 24, 2012 @ 13:49
    Streety
    0

    Shopping cart items without VAT Applied

    Hi Anders

    I have a site going live this week and the client has dropped a bombshell on me.

    I need to show the minicart and cartsteps without vat only being applied.

    At the moment you cart shows VAT applied to object on the order lines. I need to change this to NET

    I did notice the object

    order.TotalPriceWithoutFeesWithoutVATFormatted

    Can I use this?

    I tried on the minicart but it doesn't seem to work?

    <!-- CART INFO START -->

    <div id="miniCartItemInfo">
    <span id="miniCartItemCount"> <xsl:value-of select="$order/@totalQuantity" /></span>
    item(s) -
    <span id="miniCartItemPrice">
    <!--<xsl:value-of select="$order/@totalPriceWithoutFeesFormatted" />-->
    <xsl:value-of select="$order/@TotalPriceWithoutFeesWithoutVATFormatted" />
    </span>
  • Anders Burla 2560 posts 8256 karma points
    Apr 24, 2012 @ 14:27
    Anders Burla
    0

    Hi Streety

    Try with a small caps t - $order/@total...

  • Streety 358 posts 568 karma points
    Apr 24, 2012 @ 14:46
    Streety
    0

    OK that's odd.

    When clicking the add to cart button. The price with vat is shown. Manually posting back and you get the pricewithout vat.

    I am amending the miniCart.xslt...is it held elsewhere?

  • Anders Burla 2560 posts 8256 karma points
    Apr 24, 2012 @ 14:55
    Anders Burla
    0

    I think the minicart is updated using javascript - so you will have to change it there as well

  • Streety 358 posts 568 karma points
    Apr 24, 2012 @ 15:31
    Streety
    0

    This is the bit that needs updating ( in case other people need to do the same).

    Its in teacommerceSimple.js

     

    function updateMiniCartUI(miniCart, order) {
    miniCart.find("#miniCartItemPrice").text(order.TotalPriceWithoutFeesWithoutVATFormatted);
    miniCart.find("#miniCartItemCount").text(order.TotalQuantity);
    }
Please Sign in or register to post replies

Write your reply to:

Draft