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() {

vendor/autoload.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
require_once __DIR__ . '/composer/autoload_real.php';
66

7-
return ComposerAutoloaderInitc7f57417901b86d5ae5b1dda4976bf60::getLoader();
7+
return ComposerAutoloaderInit39b28582cfaf12bb36d8163a54330ec4::getLoader();

vendor/composer/autoload_real.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// autoload_real.php @generated by Composer
44

5-
class ComposerAutoloaderInitc7f57417901b86d5ae5b1dda4976bf60
5+
class ComposerAutoloaderInit39b28582cfaf12bb36d8163a54330ec4
66
{
77
private static $loader;
88

@@ -19,15 +19,15 @@ public static function getLoader()
1919
return self::$loader;
2020
}
2121

22-
spl_autoload_register(array('ComposerAutoloaderInitc7f57417901b86d5ae5b1dda4976bf60', 'loadClassLoader'), true, true);
22+
spl_autoload_register(array('ComposerAutoloaderInit39b28582cfaf12bb36d8163a54330ec4', 'loadClassLoader'), true, true);
2323
self::$loader = $loader = new \Composer\Autoload\ClassLoader();
24-
spl_autoload_unregister(array('ComposerAutoloaderInitc7f57417901b86d5ae5b1dda4976bf60', 'loadClassLoader'));
24+
spl_autoload_unregister(array('ComposerAutoloaderInit39b28582cfaf12bb36d8163a54330ec4', 'loadClassLoader'));
2525

2626
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
2727
if ($useStaticLoader) {
2828
require_once __DIR__ . '/autoload_static.php';
2929

30-
call_user_func(\Composer\Autoload\ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60::getInitializer($loader));
30+
call_user_func(\Composer\Autoload\ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4::getInitializer($loader));
3131
} else {
3232
$classMap = require __DIR__ . '/autoload_classmap.php';
3333
if ($classMap) {
@@ -39,19 +39,19 @@ public static function getLoader()
3939
$loader->register(true);
4040

4141
if ($useStaticLoader) {
42-
$includeFiles = Composer\Autoload\ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60::$files;
42+
$includeFiles = Composer\Autoload\ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4::$files;
4343
} else {
4444
$includeFiles = require __DIR__ . '/autoload_files.php';
4545
}
4646
foreach ($includeFiles as $fileIdentifier => $file) {
47-
composerRequirec7f57417901b86d5ae5b1dda4976bf60($fileIdentifier, $file);
47+
composerRequire39b28582cfaf12bb36d8163a54330ec4($fileIdentifier, $file);
4848
}
4949

5050
return $loader;
5151
}
5252
}
5353

54-
function composerRequirec7f57417901b86d5ae5b1dda4976bf60($fileIdentifier, $file)
54+
function composerRequire39b28582cfaf12bb36d8163a54330ec4($fileIdentifier, $file)
5555
{
5656
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
5757
require $file;

vendor/composer/autoload_static.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace Composer\Autoload;
66

7-
class ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60
7+
class ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4
88
{
99
public static $files = array (
1010
'5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',
@@ -1060,10 +1060,10 @@ class ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60
10601060
public static function getInitializer(ClassLoader $loader)
10611061
{
10621062
return \Closure::bind(function () use ($loader) {
1063-
$loader->prefixLengthsPsr4 = ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60::$prefixLengthsPsr4;
1064-
$loader->prefixDirsPsr4 = ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60::$prefixDirsPsr4;
1065-
$loader->prefixesPsr0 = ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60::$prefixesPsr0;
1066-
$loader->classMap = ComposerStaticInitc7f57417901b86d5ae5b1dda4976bf60::$classMap;
1063+
$loader->prefixLengthsPsr4 = ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4::$prefixLengthsPsr4;
1064+
$loader->prefixDirsPsr4 = ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4::$prefixDirsPsr4;
1065+
$loader->prefixesPsr0 = ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4::$prefixesPsr0;
1066+
$loader->classMap = ComposerStaticInit39b28582cfaf12bb36d8163a54330ec4::$classMap;
10671067

10681068
}, null, ClassLoader::class);
10691069
}

0 commit comments

Comments
 (0)