Delete me
From NewHaven Software Wiki
(New page: Search and/or feature Validating form fields How to add ECMAScript redirect if cookies are disabled (ECMA-262 or ECMAScript is the official name for Ja...)
Newer edit →
Revision as of 18:19, 18 February 2009
How to add ECMAScript redirect if cookies are disabled (ECMA-262 or ECMAScript is the official name for JavaScript)
Adding Print-friendly pages to eCMS templates
Gift Certificate Emails (gc_code_email.tpl)
$wholesale_info category structure
View template variables with PHP
Forms in Smarty (This is a hack that will allow you to process a form using Smarty)
If you want to limit an action to a certain category page use {if $cid == '$cat_id_num'}{/if}
$product is the variable for an item (it is an array). If you want the product number user $product.prod_id. For example {if $product.prod_id == '1018'} {/if}
$product.cust_1 is the variable for the custom field($product.cust_1, $product.cust_2, $product.cust_3, etc)
$categories.$cid.cat_description prints the Category Description.
{ldelim} and {rdelim} are Smarty for left and right curly brackets. This is used for JavaScript:
<script language="JavaScript" type="text/javascript"> <!-- function foo() {ldelim} alert ('Call me!' ); {rdelim} //--> </script>