Jump to content

Archived

This topic is now archived and is closed to further replies.

Farnastic

I need help please

Recommended Posts

Hello everyone,

I want to group my products into several industries, but keep this outside the regular categories listing. I want to have 5 groups; Automotive, Travel, School, Construction and Manufacturing. For example in Automotive could be products from diferent categories. Each product will have only one group.

 

For this, I have created the new field products_industry in the table products. I have also created this row in the admin/categories.php where I want to place a drop down menu with the 5 groups:

<tr>

<tr>

<td class="main"><font color='red'><?php echo TEXT_PRODUCTS_INDUSTRY; ?></td>

<td class="main"><?php echo tep_draw_separator('pixel_trans.gif', '24', '15') . '?' . tep_draw_industries('products_industry', $industry, $pInfo->products_industry, '13'); ?></td>

</tr>

 

I have also added several times the products_industry code in the admin/categories.php so it is working properly now.

 

Because I don't want to have the group names in database, I have created an array with these 5 names like this:

 

$industry = array ("Automotive", "Travel", "School", "Construction", "Manufacturing");

 

The problem is that this is all. I can't go any futher. I can't put this array inside the function tep_draw_industries (new).

 

I want to create a function similar to tep_draw_pull_down_menu so when adding or editing a product, the drop menu with 5 group names will be there.

 

I need someone help me in creating this function please.

 

thanks

far

Share this post


Link to post
Share on other sites

×