From NewHaven Software Wiki
Jump to navigationJump to search
|
|
| Line 1: |
Line 1: |
| [[Search and/or feature]]
| |
|
| |
|
| [[Validating_form_fields|Validating form fields]]
| |
|
| |
| [[How to add ECMAScript redirect if cookies are disabled]] (ECMA-262 or ECMAScript is the official name for JavaScript)<br />
| |
|
| |
| [[Print-friendly pages|Adding Print-friendly pages to eCMS templates]]
| |
|
| |
| [[Gift Certificate Emails (gc_code_email.tpl)]]
| |
|
| |
| [[PHP Test If Page Is SSL]]
| |
|
| |
| [[$wholesale_info category structure]]
| |
|
| |
| [[View template variables with PHP]]
| |
|
| |
| [[Cart Controls]]
| |
|
| |
| [[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}
| |
|
| |
| <b>$product</b> 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}
| |
|
| |
| <b>$product.cust_1</b> is the variable for the custom field($product.cust_1, $product.cust_2, $product.cust_3, etc)
| |
|
| |
| <b>$categories.$cid.cat_description</b> prints the Category Description.
| |
|
| |
| <b>{ldelim} and {rdelim}</b> are Smarty for left and right curly brackets. This is used for JavaScript:
| |
| <pre>
| |
| <script language="JavaScript" type="text/javascript">
| |
| <!--
| |
| function foo()
| |
| {ldelim}
| |
| alert ('Call me!' );
| |
| {rdelim}
| |
| //-->
| |
| </script>
| |
| </pre>
| |
Revision as of 18:29, 18 February 2009