Skip to content

Commit c576b79

Browse files
authored
Merge pull request #293 from moderntribe/release/4.14.1
packaged version 4.14.1
2 parents 1c0fe81 + e59f035 commit c576b79

File tree

18 files changed

+66
-41
lines changed

18 files changed

+66
-41
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
4+
## [4.14.1]
5+
6+
### Fixed
7+
- Fixed the product template include logic for WordPress 5.8
8+
- Fixed bug introduced in WordPress 5.8 that prevents WordPress Customizer from reacting when changes were made to the Product Catalog "Sort By" options.
9+
- Updates add to cart functionality to wait for creation of cart, so multiple add to carts function properly. Fix for: https://github.com/bigcommerce/bigcommerce-for-wordpress/issues/230
10+
311
## [4.14.0]
412

513
### Fixed
@@ -1454,6 +1462,7 @@
14541462
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.
14551463

14561464

1465+
[4.14.1]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.14.0...4.14.1
14571466
[4.14.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.13.0...4.14.0
14581467
[4.13.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.12.0...4.13.0
14591468
[4.12.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/4.11.0...4.12.0

assets/js/dist/admin/scripts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/admin/scripts.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/scripts.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/scripts.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/src/admin/customizer/index.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,15 @@
66
import multiCheckboxes from './multiple-checkboxes';
77
import * as tools from '../../utils/tools';
88

9-
const el = {
10-
customizer: tools.getNodes('#customize-controls', false, document, true)[0],
11-
};
12-
139
const init = () => {
14-
if (!el.customizer) {
10+
/** Note: make sure to look for element after "DOM ready" */
11+
const customizer = tools.getNodes('#customize-controls', false, document, true)[0];
12+
13+
if (!customizer) {
1514
return;
1615
}
1716

18-
multiCheckboxes(el.customizer);
17+
multiCheckboxes(customizer);
1918

2019
console.info('BigCommerce: Initialized Theme Customizer Scripts.');
2120
};

assets/js/src/public/cart/add-to-cart.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ const createAjaxResponseMessage = (wrapper = '', message = '', error = false) =>
169169
*/
170170
const handleFetchingState = (button = '') => {
171171
if (!button) {
172+
const allCartButtons = tools.getNodes('.bc-btn--add_to_cart', true, document, true);
173+
allCartButtons.forEach(handleFetchingState);
172174
return;
173175
}
174176

@@ -228,12 +230,12 @@ const handleAjaxAddToCartRequest = (e) => {
228230
const url = cartID ? `${CART_API_BASE}/${cartID}` : CART_API_BASE;
229231
const query = getAjaxQueryString(cartButton);
230232

231-
handleFetchingState(cartButton);
233+
handleFetchingState(cartID ? cartButton : null);
232234
wpAPIAddToCartAjax(url, query)
233235
.set('X-WP-Nonce', AJAX_CART_NONCE)
234236
.end((err, res) => {
235237
state.isFetching = false;
236-
handleFetchingState(cartButton);
238+
handleFetchingState(cartID ? cartButton : null);
237239

238240
if (err) {
239241
console.error(err);

bigcommerce.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Plugin Name: BigCommerce for WordPress
44
Description: Scale your ecommerce business with WordPress on the front-end and BigCommerce on the back end. Free up server resources from things like catalog management, processing payments, and managing fulfillment logistics.
55
Author: BigCommerce
6-
Version: 4.14.0
6+
Version: 4.14.1
77
Author URI: https://www.bigcommerce.com/wordpress
88
Requires PHP: 7.2.0
99
Text Domain: bigcommerce

build-timestamp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '6.02.07.02.2021');
2+
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '7.13.07.23.2021');

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Contributors: bigcommerce, moderntribe, jbrinley, becomevocal, vincentlistrani,
33
Tags: ecommerce, online store, sell online, storefront, retail, online shop, bigcommerce, big commerce, e-commerce, physical products, buy buttons, commerce, shopping cart, checkout, cart, shop, headless commerce, shipping, payments, fulfillment
44
Requires at least: 5.2
55
Tested up to: 5.5
6-
Stable tag: 4.14.0
6+
Stable tag: 4.14.1
77
Requires PHP: 7.2.0
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html

0 commit comments

Comments
 (0)