tommyboy845 Posted February 28, 2009 Share Posted February 28, 2009 some of my products have the same general Product Name, thus it makes me have an issue when trying to add different sizes per item.. i was wondering if anyone has an idea or solution regarding the file (admin/products_attributes.php) edit to maybe show the product ID or something to help differentiate the Product Name so i can see the difference in the "Products Attributes " section... Link to comment Share on other sites More sharing options...
tommyboy845 Posted February 28, 2009 Author Share Posted February 28, 2009 ok to answer my own question this is what i did for those who care... line 690 to 695 in /admin/product_attributes.php <?php $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>'; } ?> changed to... <?php $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'] . [b]' [iD=' . $products_values['products_id'] . '][/b]</option>'; } ?> pretty much i just added ' [iD= . $products_values['products_id] . '] to the value name to the bottom box show it atleast shows the product id to the value to tell which is which... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.