addorder js for product
This commit is contained in:
@@ -13,12 +13,11 @@ $(function() {
|
|||||||
var menu_list = $('.menu_items_list');
|
var menu_list = $('.menu_items_list');
|
||||||
menu_list.empty();
|
menu_list.empty();
|
||||||
|
|
||||||
type = window.location.href.indexOf("quick_service");
|
|
||||||
modify_order = window.location.href.indexOf("modify_order");
|
|
||||||
if (type != -1 && modify_order != -1) {
|
if (type != -1 && modify_order != -1) {
|
||||||
url_item = '../../../addorders/'+url_item;
|
url_item = '../../../../../'+url_item;
|
||||||
}if(modify_order == -1 && type != -1){
|
}
|
||||||
url_item = 'addorders/'+url_item;
|
if(modify_order == -1 && type != -1){
|
||||||
|
url_item = '../../../../'+url_item;
|
||||||
}
|
}
|
||||||
if (type ==-1 && modify_order == -1){
|
if (type ==-1 && modify_order == -1){
|
||||||
url_item = url_item
|
url_item = url_item
|
||||||
@@ -42,7 +41,15 @@ $(function() {
|
|||||||
item_attributes = [];
|
item_attributes = [];
|
||||||
|
|
||||||
if (product[field].image_path) {
|
if (product[field].image_path) {
|
||||||
|
if (type != -1 && modify_order != -1) {
|
||||||
|
image_path = '../../'+product[field].image_path.url;
|
||||||
|
}
|
||||||
|
if(modify_order == -1 && type != -1){
|
||||||
|
image_path = '../../../../'+product[field].image_path.url;
|
||||||
|
}
|
||||||
|
if (type ==-1 && modify_order == -1){
|
||||||
image_path = product[field].image_path.url;
|
image_path = product[field].image_path.url;
|
||||||
|
}
|
||||||
}else{
|
}else{
|
||||||
image_path = "/image/logo.png";
|
image_path = "/image/logo.png";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user