View Full Version : Formatting the product date prompt
Tiger
09-May-2006, 02:36 PM
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
Bruce
11-May-2006, 03:38 PM
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 NETQUOTEVAR:DATEPROMPT
1208 - Code for entries within the date-selection drop-down.
1205 - The code for closing the drop downs for date selection.
Kind regards,
Tiger
15-May-2006, 08:38 AM
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.
NormanRouxel
15-May-2006, 09:57 AM
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
MailOrderLine( "",
$$pProduct{'DATE_PROMPT'} . "\r\n " . $sDate,
replace it with
my $cleandate = $$pProduct{'DATE_PROMPT'};
$cleandate =~ s/<.*?>//g; # remove any HTML tags.
MailOrderLine( "",
$cleandate . "\r\n " . $sDate,
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.