Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi AndersI 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 NETI did notice the object order.TotalPriceWithoutFeesWithoutVATFormattedCan 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>
Hi Streety
Try with a small caps t - $order/@total...
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?
I think the minicart is updated using javascript - so you will have to change it there as well
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);}
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.
Continue discussion
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?
Hi Streety
Try with a small caps t - $order/@total...
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?
I think the minicart is updated using javascript - so you will have to change it there as well
This is the bit that needs updating ( in case other people need to do the same).
Its in teacommerceSimple.js
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.