Skip to content

Commit 6436148

Browse files
Merge pull request #124 from bigboxwc/release/3.1.1
release/3.1.1
2 parents 37d6d5f + 92ad3ae commit 6436148

File tree

9 files changed

+37
-29
lines changed

9 files changed

+37
-29
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## [3.1.1] - 2018-02-18
2+
3+
### Fix
4+
5+
- Avoid PHP error in cart-shipping.php
6+
- Ensure `.posted_in` uses the correct gray color.
7+
- Simplify WooCommerce gallery image widths.
8+
- Don't let FacetWP radio/checkbox labels trigger refresh.
9+
- Mobile WooCommerce coupon form styling.
10+
- Update Node dependencies.
11+
112
## [3.1.0] - 2018-02-15
213

314
### New

app/customize/output/color-gray-200.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
'.widget',
3030
'.woocommerce-MyAccount-navigation:after',
3131
'.woocommerce-single-product-data__section',
32+
'.posted_in',
3233
'.footer-nav',
3334
'.wp-block-separator',
3435
'.comment',

app/integrations/woocommerce/template-functions.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,6 @@ function bigbox_woocommerce_single_product_carousel_options( $args ) {
560560
]
561561
);
562562

563-
$args['thumbnailPosition'] = 'side';
564-
565563
return $args;
566564
}
567565

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.0",
6+
"version": "3.1.1",
77
"license": "GPL-2.0-or-later",
88
"main": "webpack.config.js",
99
"engines": {

resources/assets/js/facetwp/choices.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ $document.on( 'facetwp-loaded', () => {
4444
wrapper.innerHTML = '';
4545
wrapper.prepend( label );
4646

47+
// Don't trigger change event to ensure FWP is what executes a reload.
48+
label.addEventListener( 'click', ( e ) => {
49+
e.preventDefault();
50+
} );
51+
4752
// Better visual feedback (automatically check when clicked.)
4853
wrapper.addEventListener( 'click', ( e ) => {
4954
// Don't toggle if already disabled.

resources/assets/js/woocommerce/products.js

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,24 +55,17 @@ domReady( () => {
5555

5656
const { itemWidth, thumbnailPosition } = params.flexslider;
5757

58-
const img = document.querySelector( '.woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image .wp-post-image' );
59-
const flex = document.querySelector( '.woocommerce-product-gallery--with-images .flex-viewport' );
58+
const img = document.querySelector( '.woocommerce-product-gallery__wrapper .wp-post-image' );
59+
let imgWrapper = document.querySelector( '.woocommerce-product-gallery--with-images .flex-viewport' );
6060

61-
if ( ! img || ! flex ) {
62-
return;
61+
// Check for placeholder image wrapper.
62+
if ( ! imgWrapper ) {
63+
imgWrapper = document.querySelector( '.woocommerce-product-gallery--with-images .woocommerce-product-gallery__wrapper' )
6364
}
6465

65-
img.addEventListener( 'load', () => {
66-
// Max width of wrapper.
67-
flex.style.maxWidth = `${ itemWidth }px`;
68-
69-
// Contain whole gallery when thumbnails are on the bottom.
70-
if ( 'bottom' === thumbnailPosition ) {
71-
const wrapper = document.querySelector( '.woocommerce-product-gallery--with-images' );
72-
const nav = document.querySelector( '.woocommerce-product-gallery--with-images .flex-control-nav' );
66+
if ( ! img || ! imgWrapper ) {
67+
return;
68+
}
7369

74-
nav.style.maxWidth = `${ itemWidth }px`;
75-
wrapper.style.maxWidth = `${ itemWidth }px`;
76-
}
77-
} );
70+
imgWrapper.style.maxWidth = `${ itemWidth }px`;
7871
} );

resources/assets/scss/modules/woocommerce-checkout.scss

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,22 +185,22 @@ form.woocommerce-checkout {
185185

186186
.form-row-first,
187187
.form-row-last {
188-
flex: 1 0;
188+
flex: 1 1 auto;
189189
margin-bottom: 0;
190190
}
191191

192-
.form-row-first {
193-
flex-basis: 60%;
194-
}
195-
196192
.form-row-last {
197-
margin-left: $spacer;
198-
flex-basis: auto;
193+
margin: $spacer 0 0 0;
194+
flex-basis: 100%;
195+
196+
@include media-breakpoint-up(sm) {
197+
margin: 0 0 0 $spacer;
198+
flex-basis: auto;
199+
}
199200
}
200201

201202
[name="apply_coupon"] {
202203

203-
@include button--color("success");
204204
@include button--size-sm();
205205
@include button--size-block();
206206
}

resources/views/integrations/woocommerce/cart/cart-shipping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
<?php
9898
// No address available.
9999
elseif ( ! $formatted_destination && $available_methods ) :
100-
$note = echo wp_kses_post(
100+
$note = wp_kses_post(
101101
apply_filters(
102102
'woocommerce_shipping_may_be_available_html',
103103
__( 'Enter your address to view shipping options.', 'bigbox' )

resources/views/integrations/woocommerce/single-product/product-image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
);
4444
?>
4545

46-
<div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>" data-columns="<?php echo esc_attr( $columns ); ?>" style="opacity: 0; transition: opacity .25s ease-in-out;">
46+
<div class="<?php echo esc_attr( implode( ' ', array_map( 'sanitize_html_class', $wrapper_classes ) ) ); ?>" data-columns="<?php echo esc_attr( $columns ); ?>" data-width="<?php echo esc_attr( $width ); ?>px" style="opacity: 0; transition: opacity .25s ease-in-out;">
4747
<figure class="woocommerce-product-gallery__wrapper">
4848
<?php
4949
if ( has_post_thumbnail() ) {

0 commit comments

Comments
 (0)