View Single Post
  #69  
Old 05-20-2013, 03:04 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: X-Cart - reBOOT - Responsive Template

Thanks guys

Here's a way to add manufacturer logo to the product page...

1a) product.php

Replace...

Code:
$product_info = func_select_product($productid, @$user_account['membershipid']);

With...

Code:
#$product_info = func_select_product($productid, @$user_account['membershipid']); # Reboot Template - Get Manufacturer ID $product_info = func_select_product($productid, $manufacturerid, @$user_account['membershipid']); # Reboot Template - Get Manufacturer ID

1b) product.php

Before...

Code:
$smarty->assign('product', $product_info);

Insert...

Code:
# Reboot Template - Get Manufacturer Logo $product_info['manuf_tmbn_url'] = func_query_first_cell("SELECT image_path FROM $sql_tbl[images_M] WHERE id=".$product_info["manufacturerid"]); # /Reboot Template - Get Manufacturer Logo

2) skin/reboot/customer/main/product_details.tpl

Replace...

Code:
<div class="span7 property-value"><a href="manufacturers.php?manufacturerid={$product.manufacturerid}">{$product.manufacturer}</a></div>

With...

Code:
<div class="span7 property-value"><a href="manufacturers.php?manufacturerid={$product.manufacturerid}"><img src="{$product.manuf_tmbn_url}" alt="{$product.manufacturer}"></a></div>
__________________
xcartmods.co.uk
Reply With Quote