Skip to content

Commit

Permalink
Merge branch 'release/1.19.11'
Browse files Browse the repository at this point in the history
  • Loading branch information
Misplon committed Jun 21, 2022
2 parents 3381f20 + 4bcb8e3 commit 43bc9a8
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 2 deletions.
3 changes: 2 additions & 1 deletion inc/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,8 @@ function siteorigin_north_wc_settings_custom_css( $css ) {
border: 1px solid ${fonts_text_dark};
color: ${fonts_text_dark};
}
.woocommerce table.shop_table .button.checkout-button {
.woocommerce table.shop_table .button.checkout-button,
.woocommerce .so-panel .wc-proceed-to-checkout .checkout-button.button {
background: ${branding_accent};
border: 1px solid ${branding_accent};
}
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ Original design files are available on [Google Drive](https://drive.google.com/f

== Changelog ==

= 1.19.11 - 21 June 2022 =
* WooCommerce: Added undefined variable `$woocommerce`.
* WooCommerce Template Builder: Ensured `Proceed to Checkout` button is available in the Cart template.

= 1.19.10 - 12 June 2022 =
* SiteOrigin Settings: Added `siteorigin_settings_websafe` filter to allow filtering of websafe fonts.

Expand Down
15 changes: 15 additions & 0 deletions sass/woocommerce/_cart.scss
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,21 @@
}
}
}

.so-panel .wc-proceed-to-checkout .checkout-button {
background: #c75d5d;
border: 1px solid #c75d5d;
color: #fff;
text-transform: uppercase;

&:focus,
&:hover {
background: #a94346;
border-color: #a94346;
box-shadow: none;
color: #fff;
}
}
}

#mobile-navigation {
Expand Down
11 changes: 11 additions & 0 deletions woocommerce.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion woocommerce/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,19 @@ function siteorigin_north_woocommerce_change_hooks(){

// Remove actions in the cart.
remove_action( 'woocommerce_cart_collaterals', 'woocommerce_cart_totals', 10 );
remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );
if ( class_exists( 'SiteOrigin_Premium_Plugin_WooCommerce_Templates' ) ) {
$so_wc_templates = get_option( 'so-wc-templates' );
if (
! empty( $so_wc_templates['cart'] ) &&
! empty( $so_wc_templates['cart']['active'] )
) {
$prevent_override = true;
}
}

if ( empty( $prevent_override ) ) {
remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );
}

// Product archive buttons.
remove_action( 'woocommerce_after_shop_loop_item', 'woocommerce_template_loop_add_to_cart' );
Expand Down Expand Up @@ -180,6 +192,8 @@ function siteorigin_north_woocommerce_update_cart_count( $fragments ) {
return $fragments;
}
endif;

global $woocommerce;
if ( version_compare( $woocommerce->version, '3', '<' ) ) {
add_filter( 'add_to_cart_fragments', 'siteorigin_north_woocommerce_update_cart_count' );
} else {
Expand Down

0 comments on commit 43bc9a8

Please sign in to comment.