update second display
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB |
@@ -366,6 +366,11 @@ $(function() {
|
||||
var items = $('.selected-instance');
|
||||
|
||||
if (items.length >= min_qty) {
|
||||
|
||||
item = get_set_item(items);
|
||||
console.log(item)
|
||||
// customer_display_view(item,"add");
|
||||
|
||||
attribute_arr = []
|
||||
option_arr = []
|
||||
|
||||
@@ -685,6 +690,7 @@ $(function() {
|
||||
$('.add_to_order').attr('data-options',JSON.stringify(option_arr));
|
||||
var item_data = $(this);
|
||||
item = get_item(item_data);
|
||||
console.log(item)
|
||||
customer_display_view(item,"add");
|
||||
show_item_detail(item_data);
|
||||
calculate_sub_total();
|
||||
@@ -1173,6 +1179,32 @@ $(function() {
|
||||
return sale_items;
|
||||
}
|
||||
|
||||
/* Get Item rows */
|
||||
function get_set_item(items){
|
||||
var sale_items = [];
|
||||
|
||||
var sale_item = {};
|
||||
sale_item.code = $('.set-item').attr('data-code');
|
||||
sale_item.name = $('.set-item').attr('data-name');
|
||||
sale_item.price = $('.set-item').attr('data-price');
|
||||
sale_item.option = $('.set-item').attr('data-options');
|
||||
sale_item.parent = $('.set-item').attr('data-parent');
|
||||
|
||||
sale_items.push(sale_item);
|
||||
|
||||
$(items).each(function(i){
|
||||
sale_item,code = $(items[i]).attr('data-code');
|
||||
sale_item,name = $(items[i]).attr('data-name');
|
||||
sale_item,price = $(items[i]).attr('data-price');
|
||||
sale_item,option = $(items[i]).attr('data-options');
|
||||
sale_item,sub_item = $(items[i]).attr('data-sub-item');
|
||||
sale_items.push(sale_item);
|
||||
});
|
||||
|
||||
|
||||
return sale_items;
|
||||
}
|
||||
|
||||
function customer_display_view(data,status) {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<%= javascript_include_tag 'wow_script', 'data-turbolinks-track': 'reload' %>
|
||||
<div class="row">
|
||||
<div class="col-lg-12 col-md-12 col-sm-12">
|
||||
<div id="wowslider-container" style="max-width: 100%;height: 530px ;">
|
||||
<div id="wowslider-container" style="max-width: 100%;">
|
||||
<div class="ws_images full_screen">
|
||||
<ul>
|
||||
<li><%= image_tag("slider/s1.jpg", :alt => "rss feed") %></li>
|
||||
|
||||
@@ -20,11 +20,11 @@ class ActionController::Base
|
||||
end
|
||||
else
|
||||
# check for license file
|
||||
if check_license
|
||||
current_license(ENV["SX_PROVISION_URL"])
|
||||
else
|
||||
redirect_to activate_path
|
||||
end
|
||||
# if check_license
|
||||
# current_license(ENV["SX_PROVISION_URL"])
|
||||
# else
|
||||
# redirect_to activate_path
|
||||
# end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
iv_key: f3ICP0M2HJLIeXURn3yv5A==
|
||||
shop_name: sx_license_test3
|
||||
email: aungmyo.zaw@code2lab.com
|
||||
telephone: 0099404923
|
||||
fax: 49494949432
|
||||
address: Yangon
|
||||
dbhost: m4ZCds3ANyqjqCgZVSTfRQ==
|
||||
dbschema: +mvY73HAjWqMrby9Zu+tBg==
|
||||
dbusername: UO2rBxhoSfDEKutK2OEL4A==
|
||||
dbpassword: sVpy+Lj6i3MpT+CjoJrDOw==
|
||||
api_token: srTutEOCzphDFOXQqVWnZwQDTXiHdzwzY
|
||||
app_token: pSzbojYfXLNpSLmhdNTfLCtxfzeUahO
|
||||
plan_sku: +53eC6oiOsBRxtBgVjyULw==
|
||||
renewable_date: hon6p5jvfirTFniaFrH0qw==
|
||||
plan_name: eaMIWzHlTnljCEkE2oxoHg==
|
||||
Reference in New Issue
Block a user