update addorder for product

This commit is contained in:
Aung Myo
2018-06-13 11:18:16 +06:30
parent b949263979
commit 676ec4d611
2 changed files with 10 additions and 4 deletions

View File

@@ -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 = '"