VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Daniel Sjöstrand on April 25, 2013, 21:56:11 PM

Title: Adding Stock and other fields to admin Productlist
Post by: Daniel Sjöstrand on April 25, 2013, 21:56:11 PM
Hello VM friends...

I'm looking for a way to make stock, and perhaps also price and weight into editable fields in admin product list.

I've located the admin productlist template:
administrator/com_virtuemart/views/product/tmpl/default.php

Instead of the Manufacturer field as I don't need that I've inserted this code:
<!-- Manufacturer name -->
<td><input  type="text" class="inputbox js-change-stock"  name="product_in_stock" value="<?php echo $product->product_in_stock?>" size="10" /></td>


Now I can see stock, and i can write in the stock field. But i do not have any save button that works...
So what i need help with is a product save button, either the same style as above the "sort" fields or based on the check-box in each product row.


VM2.0.20b Joomla! 2.5.8 http://www.urda.se