Announcement

Collapse
No announcement yet.

Can I have different destination pages for completed and cancelled checkouts?

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

    Can I have different destination pages for completed and cancelled checkouts?

    You can achieve this by making a change to one of the perl scripts. Do 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...

    if ($$::g_pSetupBlob{UNFRAMED_CHECKOUT} &&
    $$::g_pSetupBlob{UNFRAMED_CHECKOUT_URL})
    {
    $sRefPage = $$::g_pSetupBlob{UNFRAMED_CHECKOUT_URL};
    }

    * change the above to...

    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.

    SellerDeck 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.
Working...
X