diff --git a/.wp-env.json b/.wp-env.json index a735adc..60ebee1 100644 --- a/.wp-env.json +++ b/.wp-env.json @@ -1,7 +1,8 @@ { "plugins": [ "https://downloads.wordpress.org/plugin/woocommerce.zip", - "https://downloads.wordpress.org/plugin/email-log.zip" + "https://downloads.wordpress.org/plugin/email-log.zip", + "." ], "themes": [ "https://downloads.wordpress.org/theme/storefront.zip" diff --git a/README.md b/README.md index eade09d..faa2d6f 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,18 @@ An accommodations add-on for the WooCommerce Bookings extension. - Minimum node version: 20.x - Minimum NPM version: 10.x -## WooCommerce Payments Compatibility +## Setup +- `nvm use` +- `npm install` +- `composer install` -Ensure a seamless experience with WooCommerce Payments extension Version 6.3.1, offering enhanced payment options for your accommodation bookings. +### Dev +- `npm run env:start` - Start wp-env local environment +- `npm run start:webpack` - FE build tools -## WooCommerce Blocks Compatibility +After you build and launch the project locally you'll then have to manually install the WooCommerce Bookings plugin. You can download an install ready zip file from the [WooCommerce Bookings GitHub](https://github.com/woocommerce/woocommerce-bookings/releases). -This extension is compatible with [WooCommerce Blocks](https://woo.com/products/woocommerce-gutenberg-products-block/). +**The WooCommerce Accommodations Bookings extension can not be activated without the WooCommerce Bookings extension.** ## NPM Scripts @@ -23,3 +28,11 @@ WooCommerce Accommodation Bookings utilizes npm scripts for task management util `nvm install` - Installs the required node version. `npm ci` - Installs the required node modules. `npm run build` - Runs the tasks necessary for a release. These include building JavaScript, SASS, CSS minification, and language files. + +## WooCommerce Payments Compatibility + +Ensure a seamless experience with WooCommerce Payments extension Version 6.3.1, offering enhanced payment options for your accommodation bookings. + +## WooCommerce Blocks Compatibility + +This extension is compatible with [WooCommerce Blocks](https://woo.com/products/woocommerce-gutenberg-products-block/). diff --git a/includes/admin/class-wc-accommodation-booking-admin-product-settings.php b/includes/admin/class-wc-accommodation-booking-admin-product-settings.php index 6669d91..230a085 100644 --- a/includes/admin/class-wc-accommodation-booking-admin-product-settings.php +++ b/includes/admin/class-wc-accommodation-booking-admin-product-settings.php @@ -218,7 +218,7 @@ public function generate_accommodation_time_html( $key, $value ) { - +