View Single Post
  #5  
Old 04-10-2017, 05:48 AM
 
simetria simetria is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 77
 

Default Re: Proper way for query functionality

Thank you cflsystems,

I have tried a simple string example, and cannot get to display it on the product.tpl. Here's what I have so far (I followed from Smarty's documentation)....

PHP FILE:
PHP Code:
$smarty = new Smarty();

$testMssg 'Testing Message!';

$smarty->assign('testing'$testMssg);

$smarty->display('skin/common_files/customer/main/product.tpl'); 

TPL FILE:
PHP Code:
<h1>{$testing}</h1

The php file is a new php file in the root dir, and the tpl file is the product.tpl under skin/common_files/customer/main/

Thank you for your help.

-S
__________________
Thanks.
Reply With Quote