Announcement

Collapse
No announcement yet.

buttons in orderpages

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

    buttons in orderpages

    I want to insert my own buttons instead of the standard ones in the order pages (Act_Order00.html -> Act_Order04.html)
    I cant seem to find it in the advanced user guide, although there are plenty of hints on how to change the buttons in the view cart page.

    example:
    <input type=SUBMIT name=ACTION value="NETQUOTEVAR:NEXTBUTTON">

    -ive guessed a little and changed it to following:
    <input type=IMAGE name=ACTION_NEXT value="NETQUOTEVAR:NEXTBUTTON" src="ordernext.gif" ALT="NETQUOTEVAR:NEXTBUTTON">

    sadly, this dosnt work.

    /rasmus landgreen, dk
    rasmus e landgreen
    Work: <a href="http://www.net4you.nu">net4you.nu</a>
    Personal: <a href="http://www.weblike.dk">weblike.dk</a>

    #2
    Hi Rasmus, good to see you getting into the forums. The solution below should sort you out.....



    You can use images for the 'Next', 'Back' and 'Cancel' buttons in the checkout. This requires a little Perl customisation, so please carry out the steps in this exercise with care.

    To begin, open 'Act_Order00.html', 'Act_Order01.html' and
    'Act_Order02.html' and locate the following HTML objects (near the bottom of each template):

    <input type=SUBMIT name=ACTION value="NETQUOTEVAR:BACKBUTTON">

    <input type=SUBMIT name=ACTION value="NETQUOTEVAR:CANCELBUTTON">

    <input type=SUBMIT name=ACTION value="NETQUOTEVAR:NEXTBUTTON">

    These are the grey 'Next', 'Back' and 'Cancel' buttons (note that
    'Act_Order00.html' does not have a 'Back' button)

    You need to comment out each of these with HTML comments and then include in new HTML objects as shown below:

    Back Button:
    <!-- <input type=SUBMIT name=ACTION value="NETQUOTEVAR:BACKBUTTON"> -->
    <input type=IMAGE name=ACTION_BACK src="back.gif">

    Cancel Button:
    <!-- <input type=SUBMIT name=ACTION value="NETQUOTEVAR:CANCELBUTTON"> -->
    <input type=IMAGE name=ACTION_CANCEL src="cancel.gif">

    Next Button:
    <!-- <input type=SUBMIT name=ACTION value="NETQUOTEVAR:NEXTBUTTON"> -->
    <input type=IMAGE name=ACTION_NEXT src="next.gif">

    (assuming 'back.gif' is the image you want to use for the back button, 'cancel.gif' is the image you want to use for the cancel button and 'next.gif' is the image you want to use for the next button. These images need to already be in your 'Site1' (or equivalent) folder.)

    Next, locate 'OrderScript.pl' within your 'Site1' (or equivalent) folder with Notepad and find the following code:

    @Response = ReadAndParseBlobs(); # read the catalog blobs
    ($Status, $Message) = @Response; # parse the response
    if ($Status != $::SUCCESS)
    {
    ACTINIC::ReportError($Message, ACTINIC::GetPath());
    }

    Underneath it, copy and paste the following code:

    if(!defined $::g_InputHash{"ACTION"})
    {
    if(defined $::g_InputHash{"ACTION_BACK.x"})
    {
    $::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1,503);
    }
    elsif(defined $::g_InputHash{"ACTION_CANCEL.x"})
    {
    $::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1,505);
    }
    elsif(defined $::g_InputHash{"ACTION_NEXT.x"})
    {
    $::g_InputHash{"ACTION"} = ACTINIC::GetPhrase(-1,502);
    }
    }

    Save and close the template and upload to see your new button images. If
    it does not work, there is an untouched OrderScript.pl within the
    'Original' folder in your Actinic installation, which you can copy into
    your 'Site1' (or equivalent) folder.

    Comment


      #3
      awesome!

      just one more thing, then.

      There are 2 buttons more.
      1) "Change", i guess its called in english (alter, maybe?) anyway, the button in the order pages that changes your delivery adress in the second page for example.
      2) "Done"

      How do I change them? (can I?)

      /rasmus landgreen, dk
      rasmus e landgreen
      Work: <a href="http://www.net4you.nu">net4you.nu</a>
      Personal: <a href="http://www.weblike.dk">weblike.dk</a>

      Comment

      Working...
      X