View Single Post
  #9  
Old 04-10-2017, 12:55 PM
 
simetria simetria is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 77
 

Default Re: Proper way for query functionality

Thank you for that link...it totally helped me.
I have it kind of working, but not sure about one thing... I guess the only thing I was missing was the inclusion of the Smarty var in the home_main.tpl file. My question (or unsure about) is, If you run an elseif on the smarty variable but the value is a php variable storying the real value (like I have above), how do you insert the php variable in the elseif statement?

Here's what I have and it is working, but I would like to check if it is available before continuing.

PHP Code:
{elseif $testing}
{include 
file="customer/main/product.tpl"

I tried something like this, but i get a "Page not Found"...
PHP Code:
{elseif $testing eq $testMssg}
{include 
file="customer/main/product.tpl"

Would a .... ne ' ' suffice in this case?

Thank you all for your help, you've been a huge help in understanding how everything is wired up.

-S
__________________
Thanks.
Reply With Quote