Conditional Statement
I'm attempting to add a conditional statement to the customer/main/product.tpl template (just above the "Product Options" segment). As a test, I've entered the following code to see if I could get the correct response to print:
{if $products.productcode eq "XXXX"}
This Test Worked
{else}
Test did NOT work!
{/if}
I must not be accessing the xcart database correctly, because the false statement is always returned (unless I change "eq" to "ne", then the true statement is always returned). Products have been added with different product codes so that you should be able to see each condition returned.
Any help would be greatly appreciated!
|