Fix hide reception cart
- add property user_cart_on - add property product_sale_default_focus - add property ticket_create-price_editable - add discount product/ticket enabled
This commit is contained in:
@@ -50,6 +50,8 @@ function TicketSell(o){
|
||||
url_pay_transaction: '',
|
||||
discounts : [],
|
||||
discount: null,
|
||||
//if user cart module is on or off
|
||||
user_cart_on: true
|
||||
|
||||
};
|
||||
|
||||
@@ -61,7 +63,7 @@ function TicketSell(o){
|
||||
addBehaviourDiscountChangedListener();
|
||||
useDefaults();
|
||||
createCarts();
|
||||
addPayoutButtons();
|
||||
// addPayoutButtons();
|
||||
addSellButtons();
|
||||
// addBehaviourBtnCartPaid();
|
||||
}
|
||||
@@ -82,16 +84,19 @@ function TicketSell(o){
|
||||
/**
|
||||
* payout out user or customer cart
|
||||
* */
|
||||
/*
|
||||
function addPayoutButtons(){
|
||||
// addBehaviourPayoutUserCart();
|
||||
// addBehaviourPayoutCustomerCart();
|
||||
}
|
||||
|
||||
*/
|
||||
/**
|
||||
* display user and customer cart on page load
|
||||
* */
|
||||
function createCarts(){
|
||||
createUserCartTable();
|
||||
if ( app.defaults.user_cart_on ){
|
||||
createUserCartTable();
|
||||
}
|
||||
createCustomerCartTable();
|
||||
}
|
||||
|
||||
@@ -117,7 +122,9 @@ function TicketSell(o){
|
||||
}
|
||||
|
||||
function addSellButtons(){
|
||||
addBehaviourBtnSellAndAppendToUserCart();
|
||||
if ( app.defaults.user_cart_on ){
|
||||
addBehaviourBtnSellAndAppendToUserCart();
|
||||
}
|
||||
addBehaviourBtnAddToCustomerCart();
|
||||
addBehaviourBtnSell();
|
||||
}
|
||||
@@ -148,44 +155,6 @@ function TicketSell(o){
|
||||
$('#btn_sell').on('click',submitSell);
|
||||
}
|
||||
|
||||
function addBehaviourPayoutUserCart( ){
|
||||
// $( app.defaults.selector_btn_pay_user_cart ).on('click',function(){
|
||||
//
|
||||
// $.ajax({
|
||||
// url: app.defaults.url_pay_user_cart,
|
||||
// type: 'post',
|
||||
// data: {},
|
||||
// success: function (response) {
|
||||
// if ( response.code == 'success'){
|
||||
// app.defaults.user_cart = response.transfers;
|
||||
// refreshUserCart();
|
||||
// $.notify(app.defaults.message_paid, { 'type' : 'success' });
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// });
|
||||
}
|
||||
function addBehaviourPayoutCustomerCart( ){
|
||||
// $( app.defaults.selector_btn_pay_customer_cart ).on('click',function(){
|
||||
// $.ajax({
|
||||
// url: app.defaults.url_pay_customer_card,
|
||||
// type: 'post',
|
||||
// data: {},
|
||||
// success: function (response) {
|
||||
// if ( response.code == 'success'){
|
||||
// app.defaults.customer_cart = response.customer_cart;
|
||||
// refreshCustomerCart();
|
||||
// }
|
||||
// $.notify(response.message, { 'type' : response.code });
|
||||
// },
|
||||
// error: function(){
|
||||
// alert('Hiba történt');
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// });
|
||||
}
|
||||
|
||||
|
||||
function addBehaviourTypeChangedListener(){
|
||||
|
||||
Reference in New Issue
Block a user