we are using magento multi vendor site.
For single Product we are displaying price, selling price , quantity...etc in vendor account.
we gave an option for vendor to update all the textfields of single product by clicking on one "update" button.
we are using following code for this.
PHTML
<button id="update_button_<?php echo $products->getId(); ?>" class="button wk_mp_btn1" onclick="updateAllFields('<?php echo $products->getId(); ?>'); return false;" >
<span><span style="font-size:12px;"><?php echo $helper->__('Update') ?></span></span>
</button>
Javascript
function updateAllFields(product_id) {
updateFieldPrice(product_id);
updateFieldSpecialPrice(product_id);
updateField(product_id);
}
Now we want to provide an option for update all textfields of multiple products by clicking on one "update" button. Ex: for one product we will edit price , for second we will edit price and qty, for third price, quantity , special price . we edit all textfield values and enter the button "save all".
In the image, last but one column, you can see "save all" button. once we click on that button it should save all the field values.