This is a discussion on Product Attributes Clone tool within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; I was frustrated that it seems no tool existed to clone all attributes from one product to multiple others, so ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| FIND at line 27: ************ case 'clone_attributes': $clone_product_id_from = $HTTP_POST_VARS['clone_products_id_from']; $clone_product_id_to = $HTTP_POST_VARS['clone_products_id_to']; tep_db_query("delete from ".TABLE_PRODUCTS_ATTRIBUTES." WHERE products_id='".$clone_product_id_to."'"); $attributes = tep_db_query("select products_id, options_id, options_values_id, options_values_price, price_prefix from " . TABLE_PRODUCTS_ATTRIBUTES ." where products_id='".$clone_product_id_from."'"); while($attributes_values = tep_db_fetch_array($attributes)) { tep_db_query("INSERT INTO " . TABLE_PRODUCTS_ATTRIBUTES . " ( products_id, options_id, options_values_id, options_values_price, price_prefix ) VALUES (".$clone_product_id_to.", ".$attributes_values['options_id'].", ".$attributes_values['options_values_id'].", ".$attributes_values['options_values_price'].", '".$attributes_values['price_prefix']."')"); } break; ************ REPLACE WITH: ************ // BOF Multiple Product Attributes Clone case 'clone_attributes': $multi_clone_products_id_to=$HTTP_POST_VARS['clone_products_id_to']; for ($i=0;$i
__________________ Michael Sasek osCMax Developer
|
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Product Attributes Clone tool | michael_s | New osCommerce Contributions | 0 | 03-29-2008 05:12 AM |
| Product Attributes Clone tool | michael_s | New osCommerce Contributions | 0 | 03-17-2008 06:12 AM |
| Product Attributes Clone tool | michael_s | New osCommerce Contributions | 2 | 12-11-2007 10:14 PM |
| how to clone the zones shipment mod? | xzyyy | osCMax v2 Features Discussion | 3 | 12-26-2006 02:50 AM |
| Specific Product Image based on chosen product attributes? | chrisrex | osCMax v2 Customization/Mods | 0 | 11-22-2005 09:41 AM |