Re: Accessing Smarty Variable in Javascript??
The {literal} ... {/literal} means don't do anything smarty between those tags. You have two choices. Since you don't use any { or } in your javascript you can just remove the {literal} and {/literal}. If you think you might be adding in some ifs where you'll be using { and } you can either leave out the {literal} {/literal} and use {ldelim} and {rdelim} instead { and } in your javascript. Or you can leave in the {literal} {/literal} and change
{$v.field_value} to {/literal}{$v.field_value}{literal}.
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]
UGG Boots and other fine sheepskin products
http://www.snowriver.com
|