0.00  View cart

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • in reply to: Create 2 events instead of 1 event #8126
    Christoph
    Participant

    Yes, that helps. Thank you!

    in reply to: Create 2 events instead of 1 event #8124
    Christoph
    Participant

    Hi,

    it is a little bit more challenging, unfortunately. First, you need a new field in the order item meta for the second id. And many functions explicitely only look at your field, so I had to change that.

    But my main problem is to figure out where exactly you store the event id to the order item meta. If I use your functions, I always get the same id in your field (_ebc_event_id) and my custom field (_ebc_event_id2), so an update/delete of “my second event” is impossible.

    Can you please give me an advice for that? Thank you!

    Best regards,

    Christoph

     

     

    in reply to: Create 2 events instead of 1 event #8117
    Christoph
    Participant

    Hi Natasha,

    thanks for your reply. I think you didn’t fully understand my point. It’s perfectly okay to create 1 event for each order item. I even need 2 events for each order item.

    The consolidation of the events is another issue I already solved. We use bundle products, so I only create an event for a bundle product and save the whole order in the description.

     

    Best regards,

    Christoph

    in reply to: [Resolved] Set maximum price for product #8048
    Christoph
    Participant

    Hi Natasha,

    thanks a lot, that works fantastic for bundles and single products! You should add that to your documentation, I think it is a helpful piece of code.

    I customized it a little bit, here is my code if anyone is interested:

    add_filter( 'easy_booking_new_price', 'wceb_set_maximum_booking_price', 99, 4 );
    add_filter( 'easy_booking_new_regular_price', 'wceb_set_maximum_booking_price', 99, 4 );
    
    function wceb_set_maximum_booking_price( $price, $data, $product, $_product ) {
    	$childProductId = $_product->get_id();
    	
    	$max50EurosProducts = array(51687, 51428, 47201, 43500); 
    	$max100EurosProducts = array(47216);
    	
    	if (in_array($childProductId, $max50EurosProducts))	{
    		if ( $price > 50 ) {
    			$price = wc_format_decimal( 50 );
    		}
    	}
    	
    	if (in_array($childProductId, $max100EurosProducts) )	{
    		if ( $price > 100 ) {
    			$price = wc_format_decimal( 100 );
    		}
    	}
    
        return $price;
    
    }

    Best regards,

    Christoph

    in reply to: 302 error when calculating price for period #7885
    Christoph
    Participant

    Hi Natasha,

    thank you, I would never have considered that.

    So, there is defenitely no way to cache (bookable) product pages?

    Best regards,

    Christoph

    in reply to: Cross price on product page is not correct #7811
    Christoph
    Participant

    Hi Natasha,

    okay, thank you anyways.

    Christoph

     

    in reply to: [Resolved] Fixed price per period? #7568
    Christoph
    Participant

    Hi Natasha,

    thanks a lot!

    I was misleaded, I thought the child_id should be the id of the variable product. Sorry about that.

    Now, as I tested the variations’ id, and it works fine.

     

    Best regards,

    Christoph

     

    in reply to: [Resolved] Fixed price per period? #7560
    Christoph
    Participant

    Hi Natasha,

    thank you, but unfortunately your snippet doesn’t work for me. I am sure to have set the IDs correctly. Are you sure, it also works with x variations as childs below the variable product?

    On the other side, I managed to solve it directly in class-wceb-ajax.php in line 249:

    if ($child_id !== 47011)	{
    								if ( $number_of_dates === 'two' ) {
    									$price *= $duration;
    								}
    							}

    However, your solution would have been a lot more smarter 😉  I can’t tell where the problem is, I think the code isn’t even considered.

    I certainly would have preferred a non-bookable product, but in this case, we definetly need the booking functionality.

    Best regards,

    Christoph

    in reply to: [Resolved] Fixed price per period? #7558
    Christoph
    Participant

    Hi Natasha,

    thank you for the quick answer. Your snippet works, unfortunately as you said only for all products. If I needed it only on specific simple or variable product pages, that would work, I could implement a check in my code. But I need it in a bundle product. Within the bundle, there is 1 variable (bookable) product where I only need the base price, the other product prices in the bundle are calculated per duration as it already works from default in your plugin.

    I already bought the duration discount plugin, but how is this configurable on a variation level?

    I tried many possibilities, but it didn’t work.

    Best regards,

    Christoph

    in reply to: [Resolved] BUG: Delete order positions fails #6014
    Christoph
    Participant

    Hi,

    sorry which post do you mean?

    Christoph

    in reply to: [Resolved] BUG: Delete order positions fails #6001
    Christoph
    Participant

    Hi,

    sorry for the late reply.

    Yes, I’m using die Google Calendar add-on. I mean by order position 1 line in the order with a bookable product (yes, it is coming from easy booking).

    E.g. I want to change the product: I add another line with the correct produkt, add booking dates, and then it is not possible to delete the old line.

    What do mean with “disable it”? I do not want to disable the product when I change an invoice.

    Best regards,

    Christoph

     

    EDIT: If I disable the Google Calendar plugin, it works, so that might be the problem. The old entry in Google Calendar is also not deleted, it must be removed manually (the new entry comes correctly into GC)

    • This reply was modified 1 year, 4 months ago by Christoph.
    • This reply was modified 1 year, 4 months ago by Christoph.
    Christoph
    Participant

    I managed to do this, I didn’t remember that I customized this directly in the easy booking plugin.

    Now, I created a hook which comes into the functions.php:

    /* Override position of date picker */
    add_action( 'wp_head', 'override_position_of_date_picker' );
    function override_position_of_date_picker(){
    	add_filter( 'woocommerce_before_add_to_cart_button', array( 'WCEB_Product_View', 'wceb_before_add_to_cart_button' ), 1 );
    }

    Maybe usable for others.

    • This reply was modified 1 year, 5 months ago by Christoph.
    in reply to: [Resolved] Translations pricing tiers and "close" button #5775
    Christoph
    Participant

    Hi Natasha,

    now it works.

    Thanks!

    Christoph

    in reply to: [Resolved] Translations pricing tiers and "close" button #5769
    Christoph
    Participant

    Hi Natasha,

    sorry to bother again. I managed to translate the “close”-Button.

    Unfortunately, I can’t manage to translate the pricing tiers – I followed the instructions, but for this specific string, it is not possible for me to get my translation working.

    I’ve put “easy-booking-duration-discounts-de_DE.po” in the folder wp-content/languages/plugins and compiled it with Loco translate (*.mo file is generated).

    Here you can see the result: https://www.campaz.de/shop/campaz-airtop-dachzelt-mieten/

    This is the PO-File, I can’t find an error and it is compiling just fine:

    msgid “”
    msgstr “”
    “Project-Id-Version: Woocommerce Easy Booking\n”
    “Report-Msgid-Bugs-To: \n”
    “POT-Creation-Date: 2019-02-04 20:38+0000\n”
    “PO-Revision-Date: 2019-03-25 16:04+0000\n”
    “Last-Translator: Christoph XXX<xxx@xxx.com>\n”
    “Language-Team: Deutsch\n”
    “Language: de-DE\n”
    “Plural-Forms: nplurals=2; plural=n != 1;\n”
    “MIME-Version: 1.0\n”
    “Content-Type: text/plain; charset=UTF-8\n”
    “Content-Transfer-Encoding: 8bit\n”
    “X-Generator: Loco https://localise.biz/\n”
    “X-Loco-Version: 2.2.0; wp-5.0.4”

    msgid “night”
    msgid_plural “nights”
    msgstr[0] “Nacht”
    msgstr[1] “Nächte”

     

    Best regards,

    Christoph

    • This reply was modified 1 year, 5 months ago by Christoph.
    • This reply was modified 1 year, 5 months ago by Christoph.
    in reply to: [SUGGESTION] Add-On Availability search #5653
    Christoph
    Participant

    Hi Natasha,

    okay then you are already working on that. Great 😉

    Best regards

Viewing 15 posts - 1 through 15 (of 17 total)

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