Announcement

Collapse
No announcement yet.

Change the error message code on checkout page

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

    Change the error message code on checkout page

    Hi

    I'm trying to change the error message code on the checkout page when you don't fill in required fields, but not having much like.

    I want to take the code out of a table and into a bulleted list but I'm not having any luck.

    Any advice or suggestion would be good, and yes have changed the code in id 2178, 2179 and 2180 to do this but this hasn't worked.

    Cheers

    Darren
    Darren Tickle
    http://www.funky-cards.co.uk

    Greetings cards, and gift wrap for every occasion.

    #2
    No, this was an old site that I removed ages ok. Have just started up a new site called funky cards, thought I had change my signature but must have not saved it. The test site is http://www.funky-cards.co.uk/acatalog/test/index.html.

    Any advice on this would be great.

    Cheers

    Darren
    Darren Tickle
    http://www.funky-cards.co.uk

    Greetings cards, and gift wrap for every occasion.

    Comment


      #3
      Yes it does seem like a bug as when you change the code the error message doesn't work so it's not that simple. A lot of the stuff you cvould do in version 7 you don't seem to be able to do in version 8.
      Darren Tickle
      http://www.funky-cards.co.uk

      Greetings cards, and gift wrap for every occasion.

      Comment


        #4
        when you change the code the error message doesn't work
        It would help to post what was initially in each prompt and what you changed them to.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Hi Norman

          This is what is the default in id 2178

          <table cellpadding="10" width="550" border="1" bgcolor="%s"><tr><td>%s

          and this is what I want to be in there

          <div id="errormessage"><ul>%s

          and this is the default in id 2180

          </td></tr></table>

          and this is what I'm after

          </ul></div>

          I have updateed the Actinic.pm with the following code:

          GetPhrase(-1, 55, "<li>" .
          GetPhrase($_[0], $_[1]) . "</li>" ). "\n"

          So I want to have this as the code

          <div id="errormessage"><ul>
          <ul>
          <li>The format of the entered Email Address is not valid.</li>
          <li>Name: is required.</li>
          <li>City/Town: is required.</li>
          <li>Email Address: is required.</li>
          <li>Phone Number: is required.</li>
          <li>Address Line 1: is required.</li>
          <li>Post Code: is required.</li>
          <li>Sorry, but we are unable to accept your order if you do not accept our terms and conditions.</li>
          </ul>
          </div>

          and not this.


          <table cellpadding="10" width="550" border="1" bgcolor="#eeeeee"><tr><td>
          <ul>
          <span class="actrequiredcolor">The format of the entered Email Address is not valid.
          <li>Name:</li> is required.
          <li>City/Town:</li> is required.
          <li>Email Address:</li> is required.
          <li>Phone Number:</li> is required.
          <li>Address Line 1:</li> is required.
          <li>Post Code:</li> is required.
          Sorry, but we are unable to accept your order if you do not accept our terms and conditions.</span>
          </ul>
          </td></tr></table>

          For some unknown reason I can't do this and not sure why.

          I hope I have given you all the information to help me with this.

          Cheers

          Darren
          Darren Tickle
          http://www.funky-cards.co.uk

          Greetings cards, and gift wrap for every occasion.

          Comment


            #6
            This is what is the default in id 2178

            <table cellpadding="10" width="550" border="1" bgcolor="%s"><tr><td>%s

            and this is what I want to be in there

            <div id="errormessage"><ul>%s
            You have to preserve both %s (and use them in the same sequence) as these get replaced by Actinic data.

            E.g.

            Code:
            <div id="errormessage"><!--%s--><ul>%s
            Norman - www.drillpine.biz
            Edinburgh, U K / Bitez, Turkey

            Comment


              #7
              Thanks Norman for that. I have been in email comms with Actinic support about this and they never told me I need to have that still in there.

              You might be able to help in the 2nd part of my problem then. So I have removed the table now and I'm getting the following HTMLcode:

              <div id="errormessage"><!--#eeeeee--><ul><span class="actrequiredcolor">The format of the entered Email Address is not valid.<li><strong>Name:</strong></li> is required.
              <li><strong>City/Town:</strong></li> is required.
              <li><strong>Email Address:</strong></li> is required.
              <li><strong>Phone Number:</strong></li> is required.
              <li><strong>Address Line 1:</strong></li> is required.
              <li><strong>Post Code:</strong></li> is required.
              Sorry, but we are unable to accept your order if you do not accept our terms and conditions.</span></ul></div>

              Which isn't really what I wanted as I want all error messages in an <li> tag and also have the close </li> tag around the whole sentence. I have made changes to the Actinic.pm file and have got the below code:

              sub GetRequiredMessage
              {
              #? ACTINIC::ASSERT($#_ == 1, "Invalid argument count in GetRequireMessage ($#_)", __LINE__, __FILE__);
              return
              (

              GetPhrase(-1, 55, "<li>" . "<strong>" .
              GetPhrase($_[0], $_[1]) . "</strong>" . "</li>") ."\n"
              );
              }

              Do you know what I need to do to sort out this last issue, or is this just something I have to live with. I don't seem to be able to locate where the extra bit is coming from. Any advice would be great.

              Darren
              Darren Tickle
              http://www.funky-cards.co.uk

              Greetings cards, and gift wrap for every occasion.

              Comment


                #8
                Sorry. I don't have time to look into that.
                Norman - www.drillpine.biz
                Edinburgh, U K / Bitez, Turkey

                Comment


                  #9
                  Thanks for that. Not sure if this is possible to do or not. Seem to be at a block on this one. Does any one have any ideas.

                  Cheers

                  Darren
                  Darren Tickle
                  http://www.funky-cards.co.uk

                  Greetings cards, and gift wrap for every occasion.

                  Comment

                  Working...
                  X