Announcement

Collapse
No announcement yet.

Changing the cart value from 0 to £0.00

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Changing the cart value from 0 to £0.00

    Hi all,

    Not sure if this is an easy modification or if it can be achieved using JavaScript, but I would like to try and change the cart value which displays on my site from

    Cart Value: 0
    to
    Cart Value: £0.00

    When you add something to the cart it displays the cost correctly, e.g. '£1.00'.

    Thank you in advance

    Regards

    Neil

    #2
    Edit the layout that displays the cart summary. Change the line:
    Code:
    	   document.write(getCartItem(1));
    To:
    Code:
    	   var ctot = getCartItem(1);
    	   document.write(ctot == 0 ? '£0.00' : ctot);
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman, works beautifully!!

      Regards

      Neil

      Comment

      Working...
      X