Announcement

Collapse
No announcement yet.

View Cart Button on 'Quantity on Confirmation Page'

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

    View Cart Button on 'Quantity on Confirmation Page'

    Hi All

    I currently have my site set-up with a 'Quantity on Confirmation Page' which also features 'Request Location Information Early' (Act_OrderDetail.html).

    It has three buttons (confirm/continue shopping; confirm/checkout; cancel). An example URL is this http://www.kjbeckett.com/acatalog/co...harlestie.html. Just add the tie to the cart.

    1. I would like to add a 4th button = Confirm/View Cart. Is it possible to take the customer to the shopping cart where they can make adjustments to the entire shopping cart contents?

    2. Also on the 'Quantity on Confirmation Page' - the cart details will display if the customer already has something in the cart. Is it possible to remove this from displaying? I think I may need to remove
    NETQUOTEVAR:THEORDERDETAILS? Is this correct?

    Many thanks

    Paul
    KJ Beckett
    Men's Clothing & Accessories
    Cufflinks, Underwear, Ties, Grooming Products
    Bath, England
    Fast delivery to UK, USA and worldwide.
    Men's Fashion Blog

    #2
    Hi Paul,

    Guess this is the same as the earlier thread though with a different request. To get to the Quantity on Confirmation page issue..

    Open ShoppingCart.pl in notepad

    Search for 'MAXLENGTH=10' you will find it in the following lines of code
    $VariableTable{$::VARPREFIX."QUANTITY"} = "<INPUT TYPE=TEXT NAME=\"Q_$ProductRef\" VALUE=\"" .
    $nDefaultQuantity . "\" SIZE=6 MAXLENGTH=10>";
    On the line above 'MAXLENGTH=10', change INPUT TYPE=TEXT to read INPUT TYPE=HIDDEN

    Save and exit the file. This will get rid of the quantity box on the Confirmation page but not the words 'Quantity:', you can do this by going into Design | Text, click on 'Go To' and type in '166' in the ID field. Delete the value from within the right hand side. Apply and then update the site.

    As for the questions to this query:
    1. I would like to add a 4th button = Confirm/View Cart. Is it possible to take the customer to the shopping cart where they can make adjustments to the entire shopping cart contents?
    You could hard code a link to the View Cart page, but this would only work if there are products that are already in the cart. The other option is to use the standard confirm button
    <INPUT TYPE=IMAGE VALUE="NETQUOTEVAR:CONFIRMLABEL" NAME=ACTION_CONFIRM SRC="confirm.gif" ALT="NETQUOTEVAR:CONFIRMLABEL" TITLE="NETQUOTEVAR:CONFIRMLABEL">
    and then use teh work around on the Knowledge base here to get the bounce to take the customer to the view cart page, the URL for that page should be http://www.yourserver.co.uk/cgi-bin/...CTION=SHOWCART, change the script ID to reflect what you have in your Network Settings.

    Please Note: if you change your shopping mode you will have to reinstate The Design | Text change as that also controlls the 'Quantity:' entry against products.

    2. Also on the 'Quantity on Confirmation Page' - the cart details will display if the customer already has something in the cart. Is it possible to remove this from displaying? I think I may need to remove
    NETQUOTEVAR:THEORDERDETAILS? Is this correct?
    That is correct, comment it out using <!-- and -->

    Since some of this involves script changes the usual disclaimers apply.

    Hope this helps.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Bruce

      That's great - many thanks!!!!

      A couple of questions regarding question 1 :-) 4th button = Confirm/View Cart

      and then use teh work around on the Knowledge base here to get the bounce to take the customer to the view cart page
      I cant find the post that says how to divert Confirm, the closest is: How can I change the URL for the 'Continue Shopping' on the 'View Cart' page? I am probably not looking correctly but I have gone through the page a few times.

      Also - I would like, if possible, to retain the button confirm/continue shopping. Therefore I wonder if it is possible to create (clone) a second function from the confirm button and change this URL rather than change the original confirm button?

      Paul
      KJ Beckett
      Men's Clothing & Accessories
      Cufflinks, Underwear, Ties, Grooming Products
      Bath, England
      Fast delivery to UK, USA and worldwide.
      Men's Fashion Blog

      Comment


        #4
        Paul,

        The link I provided is to help change the destination of the add to cart button. Since you are using quantity on confirmation page this will happen only on clicking the confirm button, which you can retain.

        Kind regards,
        Bruce King
        SellerDeck

        Comment


          #5
          Hi Bruce

          I want to make sure I have understood you correctly. If I use the changes listed under Issue: How do I change the URL to which a customer is bounced once they 'Add to Cart'? this will change the destination url of my customer once the have clicked confirm on the 'Quantity on Confirmation Page'?

          Paul
          KJ Beckett
          Men's Clothing & Accessories
          Cufflinks, Underwear, Ties, Grooming Products
          Bath, England
          Fast delivery to UK, USA and worldwide.
          Men's Fashion Blog

          Comment


            #6
            Hi Paul,

            That is correct. You can see a working example @ http://support.actinic.co.uk/~bksupp...log/index.html . Add a product to the basket and then click on confirm. Please ignore the state of the confirm button, I have been playing around with the site, do most of the tests on it !!!

            The change will not work like this under normal circumstances, it is because of the shopping mode and the request location information early checkbox. Other shopping modes will result in the view cart coming up as soon as you click on 'Add to Cart'.

            Kind regards,
            Bruce King
            SellerDeck

            Comment


              #7
              Hi Bruce

              Thanks.

              I had a look on the demo site but it is coming up with an error when you click add to cart or view cart.

              I made the changes to my site but the same error also occurs on my site.



              Error page contains the following on both your site and my site once the changes are made to ShoppingCart.pl:

              Internal Server Error
              The server encountered an internal error or misconfiguration and was unable to complete your request.
              Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

              More information about this error may be available in the server error log.



              --------------------------------------------------------------------------------

              Apache/1.3.33 Server at cgi01-ch.uk.clara.net Port 80


              I # out the two lines and then included this in my pl script:

              my $sDestinationUrl = "http://www.kjbeckett.com/cgi-bin/ca000001.pl?ACTION=SHOWCART" ;
              @Response = ACTINIC::BounceToPageEnhanced($nBounceDelay,
              ACTINIC::GetPhrase(-1, 1962) . $sCartHTML . ACTINIC::GetPhrase(-1, 1970)
              . ACTINIC::GetPhrase(-1, 2051), $sPageTitle, $::g_sWebSiteUrl,
              $::g_sContentUrl, $::g_pSetupBlob, $sDestinationUrl, \%::g_InputHash); -
              KJ Beckett
              Men's Clothing & Accessories
              Cufflinks, Underwear, Ties, Grooming Products
              Bath, England
              Fast delivery to UK, USA and worldwide.
              Men's Fashion Blog

              Comment


                #8
                Hi Paul,

                Thanks for finding a problem with the workaround as given on the Knowledge Base, please remove the very last '-' on the last line..

                Change:
                $::g_sContentUrl, $::g_pSetupBlob, $sDestinationUrl, \%::g_InputHash); -

                To read,
                $::g_sContentUrl, $::g_pSetupBlob, $sDestinationUrl, \%::g_InputHash);

                Update and check the site. My site too should now work, brilliant me had used the wrong script ID !!

                Kind regards,
                Bruce King
                SellerDeck

                Comment

                Working...
                X