0.00  View cart

Forum Replies Created

Viewing 15 posts - 1,261 through 1,275 (of 1,294 total)
  • Author
    Posts
  • in reply to: [Resolved] Remove /day from all products. #408
    Ashanna
    Plugin's author

    Hello,

    You can have bookable products and “normal” products on your site, you just need to uncheck the “bookable” checkbox on the products you don’t want to rent.

    Do you mean that even when the checkbox is not checked, your products are bookable ?

    in reply to: Availability and variations #402
    Ashanna
    Plugin's author

    Hello,

    I am working on it, I need to add a few things to make both plugins compatible πŸ™‚

    in reply to: [Resolved] No good floating of the calendar #395
    Ashanna
    Plugin's author

    Hello,

    So this is a CSS issue coming from your theme.

    The form.cart element has an overflow:hidden property.
    You need to replace line 1089 of your theme’s CSS with overflow: visible if you can πŸ™‚

    in reply to: Availability and variations #394
    Ashanna
    Plugin's author

    Hello,

    My version of Product Add-ons is out-of-date and I can’t update it, do you think you could send me yours so I can try to make both plugins work together for what you need ? I think it would be the best solution for you.

    in reply to: WooCommerce Currency Switcher Compatibility #387
    Ashanna
    Plugin's author

    Hello,

    Could you send me the plugin so I can fix this ?
    You can send it at contact@herownsweetway.com.

    It’s hard to tell what’s the issue without having the plugin πŸ™‚

    Thank you.

    in reply to: [Resolved] Get list of booked items by date #386
    Ashanna
    Plugin's author

    Hello,

    Oh, I see what you need !

    I misunderstood in the first place ! I thought you wanted reports for each date πŸ™‚

    So, I’ll try to do this during the day and I’ll send you the file by e-mail because I’m not planning on releasing a new update for the moment, ok ? πŸ™‚

    It shouldn’t take long !

    in reply to: Availability and variations #383
    Ashanna
    Plugin's author

    Hello,

    Well, this was only possible with older versions of Easy Booking πŸ™‚

    Instead of using variations, you could try using something like the “WooCommerce product add-ons” extension (http://docs.woothemes.com/document/product-add-ons/).

    This way you can make a simple product, and add a dropdown selector where people would choose the number of person. What do you think ?

    The only thing is that I don’t know if it is compatible with my plugin… I’m trying to retreive my license key to test it but I can’t find it ! Maybe there are other free plugins to make this ?

    in reply to: [Resolved] Get list of booked items by date #380
    Ashanna
    Plugin's author

    Hello,

    You’ll get an answer, no need to repeat your question πŸ™‚ (I was on holidays for a few days…)

    I’m not sure to understand your request, could you give me an example please ?

    in reply to: [Resolved] Need variations while using bookable products #379
    Ashanna
    Plugin's author

    Hello,

    Yes, I changed this in the last update and variations are managed individually now πŸ™‚
    I’m glad you found it !

    in reply to: [Resolved] Get list of booked items by date #369
    Ashanna
    Plugin's author

    Ok, so I think I see where the issue is.

    Could you go to the file easy-booking-availability-check-update.php and remove lines 111, 112, 113 and then recheck updates ?

    I send you the file anyway πŸ™‚

    in reply to: [Resolved] Get list of booked items by date #367
    Ashanna
    Plugin's author

    Hello,

    This is weird, I did receive the update on my test site.

    Could you try manually check for update in your WordPress admin (Dashboard > Updates) ? Don’t forget to save your license key.

    If it still doesn’t work, I’ll send you the file by e-mail while I try to fix this !

    in reply to: [Resolved] Get list of booked items by date #363
    Ashanna
    Plugin's author

    Hello,

    The update is available, I hope it works as you wanted πŸ™‚
    Don’t forget to update WooCommerce Easy Booking before.

    Thank you for the Spanish translation !

    in reply to: [Resolved] Get list of booked items by date #350
    Ashanna
    Plugin's author

    Hello,

    So, I added this feature to the plugin in the next update (coming very soon). You will be able to see a report of all booked dates, quantity, and stock left, for each booked product in the admin.

    I don’t know if the presentation is optimal, but I guees it will be better than nothing πŸ™‚

    It would be great to have the Spanish translation, you can send the files at contact@herownsweetway.com.

    Thank you !

    in reply to: [Resolved] Get list of booked items by date #346
    Ashanna
    Plugin's author

    Hello,

    For the moment, you can only see this in each admin product’s page.

    I planned on making a report of all the booked dates in the admin for a future update. I’m still thinking about how I could display this…

    It is stored in the product postmeta. You can get it by doing : get_post_meta( $post_id, '_booking_days', true);

    However, this will only work for a single product.

    To get an array of all booked products, dates and quantity booked, you can use this function :

    EBAC()->easy_booking_availability_get_booked_items_from_orders();

    Note that it only stores future dates, and past dates are deleted on a daily schedule. This is to avoid having too much data stored.

    I hope I helped !

    in reply to: show only Bookable product #341
    Ashanna
    Plugin's author

    Hello,

    This is more about theme customization, but here’s what I would do :

    Create a new template page in your theme (create a child-theme, if you don’t already have one). I called it bookable.php in the example.

    Create a new page in your WordPress administration, link it with the new template page.

    In your template page, you’ll have to do a custom query to filter bookable products and include your product-archive template.

    <?php
    /*
    	//Template Name: Bookable
    */
    ?>
    
    <?php
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    } ?>
    
    <?php get_header( 'shop' ); ?>
    
    	<?php
    		/**
    		 * woocommerce_before_main_content hook
    		 *
    		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
    		 * @hooked woocommerce_breadcrumb - 20
    		 */
    		do_action( 'woocommerce_before_main_content' );
    	?>
    
    	<?php if ( apply_filters( 'woocommerce_show_page_title', true ) ) : ?>
    
    		<h1 class="page-title"><?php woocommerce_page_title(); ?></h1>
    
    	<?php endif; ?>
    
    	<?php do_action( 'woocommerce_archive_description' ); ?>
    
    	<?php $args = array(
            'post_type' => 'product',
            'meta_key' => '_booking_option',
            'meta_value' => 'yes'
        );
    
        $bookable_products = new WP_Query( $args ); ?>
    
    	<?php if ( $bookable_products->have_posts() ) : ?>
    
    		<?php
    			/**
    			 * woocommerce_before_shop_loop hook
    			 *
    			 * @hooked woocommerce_result_count - 20
    			 * @hooked woocommerce_catalog_ordering - 30
    			 */
    			do_action( 'woocommerce_before_shop_loop' );
    		?>
    
    		<?php woocommerce_product_loop_start(); ?>
    
    			<?php woocommerce_product_subcategories(); ?>
    
    			<?php while ( $bookable_products->have_posts() ) : $bookable_products->the_post(); ?>
    
    				<?php wc_get_template_part( 'content', 'product' ); ?>
    
    			<?php endwhile; // end of the loop. ?>
    
    		<?php woocommerce_product_loop_end(); ?>
    
    		<?php
    			/**
    			 * woocommerce_after_shop_loop hook
    			 *
    			 * @hooked woocommerce_pagination - 10
    			 */
    			do_action( 'woocommerce_after_shop_loop' );
    		?>
    
    	<?php elseif ( ! woocommerce_product_subcategories( array( 'before' => woocommerce_product_loop_start( false ), 'after' => woocommerce_product_loop_end( false ) ) ) ) : ?>
    
    		<?php wc_get_template( 'loop/no-products-found.php' ); ?>
    
    	<?php endif; ?>
    
    	<?php
    		/**
    		 * woocommerce_after_main_content hook
    		 *
    		 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
    		 */
    		do_action( 'woocommerce_after_main_content' );
    	?>
    
    	<?php
    		/**
    		 * woocommerce_sidebar hook
    		 *
    		 * @hooked woocommerce_get_sidebar - 10
    		 */
    		do_action( 'woocommerce_sidebar' );
    	?>
    
    <?php get_footer( 'shop' ); ?>

    Note that you will have to add the following code in your functions.php, to get the right woocommerce CSS :

    add_filter( 'body_class', 'add_woocommerce_body_class' );
    
    function add_woocommerce_body_class( $classes ) {
    	global $post;
    	
    	$classes = (array) $classes;
    
    	if ( is_page_template('templates/bookable.php') ) {
    		$classes[] = 'woocommerce';
    	}
    
    	return array_unique( $classes );
    }

    There is probably a better solution, but I don’t have time to look for it right now. Categories would be much easier actually.

    • This reply was modified 4 years, 9 months ago by Ashanna.
Viewing 15 posts - 1,261 through 1,275 (of 1,294 total)

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