0.00  View Cart

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 1,223 total)
  • Author
    Posts
  • in reply to: Product Bundles Not adding price in Total price #6352

    Ashanna
    Plugin's author

    Hello,

    Thank you but I can’t do much with a video. I’ll need a link to the product.
    If it requires a temporary admin access or something, please use the contact form.

    Do you have the following versions of the plugins?

    • WooCommerce 3.7.0
    • Easy Booking 2.2.3
    • Product Bundles 5.13.0

    Regards,
    Natasha

    in reply to: Product Bundles Not adding price in Total price #6348

    Ashanna
    Plugin's author

    Hello,

    Did you check the “Priced individually” option on your bundled products?

    If it still doesn’t work, I’ll need a link to your product.

    Thanks.

    Regards,
    Natasha

    in reply to: [Resolved] Calendar arrows don't show up #6346

    Ashanna
    Plugin's author

    No problem, you don’t bother me 🙂

    in reply to: [Resolved] Calendar arrows don't show up #6344

    Ashanna
    Plugin's author

    Hello,

    A little research on the FAQ and you’ll find your answer: https://easy-booking.me/documentation/easy-booking/faq/ (I can’t select previous/next month on the calendar).

    Or even on the forums: https://easy-booking.me/topic/how-do-i-switch-to-next-month/.

    Although, I do see the arrows on your link ?

    Regards,
    Natasha

    in reply to: Problem with woocommerce product add-ons 3.0.15 #6342

    Ashanna
    Plugin's author

    I’ll release a quick update today for the second part, because it seems that a lot of people have this issue.
    I’ll need more time for the first one, though. Thanks for your patience.

    in reply to: Problem with woocommerce product add-ons 3.0.15 #6341

    Ashanna
    Plugin's author

    Hello,

    Yes I am aware there are issues with the latest versions on Product Add-Ons, I’ll fix them in the next update of Easy Booking.

    It could be two things, could you try the following to see if it works?

    This if only if you use any add-on that are not “Multiple choice” or “Checkboxes”:

    • For global add-ons: Go to Products > Add-ons and open your add-on group.
    • For single product add-ons: Go to Products > Your product > Product data > Add-ons.
    • On each add-on, change “Type” to “Multiple choice” and click on “Add option” (leave it empty).
    • Change “Type” back to “Quantity” (or whatever it was) and click on “Update”.

    The problem is that until now, all add-ons (including “Quantity” and others) had “options” fields, where I stored some data for Easy Booking. Now it seems all add-ons don’t have this “options” field saved anymore so you need to manually add an empty one in order to have Easy Booking data saved. Until I find a better solution.

    Otherwise it can also be that the product ID is not sent correctly when selecting dates. It’s a bit harder to fix because it’s in the JS files which is compressed. So the easiest way is that you replace the content of this file woocommmerce-easy-booking-system/assets/js/wceb.min.js with this:

    var wceb={productType:wceb_object.product_type,calcMode:wceb_object.calc_mode,maxOption:new Date(wceb_object.last_date+"T00:00:00"),firstWeekday:wceb_object.first_weekday,allowDisabled:wceb_object.allow_disabled,session:!1,checkIf:{isDate:null,isDay:null,isArray:null,isObject:null,isDisabled:null,dateIsSet:null,datesAreSet:null},get:{firstAvailableDate:null,basePrice:null,additionalCosts:null,childrenIds:null,minAndMax:null,closestDisabled:null,closest:null},createDateObject:null,clearBookingSession:null,applyBookingDuration:null,formatPrice:null,setPrice:null,picker:{close:null,set:null},pickers:{init:null,render:null,reset:null,clearSecond:null,set:null}};!function(e){e(document).ready(function(){ajax_url=("https:"===location.protocol?"https:":"http:")+wceb_object.ajax_url,$body=e("body"),$cart=e(".cart"),$qty_input=$cart.find('input[name="quantity"]'),$booking_price=e(".booking_price"),$add_to_cart_button=e(".single_add_to_cart_button"),$reset_dates=e("a.reset_dates"),product_id=e('input[name="add-to-cart"], button[name="add-to-cart"]').val(),$variation_input=e(".variations_form").find('input[name="variation_id"]'),$inputStart=e(".datepicker_start").pickadate(),pickerStart=$inputStart.pickadate("picker"),pickerStartItem=pickerStart.component.item,$inputEnd=e(".datepicker_end").pickadate(),pickerEnd=$inputEnd.pickadate("picker"),pickerEndItem=pickerEnd.component.item;var t={startFormat:null,endFormat:null};wceb.checkIf.isDate=function(e){return e instanceof Date},wceb.checkIf.isDay=function(e){return!isNaN(e)&&e>=1&&e<=7},wceb.checkIf.isArray=function(e){return e instanceof Array},wceb.checkIf.isObject=function(e){return"object"==typeof e&&!(e instanceof Date)},wceb.checkIf.isDisabled=function(t,a){if(void 0===t)return!1;var r=!1,c=a.pick;return e.each(t,function(e,t){if(wceb.checkIf.isArray(t)){if(t=new Date(t[0],t[1],t[2]),c===t.getTime())return void(r=!0)}else if(wceb.checkIf.isObject(t)){if(start=new Date(t.from[0],t.from[1],t.from[2]),end=new Date(t.to[0],t.to[1],t.to[2]),c>=start.getTime()&&c<=end.getTime())return void(r=!0)}else if(wceb.checkIf.isDay(t)){var i=a.day;if("1"===wceb.firstWeekday&&0===i?i=7:"1"!==wceb.firstWeekday&&(i+=1),t===i)return void(r=!0)}else if(wceb.checkIf.isDate(t)&&c===t.getTime())return void(r=!0)}),r},wceb.checkIf.dateIsSet=function(e){if("start"===e)e=pickerStart.get("select");else if("end"===e)e=pickerEnd.get("select");return null!=e},wceb.checkIf.datesAreSet=function(){var e=pickerStart.get("select"),t=pickerEnd.get("select");return null!=e&&null!=t},wceb.get.firstAvailableDates=function(){var e={};if((t=+parseInt(wceb.firstDate))<=0)var t=!1;for(var a=wceb.createDateObject(!1,t),r=pickerStartItem.disable;!0===wceb.checkIf.isDisabled(r,a);)a=wceb.createDateObject(a.obj,1);if(e.start=a,"two"===wceb.dateFormat){for(var c=new Date(a.pick),i=wceb.createDateObject(c,wceb.bookingMin),n=pickerEndItem.disable;!0===wceb.checkIf.isDisabled(n,i);)i=wceb.createDateObject(i.obj,1);e.end=i}return e},wceb.get.basePrice=function(){if($qty_input.length)var e=parseFloat($qty_input.val());else e=1;var t=parseFloat($booking_price.attr("data-booking_price")),a="two"===wceb.dateFormat&&!wceb.checkIf.datesAreSet()||"one"===wceb.dateFormat&&!wceb.checkIf.dateIsSet("start")?wceb.get.additionalCosts():0;return parseFloat((a+t)*e)},wceb.get.regularPrice=function(){if($qty_input.length)var e=parseFloat($qty_input.val());else e=1;var t=parseFloat($booking_price.attr("data-booking_regular_price")),a="two"===wceb.dateFormat&&!wceb.checkIf.datesAreSet()||"one"===wceb.dateFormat&&wceb.checkIf.dateIsSet("start")?wceb.get.additionalCosts():0;return parseFloat((a+t)*e)},wceb.get.additionalCosts=function(t){var a=0,r={};return"bundle"===wceb.productType&&"each"===t?$selector=e(".product").find("form.cart").find(".cart"):"bundle"===wceb.productType&&"each"!==t?$selector=e(".product").find(".cart.bundle_data"):$selector=e(".product").find("form.cart"),$selector.each(function(){e(this).find(".addon, .wc-pao-addon-field").each(function(){var t=0,c=e(this),i=c.parents(".cart");if(void 0!==i.data("bundle_id"))var n=i.data("product_id"),o=i.data("bundled_item_id"),d=i.find('input[name="bundle_variation_id_'+o+'"]').val(),s=void 0===d?n:d;if(c.is(".addon-custom-price, .wc-pao-addon-custom-price")?t=c.val():c.is(".addon-input_multiplier, .wc-pao-addon-input-multiplier")?(isNaN(c.val())||""==c.val()?(c.val(""),c.closest("p").find(".addon-alert").show()):(""!=c.val()&&c.val(Math.ceil(c.val())),c.closest("p").find(".addon-alert").hide()),t=c.data("price")*c.val()):c.is(".addon-checkbox, .wc-pao-addon-checkbox, .addon-radio, .wc-pao-addon-radio")?c.is(":checked")&&(t=c.data("price")):c.is(".addon-select, .wc-pao-addon-select, .wc-pao-addon-image-swatch-select")?c.val()&&(t=c.find("option:selected").data("price")):c.val()&&(t=c.data("price")),t||(t=0),a+=t,void 0===s){var l=$variation_input.val();s=void 0!==l?l:product_id}if(void 0!==s&&""!==s){var b=c.attr("name").replace(/ *\[[^\]]*]/,"").replace("addon-","");if(void 0!==o)b=b.replace(o+"-",s+"-");r.hasOwnProperty(b)?r[b].push(t):r[b]=[t]}})}),"each"===t?r:a},wceb.get.childrenIds=function(){var t={};if("grouped"===wceb.productType){var a=wceb_object.children;e.each(a,function(a,r){$child_input=e('input[name="quantity['+r+']"]'),$child_input.is(".wc-grouped-product-add-to-cart-checkbox")?$child_input.is(":checked")?quantity=1:quantity=0:quantity=$child_input.val(),quantity>0&&(t[r]=quantity)})}else if("bundle"===wceb.productType){var r=e(".cart.bundle_data"),c=r.data("bundle_id");if(r.find('input[name="quantity"]').length)var i=r.find('input[name="quantity"]').val();else i=1;t[c]=i,$body.find(".bundled_product .cart").each(function(){$this=e(this),optional=$this.data("optional"),bundle=$this.data("bundled_item_id"),child=$this.data("product_id"),variation=$this.find('input[name="bundle_variation_id_'+bundle+'"]').val(),quantity=$this.find(".bundled_qty").val();var a="undefined"==typeof variation?child:variation;"yes"===optional&&(!1===e('input[name="bundle_selected_optional_'+bundle+'"]').is(":checked")&&(quantity=0));""!==a&&quantity>0&&(t[a]=quantity)})}return t},wceb.get.minAndMax=function(e,t){var a=new Date(e.year,e.month,e.date),r=new Date(e.year,e.month,e.date),c=wceb.get.firstAvailableDates(),i="minus"===t?c.start.obj:c.end.obj;if("minus"===t&&""===wceb.bookingMax)a=i;"plus"===t?(a.setDate(a.getDate()+wceb.bookingMin),""!==wceb.bookingMax&&r.setDate(r.getDate()+wceb.bookingMax)):(r.setDate(r.getDate()-wceb.bookingMin),""!==wceb.bookingMax&&a.setDate(a.getDate()-wceb.bookingMax)),i>a&&(a=i),"plus"===t&&""===wceb.bookingMax&&(r=!1),(!r||wceb.maxOption<r)&&(r=wceb.maxOption);var n={};return n.min=a,n.max=r,n},wceb.get.closestDisabled=function(t,a,r){var c=new Date(t),i=c.getDay(),n=a.get("disable"),o=[];return e.each(n,function(e,a){if(wceb.checkIf.isArray(a)){if("booked"===a.type||"no"===wceb.allowDisabled){var n=new Date(a[0],a[1],a[2]);o.push(n.getTime())}}else if(wceb.checkIf.isObject(a)){if("superior"===r)n=new Date(a.from[0],a.from[1],a.from[2]);else n=new Date(a.to[0],a.to[1],a.to[2]);"booked"!==a.type&&"no"!==wceb.allowDisabled||o.push(n.getTime())}else if(wceb.checkIf.isDate(a))o.push(a.getTime());else if("no"===wceb.allowDisabled&&wceb.checkIf.isDay(a))if("superior"===r){0===(s=Math.abs(i-a))&&(s=7),a<i&&7!==s&&(s=7-s);var d=c.setDate(c.getDate()+s);o.push(d),c=new Date(t)}else if("inferior"===r){var s;0===(s=Math.abs(i-a))&&(s=7),i<a&&7!==s&&(s=7-s),previousDisabledDay=c.setDate(c.getDate()-s),o.push(previousDisabledDay)}}),o.sort(),wceb.get.closest(o,t,r)},wceb.get.closest=function(e,t,a){minClosest=!1;for(var r=0;r<e.length;r++)if("superior"===a){if(e[r]>t){minClosest=e[r];break}minClosest=!1}else"inferior"===a&&e[r]<t&&(minClosest=e[r]);return minClosest},wceb.createDateObject=function(e,t){var a={};if(!e)e=new Date;return t&&e.setDate(e.getDate()+t),"infinity"===e?a={date:1/0,day:1/0,month:1/0,obj:1/0,pick:1/0,year:1/0}:wceb.checkIf.isDate(e)?(e.setHours(0,0,0,0),a={date:e.getDate(),day:e.getDay(),month:e.getMonth(),obj:e,pick:e.getTime(),year:e.getFullYear()}):a},wceb.clearBookingSession=function(){if(wceb.session){var t={security:document.getElementsByName("_wceb_nonce")[0].value};e.post(ajax_url.toString().replace("%%endpoint%%","clear_booking_session"),t,function(e){wceb.session=e})}$booking_price.find(".price").html(""),e(".booking_details").html(""),$add_to_cart_button.prop("disabled",!0)},wceb.applyBookingDuration=function(e,t,a){var r,c=t.disable,i="end"===e?t.max:t.min,n=new Date(a.year,a.month,a.date),o=t.view,d=new Date(o.year,o.month,0).getDate(),s=new Date(o.year,o.month+1,0).getDate(),l=new Date(o.year,o.month+2,0).getDate(),b=parseInt(d+s+l),p=Math.abs(Math.round((o.pick-a.pick)/864e5)),u="end"===e?parseInt(p-d):parseInt(p-s-l),m="end"===e?parseInt(p-d+b):parseInt(p-l+b);if("end"===e&&p<d)u=wceb.bookingCustomDuration,m=parseInt(p+s+l);if("start"===e&&u<l)u=wceb.bookingCustomDuration,m=parseInt(p+s+d);if(u<0&&(u=0),u<wceb.bookingCustomDuration)u=wceb.bookingCustomDuration;else{var f,w=[];for(f=0;f<=u;f+=wceb.bookingCustomDuration)w.push(f);u=w.slice(-1)[0]}"days"===wceb.calcMode&&(u-=1);var k=[1,2,3,4,5,6,7];for(first=!1,r=u;r<=m;r+=wceb.bookingCustomDuration){var _=new Date(a.year,a.month,a.date);if("start"===e?_.setDate(n.getDate()-r):"end"===e&&_.setDate(n.getDate()+r),dateToEnable=wceb.createDateObject(_),"end"===e&&dateToEnable.obj>i.obj||"start"===e&&dateToEnable.obj<i.obj)break;if(void 0!==c&&c.length>0)var g=wceb.checkIf.isDisabled(c,dateToEnable);!0!==g&&k.push([dateToEnable.year,dateToEnable.month,dateToEnable.date,"inverted"])}return t.disable=c.concat(k),!1},wceb.formatPrice=function(e){return formatted_price=accounting.formatMoney(e,{symbol:wceb_object.currency_format_symbol,decimal:wceb_object.currency_format_decimal_sep,thousand:wceb_object.currency_format_thousand_sep,precision:wceb_object.currency_format_num_decimals,format:wceb_object.currency_format}),formatted_price},wceb.setPrice=function(){var a=$variation_input.val();children=wceb.get.childrenIds(),t={};e.fn.pickadate.defaults.format;t.startFormat=pickerStart.get("select","yyyy-mm-dd"),t.endFormat=pickerEnd.get("select","yyyy-mm-dd");var r=wceb.get.additionalCosts("each"),c={security:document.getElementsByName("_wceb_nonce")[0].value,product_id:e('input[name="add-to-cart"], button[name="add-to-cart"]').val(),variation_id:a,children:children,start_format:t.startFormat,end_format:t.endFormat,additional_cost:r};e("form.cart, form.bundle_form").fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent",backgroundSize:"16px 16px",opacity:.6}}),e.post(ajax_url.toString().replace("%%endpoint%%","add_new_price"),c,function(t){if(e(".woocommerce-error, .woocommerce-message").remove(),fragments=t.fragments,error=t.error,error)return e(".wceb_picker_wrap").prepend('<div class="wceb_error woocommerce-error">'+error+"</div>"),wceb.pickers.reset(),$reset_dates.hide(),e("form.cart, form.bundle_form").stop(!0).css("opacity","1").unblock(),!1;if(fragments){if(e.each(fragments,function(t,a){e(t).replaceWith(a)}),$qty_input.length)var a=parseFloat($qty_input.val());else a=1;var r=wceb.formatPrice(fragments.booking_price*a),i='<span class="woocommerce-Price-amount amount">'+r+"</span>"+wceb_object.price_suffix;if(""!==fragments.booking_regular_price){i='<del><span class="woocommerce-Price-amount amount">'+wceb.formatPrice(fragments.booking_regular_price*a)+wceb_object.price_suffix+'</span></del> <ins><span class="woocommerce-Price-amount amount">'+r+wceb_object.price_suffix+"</span></ins>";$booking_price.attr("data-booking_regular_price",fragments.booking_regular_price)}$booking_price.attr("data-booking_price",fragments.booking_price).find(".price").html(i),wceb.session=fragments.session}$body.trigger("update_price",[c,t]),e("form.cart, form.bundle_form").stop(!0).css("opacity","1").unblock()})},wceb.picker.set=function(){var a=$variation_input.val();children=wceb.get.childrenIds(),t.startFormat=pickerStart.get("select","yyyy-mm-dd");var r={security:document.getElementsByName("_wceb_nonce")[0].value,product_id:e('input[name="add-to-cart"], button[name="add-to-cart"]').val(),variation_id:a,children:children,start_format:t.startFormat,additional_cost:wceb.get.additionalCosts("each")};e("form.cart, form.bundle_form").fadeTo("400","0.6").block({message:null,overlayCSS:{background:"transparent",backgroundSize:"16px 16px",opacity:.6}}),e.post(ajax_url.toString().replace("%%endpoint%%","add_new_price"),r,function(t){if(e(".woocommerce-error, .woocommerce-message").remove(),fragments=t.fragments,error=t.error,error)return e(".wceb_picker_wrap").prepend('<div class="wceb_error woocommerce-error">'+error+"</div>"),wceb.pickers.reset(),$reset_dates.hide(),e("form.cart, form.bundle_form").stop(!0).css("opacity","1").unblock(),!1;if(fragments){if(e.each(fragments,function(t,a){e(t).replaceWith(a)}),fragments.booking_price){if($qty_input.length)var a=parseFloat($qty_input.val());else a=1;var c=wceb.formatPrice(fragments.booking_price*a),i='<span class="woocommerce-Price-amount amount">'+c+"</span>"+wceb_object.price_suffix;if(""!==fragments.booking_regular_price){i='<del><span class="woocommerce-Price-amount amount">'+wceb.formatPrice(fragments.booking_regular_price*a)+'</span></del> <ins><span class="woocommerce-Price-amount amount">'+c+"</span></ins>";$booking_price.attr("data-booking_regular_price",fragments.booking_regular_price)}$booking_price.attr("data-booking_price",fragments.booking_price).find(".price").html(i)}wceb.session=fragments.session}$body.trigger("update_price",[r,t]),e("form.cart, form.bundle_form").stop(!0).css("opacity","1").unblock()})},wceb.picker.close=function(t,a){if(e(document.activeElement).blur(),"two"===wceb.dateFormat){var r=t.get("select"),c=a.get("select");wceb.checkIf.dateIsSet(r)&&!wceb.checkIf.dateIsSet(c)&&setTimeout(function(){a.open()},250)}},wceb.pickers.init=function(){pickerStartItem.disable=[],"two"===wceb.dateFormat&&(pickerEndItem.disable=[]);var e=wceb.get.firstAvailableDates(),t=e.start,a=wceb.createDateObject(wceb.maxOption),r=wceb.createDateObject(new Date(t.year,t.month,1));if(pickerStartItem.clear=null,pickerStartItem.select=void 0,pickerStartItem.min=t,pickerStartItem.max=a,pickerStartItem.highlight=t,pickerStartItem.view=r,pickerStart.$node.val(""),"two"===wceb.dateFormat){var c=e.end,i=wceb.createDateObject(new Date(c.year,c.month,1));pickerEndItem.clear=null,pickerEndItem.select=void 0,pickerEndItem.min=c,pickerEndItem.max=a,pickerEndItem.highlight=c,pickerEndItem.view=i,pickerEnd.$node.val("")}return $add_to_cart_button.prop("disabled",!0),!1},wceb.pickers.render=function(e){$body.trigger("pickers_init",e),pickerStart.render(),pickerEnd.render(),$body.trigger("after_pickers_init",e)},wceb.pickers.reset=function(){if(wceb.pickers.init(),"variable"===wceb.productType){var e=$variation_input.val(),t={};t.variation_id=e,wceb.pickers.render(t)}else if("grouped"===wceb.productType||"bundle"===wceb.productType){var a=$reset_dates.attr("data-ids");wceb.pickers.render(JSON.parse(a))}else wceb.pickers.render()},wceb.pickers.clearSecond=function(e,t,a){var r=a.component.item,c=wceb.get.firstAvailableDates()[t],i=wceb.createDateObject(wceb.maxOption),n=wceb.createDateObject(new Date(c.year,c.month,1));r.disable=[],r.min=c,r.max=i,null===a.get("select")&&(r.highlight=c,r.view=n),$body.trigger("clear_"+e+"_picker",r),a.render()},wceb.pickers.set=function(e,t,a,r){var c=t.get("select"),i=a.get("select");if(null!==c){var n="start"===e?"superior":"inferior",o="start"===e?"plus":"minus",d=c.pick,s=wceb.get.minAndMax(c,o),l=s.min,b=s.max,p="start"===e?b:l;b||(b=wceb.maxOption);var u=wceb.get.closestDisabled(d,a,n);if(u){var m=new Date(u);if("start"===e&&u<p||"end"===e&&u>p)p=m}l="start"===e?wceb.createDateObject(l):wceb.createDateObject(p),b="start"===e?wceb.createDateObject(p):wceb.createDateObject(b);var f=wceb.createDateObject(new Date(l.year,l.month,1));r.min=l,r.max=b,r.view=f,null==i&&(r.highlight=l),$body.trigger("set_"+e+"_picker",[r,d]),a.render(),wceb.checkIf.datesAreSet()&&wceb.setPrice()}},pickerStart.on({render:function(){pickerStart.$root.find(".picker__header").prepend('<div class="picker__title">'+wceb_object.start_text+"</div>")},set:function(e){void 0!==e.clear&&null===e.clear&&("two"===wceb.dateFormat&&(wceb.pickers.clearSecond("start","end",pickerEnd),wceb.checkIf.dateIsSet("end")||$reset_dates.hide()),t.startFormat=null,$body.trigger("clear_start_date")),"two"===wceb.dateFormat&&wceb.checkIf.dateIsSet(e.select)?(wceb.pickers.set("start",pickerStart,pickerEnd,pickerEndItem),$reset_dates.show()):"one"===wceb.dateFormat&&wceb.checkIf.dateIsSet(e.select)&&wceb.picker.set()},close:function(){wceb.picker.close(pickerStart,pickerEnd)}}),pickerEnd.on({render:function(){pickerEnd.$root.find(".picker__header").prepend('<div class="picker__title">'+wceb_object.end_text+"</div>")},set:function(e){return void 0!==e.clear&&null===e.clear&&(wceb.pickers.clearSecond("end","start",pickerStart),wceb.checkIf.dateIsSet("start")||$reset_dates.hide(),t.endFormat=null,$body.trigger("clear_end_date")),"two"===wceb.dateFormat&&wceb.checkIf.dateIsSet(e.select)&&(wceb.pickers.set("end",pickerEnd,pickerStart,pickerStartItem),$reset_dates.show()),!1},close:function(){wceb.picker.close(pickerEnd,pickerStart)}}),$body.on("pickers_init",function(e,t){var a=wceb.get.firstAvailableDates(),r=a.start;if(pickerStartItem.view=wceb.createDateObject(new Date(r.year,r.month,1)),pickerStartItem.highlight=r,"two"===wceb.dateFormat){var c=a.end;pickerEndItem.view=wceb.createDateObject(new Date(c.year,c.month,1)),pickerEndItem.highlight=c,pickerEndItem.min=c}return!1}),pickerStart.on("before_rendering",function(){if("two"===wceb.dateFormat){var e=pickerEnd.get("select");startPickerDisabled=pickerStartItem.disable,wceb.checkIf.dateIsSet(e)&&"days"!==wceb.bookingDuration&&wceb.bookingCustomDuration>1&&wceb.applyBookingDuration("start",pickerStartItem,e)}}),pickerStart.on("after_rendering",function(){"two"===wceb.dateFormat&&(pickerStartItem.disable=startPickerDisabled)}),pickerEnd.on("before_rendering",function(){var e=pickerStart.get("select");endPickerDisabled=pickerEndItem.disable,wceb.checkIf.dateIsSet(e)&&"days"!==wceb.bookingDuration&&wceb.bookingCustomDuration>1&&wceb.applyBookingDuration("end",pickerEndItem,e)}),pickerEnd.on("after_rendering",function(){pickerEndItem.disable=endPickerDisabled}),$cart.on("change",'input[name="quantity"]',function(){formatted_price=wceb.formatPrice(wceb.get.basePrice()),$booking_price.find(".price .amount").html(formatted_price),formatted_regular_price=wceb.formatPrice(wceb.get.regularPrice()),$booking_price.find(".price del .amount").html(formatted_regular_price)}),$body.on("update_price",function(){$add_to_cart_button.prop("disabled",!1)}),e(".product-addon input, .product-addon textarea, .product-addon select, .product-addon input.qty, .wc-pao-addon input, .wc-pao-addon textarea, .wc-pao-addon select, .wc-pao-addon-image-swatch, .wc-pao-addon input.qty").on("woocommerce-product-addons-update",function(){if("two"===wceb.dateFormat&&wceb.checkIf.datesAreSet())wceb.setPrice();else if("one"===wceb.dateFormat&&wceb.checkIf.dateIsSet("start"))wceb.picker.set();else{var e=wceb.formatPrice(wceb.get.basePrice());$booking_price.find(".price .amount").html(e),formatted_regular_price=wceb.formatPrice(wceb.get.regularPrice()),$booking_price.find(".price del .amount").html(formatted_regular_price)}}),$body.on("clear_start_date clear_end_date",function(){wceb.clearBookingSession()}),$reset_dates.on("click",function(t){t.preventDefault(),wceb.pickers.reset(),wceb.clearBookingSession(),e(this).hide()}).hide()})}(jQuery);

    Then clear your cache and try again.

    Tell me if any of this works 🙂

    Regards,
    Natasha

    in reply to: AVAILABILITY CHECK is not working #6330

    Ashanna
    Plugin's author

    So:

    • You need to enable stock management on your product if you want Availability Check to work. Make sure to read the documentation please.
    • There’s an issue with your theme loading Jquery, because WooCommerce loads it first and it causes issues if it’s loaded twice. I removed it from your theme. You should contact the theme developper and tell them to add a condition to check if it has already been loaded, before loading it again.
    • There was a javascript issue with your Stripe plugin (the key was incorrect), preventing Easy Booking from working. I disabled the plugin, you’ll need to fix the issue if you want to enable Stripe again.
    Error: It looks like you're using an older Stripe key. In order to use this API, you'll need to use a modern API key, which is prefixed with 'pk_live_' or 'pk_test_'.
        You can roll your publishable key here: https://dashboard.stripe.com/account/apikeys

    Now it works but I won’t help any further as all these issues are not related to Easy Booking.

    Also, you don’t need the code I mentionned above if you don’t use custom order statuses…

    Regards,
    Natasha

    in reply to: [Resolved] Translation doesn't work #6328

    Ashanna
    Plugin's author

    Allright, great 🙂

    in reply to: Use scheduled date in another plugin #6327

    Ashanna
    Plugin's author

    It depends where you want to change it.

    On the order page, you need to change your settings in the admin panel > Settings > General > Date format.

    On the product page, you need to find the file corresponding to your language in woocommerce-easy-booking-system/assets/js/translations and change the “format” value (don’t touch the “formatSubmit” value).

    Regards,
    Natasha

    in reply to: Use scheduled date in another plugin #6322

    Ashanna
    Plugin's author

    You can get dates with these functions:

    $start = wc_get_order_item_meta( $item_id, '_ebs_start_format' );
    $end = wc_get_order_item_meta( $item_id, '_ebs_end_format' );

    You only need the $item_id variable, which you probably already have.

    I hope this helps 🙂

    in reply to: AVAILABILITY CHECK is not working #6320

    Ashanna
    Plugin's author

    Hello,

    Yes I need at least a link to your product… Use the contact form if you need to send me an admin access.

    If you have custom order statuses, you need to add them to Easy Booking (check here).

    Regards,
    Natasha

    in reply to: Use scheduled date in another plugin #6319

    Ashanna
    Plugin's author

    Hello,

    I don’t speak Portuguese, sorry. Please post your message in English.

    Thanks.

    Regards,
    Natasha

    in reply to: Suggestion: validation error on empty dates #6318

    Ashanna
    Plugin's author

    Hello,

    It is disabled, it’s just that your CSS makes it look normal (it has a “cursor: pointer” property for instance).

    And in my sense, it’s useless to allow people clicking the “add to cart” button if it’s going to return an error anyway.

    You could try to add this to your theme’s style.css for example:

    .single_add_to_cart_button {
    	position: relative;
    }
    
    .single_add_to_cart_button:disabled {
      cursor: not-allowed !important;
    }
    
    .single_add_to_cart_button:disabled::after {
    	content: "Please select dates";
    	box-sizing: border-box;
    	display: block;
    	position: absolute;
    	left:0; top: 0;
        width: 100%; height: 100%;
    	background: #d69e5a;
        padding-top: 5px;
    }

    It will add a “Please select dates” text on the button when it’s disabled.

    Regards,
    Natasha

    in reply to: Como Product – Woocommerce + Date #6309

    Ashanna
    Plugin's author

    Oh allright, then make sure you have checked the “Bookable” option on all products: the parent one and the child ones.

    If it still doesn’t work, can I have a link to the product please?

    in reply to: Como Product – Woocommerce + Date #6303

    Ashanna
    Plugin's author

    Hello,

    Easy Booking only works with simple, variable, grouped and bundle products.
    I don’t know what a combo product is.

    Regards,
    Natasha

Viewing 15 posts - 1 through 15 (of 1,223 total)

Want to know what's next with Easy Booking? Check the roadmap!