Announcement

Collapse
No announcement yet.

Formatting the product date prompt

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

    Formatting the product date prompt

    Hello friendly forum folk.

    I'd like to be able to format the product date prompt and although I know that 2162 in Design > Text has something to do with it, it doesn't really help with the direction I want to go in.

    Basically, I need to put a containing div around the whole thing and a label just around the date prompt caption.

    I've been all over the perl scripts and can't quite find the answer, anyone out there able to help at all?

    Much appreciated.

    Cheers.

    Angi
    OXLink Web Design (Oxford)
    Actinic developers since version 3
    01865 361696

    #2
    Angi,

    If you have a copy of the Advanced Users Guide, look at the section "Guide to 'Design | Text | Website | HTML'" under product pages, it should give you the ID's within Design | Text, that deal with the date prompt area. They are..

    2162 - Code for the beginning of the date-selection pull-downs in the product pages. Replaces NETQUOTEVARATEPROMPT

    1208 - Code for entries within the date-selection drop-down.

    1205 - The code for closing the drop downs for date selection.

    Kind regards,
    Bruce King
    SellerDeck

    Comment


      #3
      Thanks, Bruce. Unfortunately, the latter Design > Text prompts also appear to relate to other areas of the site (e.g. the country selection list) which means I can't really edit them specifically for the date prompt. I was really looking for a reference in one of the Perl scripts, exclusively for the date prompt but it doesn't seem to work that way.

      Thanks anyway. I've removed the date prompt from the product templates instead, so my customer just won't be able to use it.

      Cheers.
      OXLink Web Design (Oxford)
      Actinic developers since version 3
      01865 361696

      Comment


        #4
        You can put HTML into the Data Info Question field.

        E.g.

        <font color=green><b>DATE HERE</b></font>

        the only side effect is that this HTML is passed to the customer email.
        This can easily be fixed by this tweak to OrderScript.pl

        Look for the code
        Code:
        			MailOrderLine( "",
        							$$pProduct{'DATE_PROMPT'} . "\r\n  " . $sDate,
        replace it with
        Code:
        			my $cleandate = $$pProduct{'DATE_PROMPT'};
        			$cleandate =~ s/<.*?>//g;			# remove any HTML tags.
        			MailOrderLine( "",
        							$cleandate . "\r\n  " . $sDate,
        Norman - www.drillpine.biz
        Edinburgh, U K / Bitez, Turkey

        Comment

        Working...
        X