Cloning Variants and Templates for a large list of products
Cloning Variants and Templates for a large list of products
I have a category and the products under that category has the same product variants and product templates. Now I have created just one product, how can I clone the same variant and template for some 25 products? I don't want to go through the pain of creating the variant and template for all the new 24 other products.
PongGuru
PingPongGalaxy.com
PingPongGalaxy.com
Re: Cloning Variants and Templates for a large list of products
You may write a custom script to get this functionality like this
Code: Select all
List<Product> products = ProductDataSource.NarrowSearch(string.Empty, Category_id, 0, 0, 0, 0, 0, string.Empty);
foreach (Product product in products)
{
Option option = new Option();
option.ProductOptions.Add(new ProductOption(product.ProductId, 0));
option.Name = "Option_Name";
option.Save();
OptionChoice optChoice = new OptionChoice();
optChoice.Name = "Variant_Name";
optChoice.OptionId = option.OptionId;
optChoice.Save();
}
hope this helps!
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
__________________
s_ismail
AbleCommerce Customization
Free Plugins and Add-Ons
AbleCommerce Plugins and Add-Ons
Plugables Blog
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
Re: Cloning Variants and Templates for a large list of products
If you haven't entered the new products, you could copy the first one, then change name, price, sku, etc.
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx