Zen Cart Logo
Forums / General Questions / Cloning Manufacturer Box

Cloning Manufacturer Box

Locked

Views: 959

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
13 May 2009, 7:07 PM
#1
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Cloning Manufacturer Box

I plan on using the manufacturer field/sidebox to categorize products and would like a second manufacture field/sidebox for a second categorization.

They do not need to interact - my desire is to have them entirely separate.

Has anyone done this? Any ideas? Any advice?

Thanks!

17 May 2009, 4:26 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cloning Manufacturer Box

If you mean the:
/includes/modules/sideboxes/manufacturers.php
/includes/templates/template_default/sideboxes/tpl_manufacturers_select.php

then you can copy those to new files:
/includes/modules/sideboxes/manufacturerssomething.php
/includes/templates/template_default/sideboxes/tpl_manufacturerssomething_selected.php

and do a global replace, cAsESenSaTive, of:
manufacturers

and change to:
manufacturerssomething

WARNING: do not change any of the fieldnames or references to the fieldnames such as:
m.manufacturers_id
$manufacturer_sidebox->fields['manufacturers_id']
$_GET['manufacturers_id']

WARNING: be sure to change the references from:
tpl_manufacturers_selected.php

to read:
tpl_manufacturerssomething_selected.php

25 May 2009, 4:33 AM
#3
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Re: Cloning Manufacturer Box

Thanks for the reply. Got waylaid on other things.

I don't think I explained clearly and completely:

I need a second 'manufacturer' field in the product description as well as a second, corresponding dropdown sidebox.

These two fields will be renamed to 'palettes' and 'styles' - by using these drop downs a customer could select certain colors or design styles.

25 May 2009, 1:24 PM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Cloning Manufacturer Box

This can get complicated ...

If you cloned the field and table for manufacturers you might be able to setup this relationship for this new field ...

More or less, following the word:
manufacturer

in the code with the Developers Tool Kit could help you find everywhere that field is used and the functions needed so that you could build your own set of functions, search, sidebox, admin add/edit etc.