• Resolved TallblokeUK

    (@tallblokeuk)


    Afternoon!

    I’m experiencing the issue others have mentioned with Woo Bookings and LS Cache with the spinner appearing on the calendar and not stopping.

    This isn’t the first time it has happened and adding find-booked-day-blocks to ESI Nonces was enough to fix it. However it has started happening again.

    I’ve searched through the other threads and now added this to ESI Nonces:

    find-booked-day-blocks
    create_booking_notification
    get_end_time_html
    show_available_month_blocks

    AND also to JS Excludes and JS Deferred / Delayed Excludes on the Tuning page.

    However, I’m still seeing the same thing after purging the cache and CDN.

    Bypassing the CDN doesn’t solve it, but turning off LS Cache does.

    Worth noting that the calendar does load when I am logged in as admin or a site user, but not for users who add a date to their cart and THEN log in.

    I’ve sent a report, reference : DQFCPVOL

    • This topic was modified 1 year, 7 months ago by TallblokeUK.
    • This topic was modified 1 year, 7 months ago by TallblokeUK.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support qtwrk

    (@qtwrk)

    hmmm , are you sure it’s correct nonce name ?

    on booking I saw this in html source

    		<div class="elementor-add-to-cart elementor-product-booking">
    			
    <noscript>Your browser must support JavaScript in order to make a booking.</noscript>
    
    <form class="cart" method="post" enctype='multipart/form-data' data-nonce="3339c0a728">

    please share me the PHP script related to this part.

    Thread Starter TallblokeUK

    (@tallblokeuk)

    Just so you know LS Cache is off at the moment as people were unable to book.

    This is from wp-content\plugins\woocommerce-bookings\includes\admin\views\html-create-booking-page-2.php

    <?php
    /**
     * Admin View: Create Booking (Page/Step 2).
     *
     * @since 1.15.75
     *
     * @package WooCommerce Bookings
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    }
    ?>
    <div class="wrap woocommerce">
    	<h2><?php esc_html_e( 'Add Booking', 'woocommerce-bookings' ); ?></h2>
    
    	<?php $this->show_errors(); ?>
    
    	<form method="POST" data-nonce="<?php echo esc_attr( wp_create_nonce( 'find-booked-day-blocks' ) ); ?>" id="wc-bookings-booking-form">
    		<table class="form-table">
    			<tbody>
    				<tr>
    					<th scope="row">
    						<label><?php esc_html_e( 'Booking Data', 'woocommerce-bookings' ); ?></label>
    					</th>
    					<td>
    						<div class="wc-bookings-booking-form">
    							<?php $booking_form->output(); ?>
    							<div class="wc-bookings-booking-cost" style="display:none"></div>
    						</div>
    					</td>
    				</tr>
    				<tr valign="top">
    					<th scope="row">&nbsp;</th>
    					<td>
    						<input type="submit" name="create_booking_2" class="button-primary add_custom_booking" value="<?php esc_attr_e( 'Add Booking', 'woocommerce-bookings' ); ?>" />
    						<input type="hidden" name="customer_id" value="<?php echo esc_attr( $customer_id ); ?>" />
    						<input type="hidden" name="bookable_product_id" value="<?php echo esc_attr( $bookable_product_id ); ?>" />
    						<input type="hidden" name="add-to-cart" value="<?php echo esc_attr( $bookable_product_id ); ?>" class="wc-booking-product-id"/>
    						<input type="hidden" name="booking_order" value="<?php echo esc_attr( $booking_order ); ?>" />
    						<?php wp_nonce_field( 'create_booking_notification' ); ?>
    					</td>
    				</tr>
    			</tbody>
    		</table>
    	</form>
    </div>
    

    Is that what you had in mind?

    Thread Starter TallblokeUK

    (@tallblokeuk)

    Just to add, that was the nonce name that comes up in other support threads relating to this issue.

    Plugin Support qtwrk

    (@qtwrk)

    find-booked-day-blocks and `

    create_booking_notification
    Thread Starter TallblokeUK

    (@tallblokeuk)

    So, I had those 2, and 2 others already added, but I re-activated the plugin and removed the other 2. I purged the cache and CDN and seems to be working.

    Most odd.

    Plugin Support qtwrk

    (@qtwrk)

    you can monitor it for a day or two , see how it goes.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Woocommerce Bookings’ is closed to new replies.