View Single Post
  #11  
Old 04-03-2004, 07:46 AM
  groovico's Avatar 
groovico groovico is offline
 

X-Man
  
Join Date: Apr 2003
Location: Firetanksoftware.com
Posts: 2,326
 

Default Solution

Same thing was driving me crazy for a while last night, the answer was staring me right in the face all the time but it was so simple I couldn't see it until the very last minute then it hit me.

In the include file from smarty level do this:

Lets say you want to include the above in product.tpl:

Put

Code:
{include file="customer/main/whatever.tpl" productcode=$product.productcode}

In product.tpl

Notice I'm passing the productcode via smarty.

Now in whatever.tpl

Put

Code:
{php} $productcode = $GLOBALS['smarty']->_tpl_vars[productcode]; include("http://www.mysite.com/d/{$productcode}.php"); {/php}

And your home and dry.

Note: Include() is dependant on server PHP configuration, looks like you're trying to pull in a product page from another site so keep in mind PHP may be set up in such a way that it doesn't let you do remote includes.
__________________
Groovico

Used by X-carters the world over:
Marketing Manager Pro Bundle For X-cart
Featured Product Manager for X-cart
Feed manager pro for X-cart

http://www.firetanksoftware.com

Celebrating 7 Years of providing quality X-cart Add ons and X-cart Mods for x-cart 3.X to X-cart 4.4.X
Reply With Quote