View Single Post
  #1  
Old 03-20-2009, 09:20 AM
 
AMMoyer AMMoyer is offline
 

Senior Member
  
Join Date: Nov 2008
Posts: 150
 

Default smarty concatenation/modifer problem

I've got the following piece of code:
Code:
<a href="product.php?productid={$parts[part].productid}&amp;cat={$cat}&amp;page={$navigation_page}{if $featured eq 'Y'}&amp;featured{/if}">{include file="product_thumbnail.tpl" productid=$parts[part].productid image_x=$config.Appearance.thumbnail_width product=$parts[part].product tmbn_url=$parts[part].image_path}</a>

I need change the "adjust" the value for tmbn_url so that it is a complete path to the thumbnail ie: http://www.mysite.com/images/T/tn_partnumber.jpg

Now the $parts[part].image path has data right from table xcart_images_T that looks like ".\images\T\tn_partnumber.jpg"

The $parts array also has many other fields such as productid, productcode, filename (of the T image), etc.

Can someone help me piece these chunks together to make a path or more specifically, how do I replace the "." in the image_path with http://www.mysite.com and change the \ to / ??

Thanks.
__________________
Adam
X-Cart Gold 4.4.5 - Live
X-Cart Gold 4.1.11 - Retired
X-Payments 1.0.4
CDSEO Pro
EWD Hosting
Reply With Quote