Announcement

Collapse
No announcement yet.

Change cart quantity

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

    Change cart quantity

    When customers go to view cart it's not readily obvious how to change the quantity of an item.

    I regularly get calls from customers who say they've added one too many etc and they don't know how to reduce it.

    I know you can change the quantity and hit enter but the cart page won't tell a customer this.

    Is there a way a customer can change a quantity and hit a button to refresh/update the cart etc?

    Cheers

    #2
    If you are using a standard template, there should be an update button to refresh the cart. Maybe add some text to make this clear?
    Sam
    http://www.originaltouch.co.uk
    http://www.spcb.co.uk

    If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

    Failure is the tuition you pay for success.

    Comment


      #3
      Haven't got one?

      Hi Sam, thanks for your reply,

      it is a standard template but that button doesn't show?

      I probably cocked it up somehow,

      I'm useless with the Actinic design process, I even went on the one day course at the Actinic head office and after spending £350 I still couldn't work it out?!

      I'v been design websites for 7 years so I'm not a complete novice, just can't work out the actinic design process!

      Comment


        #4
        Revert the pages back to factory settings in the design library, they should show then, it is definitely on standard pages. You could move the update button to the top, but you will always have people that order the wrong amount, then change it and then cannot work out the maths or see what they have done.

        Comment


          #5
          Here's how to add little [+] and [-] buttons to the Quantity field in the Cart.

          Edit actiniccore.js (in your Site folder - back it up first) and append the following at the end.

          Code:
          // Increase / Decrease Cart quantities	
          function bumpup(ref){
            var qf = document.getElementById('Q_' + ref);
            if ( isNaN(qf.value) ) return;	
            qf.value = (qf.value - 0) + 1;
          }
          
          function bumpdown(ref){
            var qf = document.getElementById('Q_' + ref);
            if ( isNaN(qf.value) ) return;	
            if ( qf.value > 0 ) qf.value = (qf.value - 0) - 1;
          }

          Edit ActinicOrder.pm (in your Site folder - back it up first) and look for the lines:

          Code:
          			$sQuantityText = "<INPUT TYPE=TEXT SIZE=\"4\" NAME=\"Q_" . $nLineCount . "\" VALUE=\"". $sQuantityText . "\" STYLE=\"text-align: right;";
          			if ($aFailures->[$nLineCount]->{"QUANTITY"})
          				{
          				$sQuantityText .= "background-color: $::g_sErrorColor";
          				}
          			$sQuantityText .= "\">";
          Replace these lines with

          Code:
          			$sQuantityText = "<table><tr><td><INPUT TYPE=TEXT SIZE=\"4\" NAME=\"Q_" . $nLineCount . "\" VALUE=\"". $sQuantityText . "\" STYLE=\"text-align: right;";
          			if ($aFailures->[$nLineCount]->{"QUANTITY"})
          				{
          				$sQuantityText .= "background-color: $::g_sErrorColor";
          				}
          			$sQuantityText .= "\" id=\"Q_" . $nLineCount . "\">";
          			$sQuantityText .= "</td><td><img src=\"cp.gif\" style=\"cursor:pointer\" alt=\"Add one\" onclick=\"bumpup(" . $nLineCount . ");\"/>";
          			$sQuantityText .= "<br/><img src=\"cm.gif\" style=\"cursor:pointer\" alt=\"Remove one\" onclick=\"bumpdown(" . $nLineCount . ");\"/></td></tr></table>";

          Put the two attached graphics cp.gif and cm.gif into your Site folder (right-click the links below and choose Save Target As). Then upload them via Design / Additional Files.
          Attached Files
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            That could be a nice touch - reminds me of Sainsburys Online!
            Sam
            http://www.originaltouch.co.uk
            http://www.spcb.co.uk

            If you spend your whole life waiting for the storm, you’ll never enjoy the sunshine.

            Failure is the tuition you pay for success.

            Comment


              #7
              There is also an option in the AUG to add a drop down qty selector

              Comment


                #8
                an option in the AUG to add a drop down qty selector
                I think that's for the Product pages (AUG P40). This one works on the Cart display.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  I think that's for the Product pages
                  Yes you are correct Norm - me not reading the question properly

                  Comment


                    #10
                    This one works on the Cart display
                    Just added it to a site and it works very well

                    Comment

                    Working...
                    X