View Single Post
  #10  
Old 08-04-2009, 08:02 AM
 
Mark Orbit Mark Orbit is offline
 

Newbie
  
Join Date: May 2009
Posts: 8
 

Default Re: Manufacturer name in from of Product name

Quote:
Originally Posted by cflsystems
This is the code you put in include/func/func.product.php just before "return $product"

Code:
$product["product"] = $product['manufacturer'] . " " . $product['product'];

Assuming that I am following instructions correctly (and I think I am) then this method does appear to cause problems as it affects the admin area aswell...

What happens in my case is the manufacturer name is added into the 'product name' field in the admin EVERY time you make a saved edit in the admin, so I ultimately end up with 'Gibson Gibson Gibson Les Paul Guitar' after three product edits in the admin.

Ideally, I think a solution should not affect the admin or db and just be added at runtime wherever the product name is called on the front end. Any way to do this?

Thanks again for any help. I'm pretty new to XCart with a fairly big project ahead (customised) and I hope it's going to be a fairly logical process once I get the hang of these damn tpl files
__________________
X-Cart Gold version: 4.2.2
Apache version: 2.2.11
PHP version: 5.2.9-2
phpMyAdmin: 3.1.1

MYSQL version: 5.0.51a
Operating system: Windows Vista Ultimate
Reply With Quote