update addorder
This commit is contained in:
@@ -166,6 +166,7 @@ $(function(){
|
|||||||
max_qty = $(this).data('max-qty');
|
max_qty = $(this).data('max-qty');
|
||||||
code = $(this).data('code');
|
code = $(this).data('code');
|
||||||
|
|
||||||
|
if ($('.selected-instance').length+1 <= max_qty) {
|
||||||
for(var field in item_options) {
|
for(var field in item_options) {
|
||||||
value = item_options[field]["values"];
|
value = item_options[field]["values"];
|
||||||
type = item_options[field]["type"];
|
type = item_options[field]["type"];
|
||||||
@@ -177,9 +178,7 @@ $(function(){
|
|||||||
});
|
});
|
||||||
$(".options-list").append(row);
|
$(".options-list").append(row);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
console.log($('.selected-instance').length)
|
|
||||||
|
|
||||||
if($(this).hasClass('selected-instance') == true){
|
if($(this).hasClass('selected-instance') == true){
|
||||||
sub_total = $('#set_total_price').text();
|
sub_total = $('#set_total_price').text();
|
||||||
name = $(this).data('name');
|
name = $(this).data('name');
|
||||||
|
|||||||
Reference in New Issue
Block a user