VPS business hosting starting at $29.95/24/7 premium technical support

Bulk Add Custom Attribute Options in Magento 1

$jq=new jQuery.noConflict();
var mimim=["Yellow Topaz",
"Alexandrite"];
$jq.each(mimim,function(a,b){
$jq("#add_new_option_button").click();
$jq("#matage-options-panel .dynamic-grid tbody tr:nth-child(2) td:nth-child(1) input").val(b);
});

Author: Harshvardhan Malpani

PHP Developer based in New Delhi, India. Working as a freelance web developer providing server deployment, website development and maintenance services.

Leave a Reply

Your email address will not be published.