Announcement

Collapse
No announcement yet.

'Add to cart and checkout' button?

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

    'Add to cart and checkout' button?

    Is it possible to have an Add to Cart and Proceed to checkout button, like Amazon's one-click ordering, designed for people that are just ordering one item?

    Thanks,
    Martin B

    #2
    Hi Martin.

    Does this Article help at all?
    Darren

    SellerDeck

    www.sellerdeck.co.uk

    Comment


      #3
      Not really. I have my site setup so that there is a single 'add to cart' per page. What I wanted was an ADDITIONAL button underneath it which I'd have as 'One-Click Checkout'. So people then had the choice of either adding to cart and continuing or going straight to the checkout. I want this on all pages.

      Martin B

      Comment


        #4
        Hi there.

        I will have a word with the team and see if they can come up with anything.
        Darren

        SellerDeck

        www.sellerdeck.co.uk

        Comment


          #5
          Hello again.

          We may be able to do something here, but please note that it will not work for all shopping modes, which shopping mode would you ideally like to use? Also, can I confirm that you don't want the cart showing at all when this additional button is pressed, do you want it to jump straight to checkout?
          Darren

          SellerDeck

          www.sellerdeck.co.uk

          Comment


            #6
            We are using the 'Quantity on Product page' mode with a single 'Add to cart' button at the bottom of every page.

            Comment


              #7
              Hi there.

              We have a solution, but it does involve the editing of a perl script. I have attached my modified ShoppingCart.pl here. Please unzip it into your site folder. I would strongly suggest backing up your original ShoppingCart.pl before beginning work as Actinic is not able to provide any detailed support for script changes made

              To make this work, the Act_ProductBody.html also needs to be edited:

              Find NETQUOTEVAR:SINGLEADD and insert the following...

              <INPUT TYPE=SUBMIT VALUE="Add Selection To Cart and Checkout"
              NAME="ACTION_BUYNOW.x">

              When done, upload an test. If it fails, please restore your original ShoppingCart.pl and Act_ProductBody.html

              I will explain the modifications to the perl script as each time you apply a patch, your changes will get overwritten: Actinic

              Edit the script ShoppingCart.pl in notepad
              Search for 'sub AddMultipleItems'
              Scroll down to the end of the subroutine, you will see...

              else
              {
              @Response = BounceAfterAddToCart();
              }

              Replace the above with...

              else
              {
              $::g_InputHash{CHECKOUTURL} = $$::g_pSetupBlob{CGI_URL} .
              "os" . sprintf("%06d", $$::g_pSetupBlob{CGI_ID}) .
              $$::g_pSetupBlob{CGI_EXT} . "?ACTION=" .
              ACTINIC::GetPhrase(-1, 113);
              @Response = BounceAfterAddToCart();
              }



              I hope this helps.
              Attached Files
              Darren

              SellerDeck

              www.sellerdeck.co.uk

              Comment


                #8
                Thanks a lot - we'll give it a damn good thrashing!

                Comment


                  #9
                  Did you get this working? what is your website URL? I'd like to see it in action...
                  John

                  Comment


                    #10
                    No, the project went off the boil a bit, so they just went for a basic site. As it's B2B it's password protected anyway...

                    Comment

                    Working...
                    X