Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

attribute copy


Guest

Recommended Posts

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 -->

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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...