Changeset 3457292
- Timestamp:
- 02/09/2026 05:02:09 PM (10 days ago)
- Location:
- elex-abandoned-cart-recovery-with-dynamic-coupons
- Files:
-
- 12 edited
- 1 copied
-
tags/1.1.6 (copied) (copied from elex-abandoned-cart-recovery-with-dynamic-coupons/trunk)
-
tags/1.1.6/elex-abandoned-cart-woocommerce.php (modified) (1 diff)
-
tags/1.1.6/includes/cart-details-popup-modal.php (modified) (5 diffs)
-
tags/1.1.6/includes/class-elex-ab-cart-action.php (modified) (2 diffs)
-
tags/1.1.6/includes/class_elex_email_cron_action.php (modified) (1 diff)
-
tags/1.1.6/includes/coupon_modal/dynamic_coupon.php (modified) (1 diff)
-
tags/1.1.6/readme.txt (modified) (3 diffs)
-
trunk/elex-abandoned-cart-woocommerce.php (modified) (1 diff)
-
trunk/includes/cart-details-popup-modal.php (modified) (5 diffs)
-
trunk/includes/class-elex-ab-cart-action.php (modified) (2 diffs)
-
trunk/includes/class_elex_email_cron_action.php (modified) (1 diff)
-
trunk/includes/coupon_modal/dynamic_coupon.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/elex-abandoned-cart-woocommerce.php
r3386436 r3457292 5 5 * Plugin URI: https://elextensions.com/plugin/elex-abandoned-cart-recovery-with-dynamic-coupons-free/ 6 6 * Description: With the ELEX WooCommerce Abandoned Cart Recovery plugin, you can claim back lost sales by sending emails at predetermined intervals to remind customers to complete their orders. 7 * Version: 1.1. 57 * Version: 1.1.6 8 8 * Requires at least: 2.6.0 9 9 * Author: ELEXtensions -
elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/includes/cart-details-popup-modal.php
r3386436 r3457292 169 169 foreach ( $cart_snapshot as $item ) { 170 170 171 // Remove comma from sub_total to calculation 172 $item['sub_total'] = str_replace( ',', '', $item['sub_total'] ); 173 $formatted_item_subtotal = number_format( $item['sub_total'], 2 ); 174 171 175 array_push( 172 176 $items, … … 175 179 'title' => $item['title'], 176 180 'quantity' => $item['quantity'], 177 'item_total' => number_format( $item['sub_total'] , 2 ),181 'item_total' => $formatted_item_subtotal, 178 182 'cost' => $item['product_price'], 179 183 'discount' => isset( $item['coupon_discount'] ) ? round( … … 183 187 ) 184 188 ); 185 $sub_total += (float) number_format( $item['sub_total'], 2 );189 $sub_total += (float) $item['sub_total']; 186 190 $products_price += $item['quantity'] * $item['product_price']; 187 191 … … 213 217 $products_price = 0; 214 218 foreach ( $ordered_product_data as $item ) { 215 219 // Remove comma from sub_total to calculation 220 $item['sub_total'] = str_replace( ',', '', $item['sub_total'] ); 221 $formatted_item_subtotal = number_format( $item['sub_total'], 2 ); 222 216 223 if ( in_array( $item['id'] , $abandoned_product_ids ) ) { 217 224 array_push( … … 221 228 'title' => $item['title'], 222 229 'quantity' => $item['quantity'], 223 'item_total' => number_format( $item['sub_total'] , 2 ),230 'item_total' => $formatted_item_subtotal, 224 231 'cost' => $item['product_price'], 225 232 'discount' => isset( $item['coupon_discount'] ) ? number_format( -
elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/includes/class-elex-ab-cart-action.php
r3386436 r3457292 576 576 'coupon_discount' => $item_coupon_discount, 577 577 ); 578 $cart_total += number_format( ( wc_get_price_including_tax( $product ) * $values['quantity'] ), 2 ); 578 579 // Remove comma from cart_total to calculation 580 $temp_cart_total = number_format( ( wc_get_price_including_tax( $product ) * $values['quantity'] ), 2 ); 581 $temp_cart_total = str_replace( ',', '', $temp_cart_total ); 582 $cart_total += $temp_cart_total; 579 583 $product_count++; 580 584 } … … 650 654 $order_sub_total = 0; 651 655 foreach ( $ordered_product_data as $key => $order_details ) { 656 // Remove comma from sub_total to calculation 657 $order_details['sub_total'] = str_replace( ',', '', $order_details['sub_total'] ); 658 652 659 if ( ! in_array( $key, $products_in_both_array ) ) { 653 660 $total_bonus += $order_details['sub_total']; -
elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/includes/class_elex_email_cron_action.php
r3386436 r3457292 420 420 // Decode the cart_snapshot JSON string into an object 421 421 $cartSnapshot = json_decode( $rawCartData->cart_snapshot ); 422 423 $total = $decoded_value->sub_total;422 423 $total = str_replace( ',', '', $decoded_value->sub_total ); 424 424 if ( $cartSnapshot && isset( $cartSnapshot->tax_applied ) ) { 425 425 $total += $cartSnapshot->tax_applied; -
elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/includes/coupon_modal/dynamic_coupon.php
r3386436 r3457292 25 25 $coupon->set_date_expires( $current_date->format( 'Y-m-d' ) ); 26 26 $coupon->set_individual_use( $this->coupon_details['individual_use'] ); 27 28 // --- To enforce one-time use for dynamic coupon--- 29 $coupon->set_usage_limit( 1 ); 30 $coupon->set_usage_limit_per_user( 1 ); 27 31 28 32 $couponDataClassObj->apply_rules( $coupon, $this->coupon_details , $this->cart_data ); -
elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/readme.txt
r3386436 r3457292 4 4 Tags: abandoned cart, dynamic coupons, cart recovery, abandoned cart emails, recover lost sales 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 87 Stable tag: 1.1. 56 Tested up to: 6.9 7 Stable tag: 1.1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = 1.1.6 = 76 * Made Compatible with Wordpress 6.9 77 * Improvement and minor bug fixes 78 75 79 = 1.1.5 = 76 80 * Made Compatible with Wordpress 6.8 … … 138 142 == Upgrade Notice == 139 143 144 = 1.1.6 = 145 * Made Compatible with Wordpress 6.9 146 * Improvement and minor bug fixes 147 140 148 = 1.1.5 = 141 149 * Made Compatible with Wordpress 6.8 -
elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/elex-abandoned-cart-woocommerce.php
r3386436 r3457292 5 5 * Plugin URI: https://elextensions.com/plugin/elex-abandoned-cart-recovery-with-dynamic-coupons-free/ 6 6 * Description: With the ELEX WooCommerce Abandoned Cart Recovery plugin, you can claim back lost sales by sending emails at predetermined intervals to remind customers to complete their orders. 7 * Version: 1.1. 57 * Version: 1.1.6 8 8 * Requires at least: 2.6.0 9 9 * Author: ELEXtensions -
elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/cart-details-popup-modal.php
r3386436 r3457292 169 169 foreach ( $cart_snapshot as $item ) { 170 170 171 // Remove comma from sub_total to calculation 172 $item['sub_total'] = str_replace( ',', '', $item['sub_total'] ); 173 $formatted_item_subtotal = number_format( $item['sub_total'], 2 ); 174 171 175 array_push( 172 176 $items, … … 175 179 'title' => $item['title'], 176 180 'quantity' => $item['quantity'], 177 'item_total' => number_format( $item['sub_total'] , 2 ),181 'item_total' => $formatted_item_subtotal, 178 182 'cost' => $item['product_price'], 179 183 'discount' => isset( $item['coupon_discount'] ) ? round( … … 183 187 ) 184 188 ); 185 $sub_total += (float) number_format( $item['sub_total'], 2 );189 $sub_total += (float) $item['sub_total']; 186 190 $products_price += $item['quantity'] * $item['product_price']; 187 191 … … 213 217 $products_price = 0; 214 218 foreach ( $ordered_product_data as $item ) { 215 219 // Remove comma from sub_total to calculation 220 $item['sub_total'] = str_replace( ',', '', $item['sub_total'] ); 221 $formatted_item_subtotal = number_format( $item['sub_total'], 2 ); 222 216 223 if ( in_array( $item['id'] , $abandoned_product_ids ) ) { 217 224 array_push( … … 221 228 'title' => $item['title'], 222 229 'quantity' => $item['quantity'], 223 'item_total' => number_format( $item['sub_total'] , 2 ),230 'item_total' => $formatted_item_subtotal, 224 231 'cost' => $item['product_price'], 225 232 'discount' => isset( $item['coupon_discount'] ) ? number_format( -
elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/class-elex-ab-cart-action.php
r3386436 r3457292 576 576 'coupon_discount' => $item_coupon_discount, 577 577 ); 578 $cart_total += number_format( ( wc_get_price_including_tax( $product ) * $values['quantity'] ), 2 ); 578 579 // Remove comma from cart_total to calculation 580 $temp_cart_total = number_format( ( wc_get_price_including_tax( $product ) * $values['quantity'] ), 2 ); 581 $temp_cart_total = str_replace( ',', '', $temp_cart_total ); 582 $cart_total += $temp_cart_total; 579 583 $product_count++; 580 584 } … … 650 654 $order_sub_total = 0; 651 655 foreach ( $ordered_product_data as $key => $order_details ) { 656 // Remove comma from sub_total to calculation 657 $order_details['sub_total'] = str_replace( ',', '', $order_details['sub_total'] ); 658 652 659 if ( ! in_array( $key, $products_in_both_array ) ) { 653 660 $total_bonus += $order_details['sub_total']; -
elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/class_elex_email_cron_action.php
r3386436 r3457292 420 420 // Decode the cart_snapshot JSON string into an object 421 421 $cartSnapshot = json_decode( $rawCartData->cart_snapshot ); 422 423 $total = $decoded_value->sub_total;422 423 $total = str_replace( ',', '', $decoded_value->sub_total ); 424 424 if ( $cartSnapshot && isset( $cartSnapshot->tax_applied ) ) { 425 425 $total += $cartSnapshot->tax_applied; -
elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/coupon_modal/dynamic_coupon.php
r3386436 r3457292 25 25 $coupon->set_date_expires( $current_date->format( 'Y-m-d' ) ); 26 26 $coupon->set_individual_use( $this->coupon_details['individual_use'] ); 27 28 // --- To enforce one-time use for dynamic coupon--- 29 $coupon->set_usage_limit( 1 ); 30 $coupon->set_usage_limit_per_user( 1 ); 27 31 28 32 $couponDataClassObj->apply_rules( $coupon, $this->coupon_details , $this->cart_data ); -
elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/readme.txt
r3386436 r3457292 4 4 Tags: abandoned cart, dynamic coupons, cart recovery, abandoned cart emails, recover lost sales 5 5 Requires at least: 3.0.1 6 Tested up to: 6. 87 Stable tag: 1.1. 56 Tested up to: 6.9 7 Stable tag: 1.1.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 73 73 == Changelog == 74 74 75 = 1.1.6 = 76 * Made Compatible with Wordpress 6.9 77 * Improvement and minor bug fixes 78 75 79 = 1.1.5 = 76 80 * Made Compatible with Wordpress 6.8 … … 138 142 == Upgrade Notice == 139 143 144 = 1.1.6 = 145 * Made Compatible with Wordpress 6.9 146 * Improvement and minor bug fixes 147 140 148 = 1.1.5 = 141 149 * Made Compatible with Wordpress 6.8
Note: See TracChangeset
for help on using the changeset viewer.