Skip to content

Commit a67bd41

Browse files
committed
Merge branch 'main' into release
2 parents d35f3fa + 4d414e6 commit a67bd41

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

src/beans-woocommerce.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: Beans
55
* Plugin URI: https://www.trybeans.com/
66
* Description: Marketing Apps for WooCommerce.
7-
* Version: 3.3.5
7+
* Version: 3.3.6
88
* Author: Beans
99
* Author URI: https://www.trybeans.com/
1010
* Text Domain: beans-woo
@@ -36,7 +36,7 @@
3636
}
3737

3838
if (!defined('BEANS_PLUGIN_VERSION')) {
39-
define('BEANS_PLUGIN_VERSION', '3.3.5');
39+
define('BEANS_PLUGIN_VERSION', '3.3.6');
4040
}
4141

4242

src/includes/Beans.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Beans
3333
{
3434
public $endpoint = 'https://api.trybeans.com/v3/';
3535

36-
const VERSION = '3.3.5'; // private
36+
const VERSION = '3.3.6'; // private
3737

3838
private $_secret = '';
3939
private $_next_page = '';

src/readme.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Tags: loyalty, referral, email, popup, social, rewards, automated emails, referr
55
Requires at least: 5.2
66
Requires PHP: 7.1
77
Tested up to: 5.9
8-
Stable tag: 3.3.5
8+
Stable tag: 3.3.6
99
License: Apache License, Version 2.0
1010
License URI: http://www.apache.org/licenses/LICENSE-2.0
1111

@@ -116,6 +116,9 @@ The WordPress codex contains instructions on
116116

117117
== Changelog ==
118118

119+
== 3.3.6 ==
120+
- Load lifetime discount for ajax
121+
119122
== 3.3.5 ==
120123
- Introduce riper LTS/EDGE version
121124
- Introduce lifetime discount on the tier system

src/storefront/liana/Observer/LianaAjaxObserver.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ public static function getCartCoupon($coupon, $coupon_code)
2424
return $_SESSION['liana_coupon'];
2525
}
2626

27+
if (
28+
$coupon_code === self::REDEEM_TIER_COUPON_UID
29+
&& isset($_SESSION['liana_tier_coupon'])
30+
&& $_SESSION['liana_tier_coupon']
31+
) {
32+
return $_SESSION['liana_tier_coupon'];
33+
}
34+
2735
return $coupon;
2836
}
2937

0 commit comments

Comments
 (0)