Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Product_attributes.php


RonEnglund

Recommended Posts

Hi,

 

I would like to have some help with Product attributes in the admin section. Since many of my products have the same name, only different model numbers it is a pretty nasty thing trying to find the particular product in the dropdown list when adding attributes to it.

 

Can I somehow change the dropdown so it lists the model-numbers instead of the product name?

 

I have tried the contrib:

 

Show model in product attributes

 

 

But it does not work. Please, if anyone have any ideas of how to do this I'd be really really grateful.

 

The query for the dropdown looks like this:

 

 

	$products = tep_db_query("select p.products_id, pd.products_name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where pd.products_id = p.products_id and pd.language_id = '" . $languages_id . "' order by pd.products_name");
while ($products_values = tep_db_fetch_array($products)) {
  echo '<option name="' . $products_values['products_name'] . '" value="' . $products_values['products_id'] . '">' . $products_values['products_name'] . '</option>';
}

 

Thanks

______________

Ron

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...