Skip to content

Commit 5cd95e5

Browse files
authored
Merge pull request #204 from moderntribe/release/3.15.0
packaged version 3.15.0
2 parents 512ee01 + ab3c046 commit 5cd95e5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+486
-174
lines changed

CHANGELOG.md

+29-1
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,40 @@
11
# Changelog
22

3+
## [3.15.0]
4+
5+
### Added
6+
7+
- Added an option to the customizer to toggle the "Continue Shopping" link for an empty
8+
cart between the home page and the catalog page.
9+
- Added a filter, `bigcommerce/cart/continue_shopping_url`, to modify the destination
10+
of the "Continue Shopping" link for an empty cart.
11+
- Added additional info about routes for all connected channels to the plugin diagnostic data.
12+
- Added theme support for the WordPress Twenty-Twenty theme and BC4WP.
13+
14+
### Changed
15+
16+
- Added a new class to the product archive template title: `bc-product-archive__title`.
17+
18+
### Fixed
19+
20+
- Addressed an issue in the WP Admin with field heights on fields making them
21+
not visible.
22+
- Fixed channel site URL to update based on the "Site Address" setting, not the "WordPress Address" setting.
23+
- Fixed options sorting order on select fields for admin settings sections.
24+
25+
326
## [3.14.0]
427

528
### Added
29+
630
- Added a missing entry to the 3.0.0 changelog regarding fixing the uninstaller.
731

832
### Fixed
33+
934
- When the site url changes, the connected channel site URL is also updated.
1035

1136
### Changed
37+
1238
- Added a new notification in the Diagnostics panel to call out when template
1339
overrides are being used.
1440
- Enhanced the template for product cards by adding additional classes related
@@ -1077,7 +1103,9 @@
10771103
in fact, reset postdata, so far as Gutenberg 3.2.0 is concerned.
10781104

10791105

