Fix mini-cart free trial check

This commit is contained in:
Alex P 2022-04-12 17:20:32 +03:00
parent 368d50ce7b
commit 9370eba320

View file

@ -432,7 +432,7 @@ class SmartButton implements SmartButtonInterface {
add_action(
$this->mini_cart_button_renderer_hook(),
function () {
if ( $this->is_cart_price_total_zero() && ! $this->is_free_trial_cart() ) {
if ( $this->is_cart_price_total_zero() || $this->is_free_trial_cart() ) {
return;
}