Announcement

Collapse
No announcement yet.

Remove Quantity Completely

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

    Remove Quantity Completely

    Hi guys,

    I was wondering if anyone knew if it was possible to remove the quantity option completely. I've managed to remove it from the product page I just need to remove it from the checkout process now.

    At the moment it is like this...
    QUANTITY PRICE COST
    1 £34.00 £34.00


    I am trying to get it like this.....

    PRICE COST
    £34.00 £34.00


    Thanks for any help in advance...
    http://www.pictureyourlife.co.uk
    http://www.coinwatch.co.uk

    #2
    Have you considered the confusion that might cause if the customer adds the same thing to the cart again?

    PRICE COST
    £34.00 £68.00
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Thanks for the reply Norman, with this particular website the customer is not likely to order the same thing twice, ideally I need to make the quantity invisible in the checkout but locking it so they cannot change the quantity from 1 would suffice. Any ideas?

      Thanks for you help again
      http://www.pictureyourlife.co.uk
      http://www.coinwatch.co.uk

      Comment


        #4
        To make cart quantity uneditable:

        Edit ActinicOrder.pm (in your Site folder - back it up first).

        Look for the 2 lines
        Code:
        		if ($$pProduct{"MIN_QUANTITY_ORDERABLE"} != $$pProduct{"MAX_QUANTITY_ORDERABLE"}	&& # The quantity might change
        			 $bIncludeButtons)
        change to
        Code:
        		if ($$pProduct{"MIN_QUANTITY_ORDERABLE"} != $$pProduct{"MAX_QUANTITY_ORDERABLE"}	&& # The quantity might change
        			 $::FALSE)
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Removing the Quantity display:

          Do the above patch, then look a few lines further down for
          Code:
          			$sQuantityText = "<INPUT TYPE=HIDDEN NAME=\"Q_" . $nLineCount . "\" VALUE=\"". $sQuantityText . "\">" . $sQuantityText;
          replace with
          Code:
          			$sQuantityText = "<INPUT TYPE=HIDDEN NAME=\"Q_" . $nLineCount . "\" VALUE=\"". $sQuantityText . "\">";
          Then edit the Cart layout to remove the QUANTITY column title.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Cheers Norman, thats great - just what I wanted
            http://www.pictureyourlife.co.uk
            http://www.coinwatch.co.uk

            Comment

            Working...
            X