Re: Conditional Test for Text String
I am not real strong on Smarty so here is what I did:
I put that variable in product.tpl which is where I have the code that I am testing - and it didn't show up.
When I run webmaster mode it is there in this form:
{$sales} Array (1)
0 => Array (9)
sales_id => 224
sku => 14077-5
name => Buy 3 - SAVE $11.25 - Glyco Essentials
productid => 604
price => 63.60
start => 1185660000
amount => 3
expires => 1186264800
active => Y
this is showing on the page that has the Buy 3 in the name.
When I put the code on the specials.tpl page which has the section and loop to read all the specials it outputted it fine. It shows only what you see above.
I need to be on the product.tpl page because that is where the add to cart button is being displayed. Please tell me how to get this string compared properly.
I appreciate your help and hope you can tell me what is wrong.
Thanks,
Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************
Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
|