stockable plugin not add a child product when click add

Started by anisimow, February 22, 2013, 11:29:36 AM

Previous topic - Next topic

anisimow

stockable plugin  not add a child product when click add <span id="new_stockable_product">
in ajax answer is

<!--error--><br />
<b>Warning</b>:  Invalid argument supplied for foreach() in <b>Y:\home\localhost\www\axami\administrator\components\com_virtuemart\models\product.php</b> on line <b> 1436 </b><br />
<script language=JavaScript src='/denwer/errors/phperror_js.php'></script>{"msg":"\u0422\u043e\u0432\u0430\u0440\u044b \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043e","product_id":44,"ok":1}

SOLUTION
in
\plugins\vmcustom\stockable\stockable.php
line 138
product_price: Prod.find('input[name*=\"product_price\"]').val(),
change with

mprices: {
product_price:{
      0:Prod.find('input[name*=\"product_price\"]').val()
}
},