Announcement

Collapse
No announcement yet.

Multiple post-checkout destinations

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

    Multiple post-checkout destinations

    I'm not optimistic but wondered if its possible to have a different destination address after a completed checkout than the one people go to if they cancel the process.

    We want them to go to a page that say's something like 'thanks for your order' which isn't really appropriate if they've just aborted the process.

    I know there is only one field in the design options but if there's an 'under the bonnet' solution I'd be delighted to hear it.

    Bob

    #2
    Hi,

    Try the following:

    - go to the 'Design' menu and select 'Design Options'
    - tick 'remove Custom Frame in Checkout'.
    - set the 'URL for Completed and Aborted Checkout' to the URL of the 'Thankyou' page.
    - click 'OK'

    Then you need to edit one of the perl scripts:
    - browse to your site folder and locate 'OrderScript.pl.'
    - edit this file in a text editor such as notepad
    - search for 'sub GetCancelPage' you will see a short method with the following code...

    Code:
    if ($$::g_pSetupBlob{UNFRAMED_CHECKOUT} &&
        $$::g_pSetupBlob{UNFRAMED_CHECKOUT_URL})
       {
       $sRefPage = $$::g_pSetupBlob{UNFRAMED_CHECKOUT_URL};
       }
    - change the above to...

    Code:
    if ($$::g_pSetupBlob{UNFRAMED_CHECKOUT} &&
        $$::g_pSetupBlob{UNFRAMED_CHECKOUT_URL})
       {
       #$sRefPage = $$::g_pSetupBlob{UNFRAMED_CHECKOUT_URL};
       $sRefPage = "http://my aborted url/";
       }
    - save and exit the file
    - update your site

    In the above replace 'my aborted url' with the address of the page for aborted (Cancelled) checkouts.

    Actinic is not able to provide any detailed support for script changes made. If you find that there is a problem, an original copy of the script can be found within the 'Original' folder in your installation. Copy this into your site folder.
    ********************
    Tracey
    SellerDeck

    Comment


      #3
      That's very helpful, thanks.

      I managed to achieve the desired results in a slightly more simple way by going into the layout for the cancel button and adding an onclick event that changed the location to a different one from the one in the design options.

      Bob

      Comment

      Working...
      X