Announcement

Collapse
No announcement yet.

Javascript cart item and value - How to customize?

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

    Javascript cart item and value - How to customize?

    Hi there,

    I am currently working on a site that will have a your basket/shopping cart section that displays the amount of items and there total value.

    I have my project in progress set up at
    www.chinalifeweb.com/acatalog/
    Look for Shopping cart on bottom left navigation

    However I would like to display the results one above the other.

    Like this:

    Items:1
    Value: £101.00

    at the moment it is all on one line (Items:1 Value: £101.00)

    How can I edit the script to display in this way.

    Kind Regards

    Matt M

    #2
    The code that displays this text varies from Theme to Theme. However all you beed to do is find the code in Act_Primary.html and replace any space or &nbsp; with <br>
    Code:
                      <script language="JavaScript">
    				<!--
    				document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;");
    				document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
    				// -->				
                      </script>
    becomes
    Code:
                      <script language="JavaScript">
    				<!--
    				document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"<br>");
    				document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
    				// -->				
                      </script>
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks Norman, truley knowledgeable and always quick to help out.

      Comment

      Working...
      X