1080-
[Unreleased]: https://github.com/moderntribe/bigcommerce/compare/master...develop
1106+
[3.15.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.14.0...3.15.0
1107+
[3.14.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.13.0...3.14.0
1108+
[3.13.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.12.0...3.13.0
10811109
[3.12.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.11.0...3.12.0
10821110
[3.11.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.10.0...3.11.0
10831111
[3.10.0]: https://github.com/bigcommerce/bigcommerce-for-wordpress/compare/3.9.0...3.10.0

assets/css/bc-admin.css

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/bc-admin.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/bc-gutenberg.css

+13-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/bc-gutenberg.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/cart-amp.css

+8-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/cart-amp.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/master-amp.css

+10-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/master-amp.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/master.css

+117-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/master.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/dist/admin/scripts.js

+1-1
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

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/src/admin/settings/toggle-section.js

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ const initChoices = () => {
131131
duplicateItemsAllowed: false,
132132
searchEnabled: false,
133133
placeholder: false,
134+
shouldSort: false,
134135
classNames: {
135136
containerOuter: 'bc-choices choices',
136137
},

assets/pcss/admin/pages/settings/_plugin-settings-pages.pcss

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
select {
135135
padding: 12px;
136136
height: 45px;
137-
line-height: 45px;
137+
line-height: initial;
138138
border-radius: 0;
139139
}
140140

assets/pcss/base/forms/_default.pcss

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
}
2727

2828
&.bc-product-form {
29-
margin: 0;
29+
margin: 0 auto;
3030

3131
button.bc-btn--form-submit {
3232
margin: 0;

assets/pcss/content/cards/_default.pcss

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
max-width: 100%;
4545
height: auto;
4646
}
47+
48+
.entry-content & {
49+
max-width: 370px;
50+
}
4751
}
4852

4953
.bc-product__meta {

assets/pcss/content/cart/_mini-cart.pcss

+4-3
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@
3131

3232
.bc-cart-item-total-price,
3333
.bc-cart-header__price {
34-
flex: 0 0 56px;
34+
flex: 0 0 auto;
3535
text-align: right;
3636
margin-left: 10px;
3737

3838
@media (--viewport-full) {
39-
flex: 0 0 56px;
39+
flex: 0 0 auto;
4040
}
4141
}
4242

@@ -103,7 +103,7 @@
103103

104104
.bc-cart-subtotal__amount,
105105
.bc-cart-tax__amount {
106-
flex: 0 0 56px;
106+
flex: 0 0 auto;
107107
text-align: right;
108108
}
109109

@@ -155,6 +155,7 @@
155155

156156
.bc-mini-cart {
157157
background-color: var(--color-white);
158+
padding: 0;
158159
}
159160

160161
.bc-product__thumbnail-link {

assets/pcss/content/components/_refinery.pcss

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898

9999
@media (--viewport-medium) {
100100
flex: 0 0 100%;
101+
min-width: 0;
101102
}
102103

103104
@media (--viewport-full) {

assets/pcss/content/components/_wish-lists.pcss

+3-2
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
padding-left: 15px;
182182
font-size: var(--font-size-content-s);
183183
font-weight: var(--font-weight-semibold);
184+
margin: 0;
184185
}
185186

186187
.bc-wish-list-share {
@@ -195,7 +196,7 @@
195196
}
196197

197198
.bc-wish-list-share--copy {
198-
flex: 0 0 50px;
199+
flex: 0 0 auto;
199200
font-size: var(--font-size-content-xs);
200201
font-weight: var(--font-weight-regular);
201202
background-color: transparent;
@@ -350,7 +351,7 @@
350351
order: 1;
351352

352353
@media (--viewport-small) {
353-
flex: 0 0 80px;
354+
flex: 0 0 auto;
354355
order: 0;
355356
}
356357

assets/pcss/content/single/_product-wish-list.pcss

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55

66
button.bc-btn.bc-pdp-wish-list-toggle,
77
.entry-content button.bc-btn.bc-pdp-wish-list-toggle {
8+
display: flex;
9+
flex-direction: row;
10+
justify-content: space-between;
11+
align-items: center;
812
max-width: 100%;
913
background-color: var(--color-off-white);
1014
border: 1px solid var(--color-bc-light-grey);

assets/pcss/content/single/_product.pcss

+4-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
}
4040

4141
.bc-product__sku {
42-
display: block;
4342
margin-top: 20px;
4443
font-size: var(--font-size-content-m);
4544

@@ -94,6 +93,10 @@
9493
}
9594
}
9695

96+
.bc-product__sku {
97+
display: block;
98+
}
99+
97100
.bc-product-form__quantity {
98101
display: flex;
99102
flex-direction: row;

assets/pcss/master.pcss

+3
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@
2222

2323
/* Content */
2424
@import "content/all";
25+
26+
/* WordPress Theme Overrides */
27+
@import "wp-themes/all";

assets/pcss/utilities/variables/_media-queries.pcss

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
@custom-media --viewport-xxsmall (min-width: 320px);
2+
@custom-media --viewport-420 (min-width: 420px);
23
@custom-media --viewport-xsmall (min-width: 500px);
34
@custom-media --viewport-small (min-width: 600px);
45
@custom-media --viewport-medium (min-width: 768px);
56
@custom-media --viewport-wpadmin (min-width: 783px);
67
@custom-media --viewport-wpadmin-max (max-width: 782px);
78
@custom-media --viewport-full (min-width: 960px);
9+
@custom-media --viewport-min-1000 (min-width: 1000px);
10+
@custom-media --viewport-max-1000 (max-width: 1000px);
811
@custom-media --viewport-large (min-width: 1200px);
912
@custom-media --viewport-xlarge (min-width: 1260px);
1013
@custom-media --viewport-xxlarge (min-width: 1600px);

assets/pcss/vendor/_all.pcss

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010

1111
/* Vendor: Swiper.js */
1212
@import "swiper/all";
13-
@import "flatpickr/all";
1413

14+
/* Vendor: Flatpickr.js */
15+
@import "flatpickr/all";

assets/pcss/wp-themes/_all.pcss

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Wordpress Core Themes Overrides.
3+
*
4+
* DO NOT EDIT THIS CSS FILE DIRECTLY. IT IS GENERATED BY GRUNT.
5+
* -------------------------------------------------------------
6+
* This file is just a clearing-house, see the pcss directory
7+
* and edit the source files found there.
8+
*
9+
*/
10+
11+
/* Themes */
12+
@import "twenty-twenty-theme";
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
.bc-wp-twenty-twenty-theme {
2+
/* Case: Theme Site header need higher z-index than 1. */
3+
@media (--viewport-max-1000) {
4+
5+
.bigcommerce_product-template-default,
6+
.singluar {
7+
8+
#site-header {
9+
z-index: 10;
10+
}
11+
}
12+
}
13+
14+
/* Case: Content widths need to be wider for bc content pages. */
15+
.entry-content > * {
16+
max-width: 960px !important;
17+
18+
&.bc-product-card__featured-image {
19+
max-width: 370px !important;
20+
z-index: 0;
21+
22+
@media (--viewport-420) {
23+
margin-right: calc((100vw - 370px) - 20px);
24+
}
25+
26+
@media (--viewport-min-1000) {
27+
margin-left: calc((100vw - 960px) / 2);
28+
margin-right: auto;
29+
}
30+
}
31+
}
32+
33+
.entry-content *[class^="bc-"] {
34+
35+
h1,
36+
h2:not(.bc-product-archive__title), /* Product Archive Title needs top spacing. */
37+
h3,
38+
h4,
39+
h5 {
40+
margin-top: 0;
41+
}
42+
}
43+
44+
/* Case: Product archive view needs to be wider to allow space for the refinery. */
45+
.entry-content .bc-product-archive {
46+
max-width: 1260px !important;
47+
}
48+
49+
/* Case: Reset section padding for Single product content. */
50+
.single-bigcommerce_product {
51+
52+
section {
53+
padding: inherit;
54+
}
55+
56+
.bc-product-single {
57+
padding-top: 4rem;
58+
}
59+
60+
.bc-single-product__section-title,
61+
.bc-single-product__section-title--related {
62+
margin-top: 0;
63+
}
64+
}
65+
66+
/* Case: All BC related buttons should inherit the bc styles from the customizer. */
67+
button:not(.toggle) {
68+
background-color: inherit;
69+
}
70+
71+
label.bc-product-form__quantity-label {
72+
font-size: inherit;
73+
}
74+
75+
/* Case: Quick View modal font sizes influenced by html wrapper setting. */
76+
+ .bc-product-quick-view__wrapper {
77+
font-size: 2em;
78+
79+
label.bc-product-form__quantity-label {
80+
font-size: inherit;
81+
}
82+
}
83+
84+
/* Case: addresses and overlap issue with rating stars. */
85+
.bc-single-product__rating--mask {
86+
z-index: 0;
87+
}
88+
89+
/* BC Product Gallery interferes with the cart dropdown. */
90+
.bc-product-single .bc-product__gallery {
91+
z-index: 0;
92+
}
93+
}

bigcommerce.php

+1-1
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.14.0
6+
Version: 3.15.0
77
Author URI: https://www.bigcommerce.com/wordpress
88
Requires PHP: 5.6.24
99
Text Domain: bigcommerce

build-timestamp.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?php
2-
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '6.12.02.21.2020');
2+
define('BIGCOMMERCE_ASSETS_BUILD_TIMESTAMP', '5.36.03.13.2020');

readme.txt

+1-1
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.14.0
6+
Stable tag: 3.15.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/Settings.php

-20
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ class Settings extends Provider {
7575
const IMPORT_LIVE_STATUS = 'settings.import_status_live';
7676
const START_OVER = 'settings.start_over';
7777
const ONBOARDING_PROGRESS = 'settings.onboarding.progress_bar';
78-
const SITE_UPDATE = 'settings.site_update';
7978

8079
const CONFIG_STATUS = 'settings.configuration_status';
8180
const CONFIG_DISPLAY_MENUS = 'settings.configuration_display_menus';
@@ -104,8 +103,6 @@ public function register( Container $container ) {
104103
$this->diagnostics( $container );
105104
$this->set_menus_default_visibility( $container );
106105
$this->resources( $container );
107-
$this->site_update( $container );
108-
109106
}
110107

111108
private function settings_screen( Container $container ) {
@@ -653,21 +650,4 @@ private function resources( Container $container ) {
653650
return $container[ self::RESOURCES_SCREEN ]->get_url();
654651
} ), 10, 1 );
655652
}
656-
657-
private function site_update( $container ) {
658-
$container[ self::SITE_UPDATE ] = function () use ( $container ) {
659-
return new Site_Update(
660-
$container[ Api::FACTORY ]->sites(),
661-
get_option( Channel::CHANNEL_ID )
662-
);
663-
};
664-
665-
add_filter( 'pre_update_option_siteurl', function( $option ) use ($container ) {
666-
return $container[ self::SITE_UPDATE ]->update_bc_channel_site_url( $option );
667-
});
668-
669-
add_filter( 'bigcommerce/settings/channel_site_url', $this->create_callback( 'channel_site_url', function ( $url ) use ( $container ) {
670-
return $container[ self::SITE_UPDATE ]->get_bc_channel_site_url( $url );
671-
} ), 10, 1 );
672-
}
673653
}

0 commit comments

Comments
 (0)