Announcement

Collapse
No announcement yet.

get rid of quantity in mini cart

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

    get rid of quantity in mini cart

    Hi

    I have successfully used Norman's workaround for selling something by the kilo, which I found and discussed in a thread here entitled selling cheese by the kilo . See it working here

    However, the method relies on breaking a product quantity into units of 100g, which is fine everywhere except on the mini cart (I think this is the term for the javascript box that appears on the catalog pages telling you the quantity and value of the basket).

    The problem is, of course, if you order 500g of cheese, the product quantity is 5 (ie 5 x 100g) not 1 (as in one 500g chunk of cheese), which puts customers off.

    What I would like to do is hide the quantity but keep the value on the mini cart, and I know I should know the javascript to do this but I don't - I've tried commenting out the relevant line in Act_Primary.html, but everything goes bananas if I do that.

    Can someone help me, please?

    Thanks

    #2
    The JavaScript that does this is in Act_Primary.html. I.e.
    Code:
                        <script language="JavaScript">
    						document.write("NETQUOTEVAR:CARTCOOKIEITEMS&nbsp;" + getCartItem(3)+"&nbsp;<BR>");
    						document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
    					</script>
    Just change to be
    Code:
                        <script language="JavaScript">
    						document.write("NETQUOTEVAR:CARTCOOKIEVALUE&nbsp;" + getCartItem(1));
    					</script>
    Norman
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks, norman. That was easy!!

      Comment

      Working...
      X