Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render uniform WP time picker over default time input element #489

Draft
wants to merge 9 commits into
base: trunk
Choose a base branch
from
3 changes: 2 additions & 1 deletion .wp-env.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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/).
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function generate_accommodation_time_html( $key, $value ) {
<th scope="row" class="titledesc">
<label for="<?php echo esc_attr( $field_key ); ?>"><?php echo esc_html( $value['title'] ); ?></label>
</th>
<td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ) ?>">
<td class="wc-bookings-render-wp-time-picker forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?>">
<input
name="<?php echo esc_attr( $field_key ); ?>"
id="<?php echo esc_attr( $field_key ); ?>"
Expand Down
Loading