Announcement

Collapse
No announcement yet.

Hiding Quantity on "View Cart" page

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

    Hiding Quantity on "View Cart" page

    Hello all,

    For some reason I can't seem to hide the ability to change the quantity on the view cart page. Each section and in Design | Options are all set to "Quantity on Product Page" but qty still shows up in the "View Cart" page and can be changed.

    The ability to change the quantity shows up on both the "Product Page" and "View Cart".

    I don't want the end-user to be able to change the quantity on the "View Cart" page. Can this be done?

    Thanks,
    Lonnie
    http://www.TheLondonPoject.ca
    Located at Vancouver, Canada

    #2
    It would need Perl patches. Edit ActinicOrder.pm (back it up first). Look for the line

    my $bIncludeButtons = $_[1];

    change it to

    my $bIncludeButtons = $::FALSE;

    This is untested.

    Also if you only sell single items there's an "Order Quantity Always One" checkbox in View / Business Settings / Ordering.
    Norman - www.drillpine.biz
    Edinburgh, U K / Bitez, Turkey

    Comment


      #3
      Hi Norman,

      I gave this a shot and everything was looking good at first but when I checkout I get the occasional CGI error (divide by zero). On the view cart page it displays a quantity of 1 (which can't be changed which is what i want) but on the checkout page it doesn't carry over any quantities (displays a quantity must be at least 1, type error when I click next).

      Anyways, this is a "nice to have" feature so I'm prepared to live with it. I just wanted to provide an update to this issue.

      Thanks,
      Lonnie
      http://www.TheLondonPoject.ca
      Located at Vancouver, Canada

      Comment


        #4
        OK. Try this instead. Restore ActinicOrder to its original state and then look for the lines
        Code:
        		if ($$pProduct{"MIN_QUANTITY_ORDERABLE"} != $$pProduct{"MAX_QUANTITY_ORDERABLE"}	&& # The quantity might change
        			 $bIncludeButtons)
        change it to (only the second line changes)
        Code:
        		if ($$pProduct{"MIN_QUANTITY_ORDERABLE"} != $$pProduct{"MAX_QUANTITY_ORDERABLE"}	&& # The quantity might change
        			 $::FALSE)
        I've tested this and it seems OK.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Excellent! Seems to work perfectly.

          Thank you muchly

          Lonnie
          http://www.TheLondonPoject.ca
          Located at Vancouver, Canada

          Comment

          Working...
          X