Skip to content

Commit

Permalink
Merge pull request #123 from pinalj/fixes-2.5
Browse files Browse the repository at this point in the history
Fix #120
  • Loading branch information
pinalj authored Sep 17, 2024
2 parents c890766 + f064a0c commit 362a1b9
Show file tree
Hide file tree
Showing 5 changed files with 130 additions and 94 deletions.
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
*** Quotes for WooCommerce ***

2024-09-17 - Version 2.5
* Enhancement - Added setting to modify the Proceed to Checkout button text when cart contains only quote products.
* Enhancement - Added setting to modify Checkout page title when cart contains only quote products.
* Tweak - Added filters to allow users to modify the quote status for which initial emails should be sent to admin and customer.
* Fix - Rectified incorrect french translation for the word 'Price'.
* Fix - Modified plugin code to work correctly with PHP 8.3.x.

2024-06-27 - Version 2.4
* Enhancement - Introduced compatibility with WooCommerce Composite Products.
* Fix - Fixed a fatal error displayed with WooCommerce 9.0.x.
Expand Down
4 changes: 2 additions & 2 deletions class-quotes-wc.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Quotes_WC {
* @var string
* @since 1.0.0
*/
public $version = '2.4';
public $version = '2.5';

/**
* Class instance.
Expand Down Expand Up @@ -948,7 +948,7 @@ public function woocommerce_title( $title, $id ) {
public function qwc_change_proceed_checkout_btn_text() {
if ( cart_contains_quotable() ) {
remove_action( 'woocommerce_proceed_to_checkout', 'woocommerce_button_proceed_to_checkout', 20 );
$proceed_checkout_label = '' === get_option( 'qwc_proceed_checout_btn_label', '' ) ? __( 'Proceed to Checkout', 'woocommerce' ) : get_option( 'qwc_proceed_checout_btn_label' );
$proceed_checkout_label = '' === get_option( 'qwc_proceed_checkout_btn_label', '' ) ? __( 'Proceed to Checkout', 'quote-wc' ) : get_option( 'qwc_proceed_checkout_btn_label' );
?>
<a href="<?php echo esc_url( wc_get_checkout_url() ); ?>" class="checkout-button button alt wc-forward<?php echo esc_attr( wc_wp_theme_get_element_class_name( 'button' ) ? ' ' . wc_wp_theme_get_element_class_name( 'button' ) : '' ); ?>">
<?php echo esc_html__( $proceed_checkout_label, 'quote-wc' ); ?>
Expand Down
Loading

0 comments on commit 362a1b9

Please sign in to comment.