Skip to content

Commit 3a9f067

Browse files
authored
Merge pull request #214 from moderntribe/release/3.20.0
packaged version 3.20.0
2 parents d9915f0 + 2a40f6d commit 3a9f067

File tree

13 files changed

+48
-27
lines changed

13 files changed

+48
-27
lines changed

CHANGELOG.md

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

3+
## [3.20.0]
4+
5+
### Changed
6+
- Link to BigCommerce HTTPS settings from Embedded Checkout settings tab.
7+
8+
9+
### Fixed
10+
11+
- Fixed an issue with product grids where Ajax to cart is enabled but no simple products are on the page. This would
12+
cause the Add to Cart button on Quick View to redirect to the cart page instead of an ajax submission.
13+
14+
- Fixed Google SiteKit plugin breaking Settings page.
15+
16+
317
## [3.19.0]
418

519
### Added
@@ -1179,6 +1193,7 @@
11791193
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.
11801194

11811195

1196+
[3.20.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.19.0...3.20.0
11821197
[3.19.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.18.1...3.19.0
11831198
[3.18.1]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.18.0...3.18.1
11841199
[3.18.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.17.0...3.18.0

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/public/cart/add-to-cart.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ const state = {
2525
cartMessage: '',
2626
};
2727

28-
const el = {
29-
buttons: tools.getNodes('.bc-btn--add_to_cart', true, document, true),
30-
};
31-
3228
/**
3329
* @function buildAjaxQueryString
3430
* @description Build a query string of all options and modifiers for a selected variant.
@@ -257,7 +253,7 @@ const bindEvents = () => {
257253
};
258254

259255
const init = () => {
260-
if (!state.ajax_enabled || el.buttons.length === 0) {
256+
if (!state.ajax_enabled) {
261257
return;
262258
}
263259

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: 3.19.0
6+
Version: 3.20.0
77
Author URI: https://www.bigcommerce.com/wordpress
88
Requires PHP: 5.6.24
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', '4.12.05.15.2020');
2+
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '4.30.06.05.2020');

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: 4.6
55
Tested up to: 5.3
6-
Stable tag: 3.19.0
6+
Stable tag: 3.20.0
77
Requires PHP: 5.6.24
88
License: GPLv2 or later
99
License URI: https://www.gnu.org/licenses/gpl-2.0.html

src/BigCommerce/Container/Assets.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ public function admin( Container $container ) {
6363
$container[ self::ADMIN_SCRIPTS ]->enqueue_scripts();
6464
$container[ self::ADMIN_STYLES ]->enqueue_styles();
6565
} ), 9, 0 );
66+
67+
add_action( 'admin_enqueue_scripts', $this->create_callback( 'admin_remove_google_sitekit_script_on_bc_admin_pages', function ( $hook ) {
68+
if ( strpos( get_current_screen()->id, 'bigcommerce') !== false ) {
69+
wp_dequeue_script( 'googlesitekit-base' );
70+
}
71+
} ), 999 );
6672
}
6773

6874
public function frontend( Container $container ) {

src/BigCommerce/Plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
namespace BigCommerce;
55

66
class Plugin {
7-
const VERSION = '3.19.0';
7+
const VERSION = '3.20.0';
88

99
protected static $_instance;
1010

src/BigCommerce/Settings/Sections/Cart.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,15 @@ public function render_embedded_checkout_field() {
138138
$permitted = (bool) apply_filters( 'bigcommerce/checkout/can_embed', true );
139139
$checkbox = sprintf( '<input id="field-%s" type="checkbox" value="1" class="regular-text code" name="%s" %s %s />', esc_attr( self::OPTION_EMBEDDED_CHECKOUT ), esc_attr( self::OPTION_EMBEDDED_CHECKOUT ), checked( true, $value, false ), disabled( $permitted, false, false ) );
140140
if ( $permitted ) {
141-
$description = __( 'If enabled, the checkout form will be embedded on your checkout page. If disabled, customers will be redirected to bigcommerce.com for checkout. Your WordPress domain must have a valid SSL certificate and sitewide HTTPS must be enabled in BigCommerce store to support embedded checkout.', 'bigcommerce' );
141+
$description = __( 'If enabled, the checkout form will be embedded on your checkout page. If disabled, customers will be redirected to bigcommerce.com for checkout. Your WordPress domain must have a valid SSL certificate and %ssitewide HTTPS must be enabled%s in BigCommerce store to support embedded checkout.', 'bigcommerce' );
142142
} else {
143-
$description = __( 'Embedded checkout is disabled. An SSL certificate is required for your WordPress domain as well as enabling sitewide HTTPS in BigCommerce store to support embedded checkout.', 'bigcommerce' );
143+
$description = __( 'Embedded checkout is disabled. An SSL certificate is required for your WordPress domain as well as %senabling sitewide HTTPS%s in BigCommerce store to support embedded checkout.', 'bigcommerce' );
144144
}
145-
printf( '<p class="description">%s %s</p>', $checkbox, $description );
145+
printf( '<p class="description">%s %s</p>', $checkbox, sprintf(
146+
$description,
147+
sprintf( '<a target="__blank" href="%s">', esc_url( 'https://login.bigcommerce.com/deep-links/manage/settings/store' ) ),
148+
'</a>'
149+
) );
146150
}
147151

148152
public function render_cart_page_field() {

0 commit comments

Comments
 (0)