View Single Post
  #7  
Old 04-10-2017, 09:46 AM
 
simetria simetria is offline
 

Advanced Member
  
Join Date: Jul 2013
Posts: 77
 

Default Re: Proper way for query functionality

I've tried a barrage of different combinations of including bits and pieces from the product.php file to my new file, but nothing as yielded any positive results in the product.tpl file. Here's the current code in my new php file taken straight from the product.php, just added my simple smarty element - maybe I'm missing some additional things....

PHP Code:
define('OFFERS_DONT_SHOW_NEW',1);

 
define('STORE_NAVIGATION_SCRIPT''Y');

 require 
'./auth.php';

 if (
     isset(
$productid)
     && !empty(
$productid)
     && 
$config['SEO']['clean_urls_enabled'] == 'Y'
     
&& !defined('DISPATCHED_REQUEST')
 ) {
     
func_clean_url_permanent_redirect('P'intval($productid));
 }

 
x_load(
     
'product',
     
'templater'
 
);

$smarty = new Smarty();
$testMssg 'Testing Message!';
$smarty->assign('testing'$testMssg);

func_display('customer/home.tpl'$smarty); 

I'm assuming anything above the new smarty declaration is the necessary things for Smarty, and the last line for display purposes.

BTW: I am on version 4.6.1

Thanks Guys!

-S
__________________
Thanks.
Reply With Quote