Skip to content

Commit 3687c8e

Browse files
Merge pull request #154 from bigboxwc/release/3.2.0
release/3.2.0
2 parents bc781c4 + 57f8adb commit 3687c8e

File tree

4 files changed

+19
-9
lines changed

4 files changed

+19
-9
lines changed

CHANGELOG.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## [3.1.1] - 2018-02-18
1+
## [3.2.0] - 2019-04-27
2+
3+
### New
4+
5+
- WooCommerce 3.6.x compatibility.
6+
7+
## [3.1.1] - 2019-02-18
28

39
### Fix
410

@@ -9,7 +15,7 @@
915
- Mobile WooCommerce coupon form styling.
1016
- Update Node dependencies.
1117

12-
## [3.1.0] - 2018-02-15
18+
## [3.1.0] - 2019-02-15
1319

1420
### New
1521

@@ -29,7 +35,7 @@
2935
- Hide "First Page" and "Last Page" links in FacetWP pagination.
3036
- Ensure :focus outline is visible on WooCommerce image gallery items.
3137

32-
## [3.0.0] - 2018-02-04
38+
## [3.0.0] - 2019-02-04
3339

3440
### Breaking
3541

@@ -57,13 +63,13 @@
5763
- Heading and block spacing consistency.
5864
- Only show Previous/Next pagination buttons on mobile devices.
5965

60-
## [2.3.1] - 2018-01-08
66+
## [2.3.1] - 2019-01-08
6167

6268
### Fix
6369

6470
- Ensure header allows dropdown facet types.
6571

66-
## [2.3.0] - 2018-01-08
72+
## [2.3.0] - 2019-01-08
6773

6874
### New
6975

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"title": "BigBox",
44
"author": "Spencer Finnell",
55
"description": "Easily manage and scale WooCommerce product catalogs.",
6-
"version": "3.1.1",
6+
"version": "3.2.0",
77
"license": "GPL-2.0-or-later",
88
"main": "webpack.config.js",
99
"engines": {

resources/views/integrations/woocommerce/single-product/add-to-cart/quantity.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ class="input-text qty text"
3131
size="4"
3232
pattern="<?php echo esc_attr( $pattern ); ?>"
3333
inputmode="<?php echo esc_attr( $inputmode ); ?>"
34+
<?php if ( ! empty( $labelledby ) ) : ?>
3435
aria-labelledby="<?php echo esc_attr( $labelledby ); ?>"
36+
<?php endif; ?>
3537
/>
3638
</div>

resources/views/integrations/woocommerce/single-product/add-to-cart/variable.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@
1212
*
1313
* @see https://docs.woocommerce.com/document/template-structure/
1414
* @package WooCommerce/Templates
15-
* @version 3.4.1
15+
* @version 3.5.5
1616
*/
1717

1818
defined( 'ABSPATH' ) || exit;
1919

2020
$product = wc_get_product( get_the_ID() );
2121

22-
$attribute_keys = array_keys( $attributes );
22+
$attribute_keys = array_keys( $attributes );
23+
$variations_json = wp_json_encode( $available_variations );
24+
$variations_attr = function_exists( 'wc_esc_json' ) ? wc_esc_json( $variations_json ) : _wp_specialchars( $variations_json, ENT_QUOTES, 'UTF-8', true );
2325

2426
do_action( 'woocommerce_before_add_to_cart_form' ); ?>
2527

26-
<form class="variations_form add-to-cart cart" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data' data-product_id="<?php echo esc_attr( absint( $product->get_id() ) ); ?>" data-product_variations="<?php echo htmlspecialchars( wp_json_encode( $available_variations ) ); // WPCS: XSS okay. ?>">
28+
<form class="variations_form add-to-cart cart" action="<?php echo esc_url( apply_filters( 'woocommerce_add_to_cart_form_action', $product->get_permalink() ) ); ?>" method="post" enctype='multipart/form-data' data-product_id="<?php echo esc_attr( absint( $product->get_id() ) ); ?>" data-product_variations="<?php echo $variations_attr; // WPCS: XSS ok. ?>">
2729
<?php do_action( 'woocommerce_before_variations_form' ); ?>
2830

2931
<?php if ( empty( $available_variations ) && false !== $available_variations ) : ?>

0 commit comments

Comments
 (0)