Forums / Templates, Stylesheets, Page Layout / Include manufacturer in the product name automatically

Include manufacturer in the product name automatically

Locked

Views: 914

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
14 Jan 2008, 9:43 PM
#1
moltar avatar

moltar

New Zenner

Join Date:
May 2007
Posts:
43
Plugin Contributions:
0

Include manufacturer in the product name automatically

I always specify a manufacturer when adding the product, but then I also have to write it in the product name, e.g.:

Manufacturer: Adidas
Name: Adidas - ZX600

Seems to be redundant. Is there a way to include the manufacturer automatically in the product name? Is there a function that handles product names that I can edit to accomplish this?

14 Jan 2008, 10:14 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Include manufacturer in the product name automatically

update product name set producte name=product name + manufacturer name
You have to do something like this frm phpmyadmin

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

14 Jan 2008, 10:32 PM
#3
moltar avatar

moltar

New Zenner

Join Date:
May 2007
Posts:
43
Plugin Contributions:
0

Re: Include manufacturer in the product name automatically

Ya, but this is something I'd have to do each time I add a new product. I'd like to have proper data (not modified) and just display manuf on the places where product name is displayed. What you are suggesting is to modify the data.

15 Jan 2008, 11:20 AM
#4
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Include manufacturer in the product name automatically

For that you would have to make the changes in tpl_product_info_display.php which is placed in
\includes\templates\template_default\templates

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

15 Jan 2008, 1:55 PM
#5
moltar avatar

moltar

New Zenner

Join Date:
May 2007
Posts:
43
Plugin Contributions:
0

Re: Include manufacturer in the product name automatically

But then I also need to edit all the other templates where the product name appears. Like listings, orders, shopping cart. I am still looking for a way to just edit something in one place and have it affect everything else. :)

15 Jan 2008, 2:12 PM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Include manufacturer in the product name automatically

Your best bet would be to update the current products by using the update query and for the new product addition, you can do everything manually or write a stored procedure which will isnsert manufacturer name in the product desc

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!