Announcement

Collapse
No announcement yet.

Probs with Larger Other Info Prompt in V9

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

    Probs with Larger Other Info Prompt in V9

    Hi all,

    I've been using the larger box for Other Info Prompt fine in V8 but after upgrading to V9 I was getting <br> showing in the messages every time the customer hit the break key which meant I had to work through customers messages deleting all the <br> before I could print which is a pain.

    Upon checking with the AUG p121-123 I discovered that half the script changes were overwritten with the upgrade, so I've redone them all and finally resolved the <br> issue. However.......

    Now for some reason the other info box is not being passed to the cart, but it is showing on the checkout pages and receipt page.

    The description above the other info prompt (Your Gift Message) passes over and so does the date prompt fields under it, but not the box with the customers message for some reason. I have refreshed several times, but it has still not taken.

    Any ideas please?

    Helen x
    Helen
    www.postapresent.co.uk
    Gifts by Post & Giftwrapping Service

    #2
    You may have corrupted the scripts that you have changed. Replace them with the originals and try the AUG instructions again paying close attention to what exact parts of the script need changing.


    Bikster
    SellerDeck Designs and Responsive Themes

    Comment


      #3
      Thanks Jont,

      Did a complete purge and refresh and started again and all working okay now.

      Is there a way to limit the amount of characters in this box?

      I thought that was what the maxlength was for, but when I changed it to 200 it had no effect.

      <textarea name="O_<Actinic:Variable Name="ProductID"/>" rows="3" cols="20" maxlength="1000" value="" /></textarea>
      However, I noticed in the AUG instructions that in ActinicOrder.pm where we have to comment out a line and put some other code in it has a line

      $sHTML=sprintf( $sHTML, "", $sIndex, SsStyle, 1000, SsValue);
      Should I be amending the 1000 here to 200?

      I don't like to mess with what I don't understand

      Thanks

      Hx
      Helen
      www.postapresent.co.uk
      Gifts by Post & Giftwrapping Service

      Comment


        #4
        You cannot limit the number of characters with maxlength="1000" . That's a relic from (and only valid in) the original <input type="text" ....> field.

        From an HTML reference:
        A text area can hold an unlimited number of characters, and the text renders in a fixed-width font (usually Courier).
        You would need to use JavaScript to capture each keypress, count number of characters already present and return false if your limit is exceeded.

        Something like:
        Code:
        <textarea name="O_<Actinic:Variable Name="ProductID"/>" rows="3" cols="20" onkeypress="var key=(event.which?event.which:event.keyCode); return((key==8)||(key==46)||(this.value.length <= 200));" value="" /></textarea>
        Code above limits to 200 characters and also lets through the backspace and delete keys otherwise you'd not be able to delete anything when the field was full.
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment


          #5
          Thanks Norman,

          I will give it a go.

          You mentioned about allowing the delete and backspace keys to work, I wonder if this is why you can no longer use the delete key in the meta keywords and page name text areas in the product section details.

          I'm always editing products and since V9 this has stopped working and it's a pain having to key forward and then backspace to delete words. The other fields work fine. it's just one of those annoying little things.

          However, the good thing now is that if you want to copy the other info prompt information from your order to paste into a label or somewhere you no longer have to do the zoom and then copy, you can copy straight from that box, so I suppose it's swings and roundabouts
          Helen
          www.postapresent.co.uk
          Gifts by Post & Giftwrapping Service

          Comment

          Working...
          X