update addorder for product
This commit is contained in:
@@ -6,8 +6,8 @@ $(function() {
|
||||
|
||||
//click menu sidebar menu category
|
||||
$(".product").on("click", function(){
|
||||
// /var url = $(this).attr('data-ref');
|
||||
// /show_product_list(url);
|
||||
var url = $(this).attr('data-ref');
|
||||
show_product_list(url);
|
||||
});
|
||||
//show menu item list when click menu category
|
||||
function show_product_list(url_item){
|
||||
@@ -43,7 +43,7 @@ $(function() {
|
||||
options = [];
|
||||
item_attributes = [];
|
||||
|
||||
if (product[field].image_path) {
|
||||
if (product[field].image_path.url) {
|
||||
if (type != -1 && modify_order != -1) {
|
||||
image_path = '../../'+product[field].image_path.url;
|
||||
}
|
||||
@@ -74,7 +74,7 @@ $(function() {
|
||||
+'</div>'
|
||||
+'</div>'
|
||||
|
||||
+"<div class='add_icon' data-item-code='"
|
||||
+"<div class='add_icon p-t-65' data-item-code='"
|
||||
+ product[field].item_code +"' data-name='"
|
||||
+ product[field].name +"' data-qty = '"+ qty +"' data-price = '"
|
||||
+ product[field].unit_price +"' data-instance-code = '"+ product[field].item_code +"' data-instance = '"
|
||||
|
||||
Reference in New Issue
Block a user