Guest Posted January 6, 2011 Share Posted January 6, 2011 So I have this code that allows to copy a product attribute directly to another product from the admin side, but is it possible to add an option to enable to copy the attribute of a product to products of an entire selected category? <!-- Data Start --> <tr><td class="pageHeading">Clone the attributes of an article</td></tr> <tr> <td class="smallText">From <select name="clone_products_id_from"> <?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>'; } ?> </select></td> <td class="smallText">To <select name="clone_products_id_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'] . '</option>'; } ?> </select> </td><td><?php echo tep_image_submit('button_update.gif', IMAGE_UPDATE); ?></td></tr> <tr><td> </td></tr> <!-- Data End --> Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2011 Share Posted January 6, 2011 Max the Attribute Clone Tool has two options during installation. 1) Clone one product attribute to another -OR- 2) Clone one product attribute to multiple products. Depending on how the contributions was installed, you have those installed choices. So, if you are currently seeing option 1. Then you would need to edit the installation to install option 2 if you need that function. Chris Quote Link to comment Share on other sites More sharing options...
Guest Posted January 6, 2011 Share Posted January 6, 2011 Max the Attribute Clone Tool has two options during installation. 1) Clone one product attribute to another -OR- 2) Clone one product attribute to multiple products. Depending on how the contributions was installed, you have those installed choices. So, if you are currently seeing option 1. Then you would need to edit the installation to install option 2 if you need that function. Chris I have tried the second option, but it doesn't work, only the first option works, which does the same as the code i have just posted. When I changed from option 1 to 2 nothing happened, I still had both columns with all the products to select one by one and the problem was that with the second option i could not copy any attribute, even from 1 product to another. I guess there is a bug Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.