View Single Post
  #1  
Old 10-17-2007, 08:15 PM
 
jillsybte jillsybte is offline
 

eXpert
  
Join Date: Jun 2006
Location: New York, USA
Posts: 389
 

Question Variables for Contact Form Additional Fields

Does anyone know how to construct the variable names for contact us form additional fields? I added a checkbox for people to check if they would like to receive our catalog. I want the subject line to be different when this box is checked so my attention will be drawn to the fact that the customer is requesting a catalog. To accomplish this, I am adding code such as this to the help_contactus_subj.tpl:

Code:
{if $additional_values[3].value eq "Y"} {$lng.eml_contact_us_catalogreq_subj} {else} {$lng.eml_contact_us_subj} {/if}

I know it's possible to make it work with default fields because I tried the following and it worked.

Code:
{if $contact.firstname eq "Jill"} {$lng.eml_contact_us_catalogreq_subj} {else} {$lng.eml_contact_us_subj} {/if}

I have tried all sorts of variations for the variable name and nothing works. The name in the source code of the contact us page for this input value is "additional_values[3]."

This obviously isn't a necessity. I'm just so frustrated now I'm determined to make this work . If anyone knows how to address these additional fields, please share your knowledge.

Thanks,
Jill
__________________
X-Cart Gold 4.1.8 (Live)
BCSE Shipping Estimator for FLC Mod
BCSE Shipping Methods per Product Mod
BCSE Customer Review Management Mod
BCSE Catalog Order Form Mod
X-Cart Gold 4.5.2 (Building/Testing)
USA
Reply With Quote