Plugin Directory

Changeset 3457292


Ignore:
Timestamp:
02/09/2026 05:02:09 PM (10 days ago)
Author:
elextensions
Message:

updated to v1.1.6

Location:
elex-abandoned-cart-recovery-with-dynamic-coupons
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/elex-abandoned-cart-woocommerce.php

    r3386436 r3457292  
    55 * Plugin URI:        https://elextensions.com/plugin/elex-abandoned-cart-recovery-with-dynamic-coupons-free/
    66 * 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.5
     7 * Version:           1.1.6
    88 * Requires at least: 2.6.0
    99 * Author:            ELEXtensions
  • elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/includes/cart-details-popup-modal.php

    r3386436 r3457292  
    169169        foreach ( $cart_snapshot as $item ) {
    170170
     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
    171175            array_push(
    172176                $items,
     
    175179                    'title'      => $item['title'],
    176180                    'quantity'   => $item['quantity'],
    177                     'item_total' => number_format( $item['sub_total'] , 2 ),
     181                    'item_total' => $formatted_item_subtotal,
    178182                    'cost'       => $item['product_price'],
    179183                    'discount'   => isset( $item['coupon_discount'] ) ? round(
     
    183187                )
    184188            );
    185             $sub_total      += (float) number_format( $item['sub_total'], 2 );
     189            $sub_total      += (float) $item['sub_total'];
    186190            $products_price += $item['quantity'] * $item['product_price'];
    187191
     
    213217        $products_price = 0;
    214218        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
    216223            if ( in_array( $item['id'] , $abandoned_product_ids ) ) {
    217224                array_push(
     
    221228                        'title'      => $item['title'],
    222229                        'quantity'   => $item['quantity'],
    223                         'item_total' => number_format( $item['sub_total'] , 2 ),
     230                        'item_total' => $formatted_item_subtotal,
    224231                        'cost'       => $item['product_price'],
    225232                        '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  
    576576                'coupon_discount' => $item_coupon_discount,
    577577            );
    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;
    579583            $product_count++;
    580584        }
     
    650654        $order_sub_total = 0;
    651655        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
    652659            if ( ! in_array( $key, $products_in_both_array ) ) {
    653660                $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  
    420420                        // Decode the cart_snapshot JSON string into an object
    421421                        $cartSnapshot = json_decode( $rawCartData->cart_snapshot );
    422                    
    423                         $total = $decoded_value->sub_total;
     422
     423                        $total = str_replace( ',', '', $decoded_value->sub_total );
    424424                        if ( $cartSnapshot && isset( $cartSnapshot->tax_applied ) ) {
    425425                            $total += $cartSnapshot->tax_applied;
  • elex-abandoned-cart-recovery-with-dynamic-coupons/tags/1.1.6/includes/coupon_modal/dynamic_coupon.php

    r3386436 r3457292  
    2525        $coupon->set_date_expires( $current_date->format( 'Y-m-d' ) );
    2626        $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 );
    2731
    2832        $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  
    44Tags: abandoned cart, dynamic coupons, cart recovery, abandoned cart emails, recover lost sales
    55Requires at least: 3.0.1
    6 Tested up to: 6.8
    7 Stable tag: 1.1.5
     6Tested up to: 6.9
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
     75= 1.1.6 =
     76* Made Compatible with Wordpress 6.9
     77* Improvement and minor bug fixes
     78
    7579= 1.1.5 =
    7680* Made Compatible with Wordpress 6.8
     
    138142== Upgrade Notice ==
    139143
     144= 1.1.6 =
     145* Made Compatible with Wordpress 6.9
     146* Improvement and minor bug fixes
     147
    140148= 1.1.5 =
    141149* Made Compatible with Wordpress 6.8
  • elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/elex-abandoned-cart-woocommerce.php

    r3386436 r3457292  
    55 * Plugin URI:        https://elextensions.com/plugin/elex-abandoned-cart-recovery-with-dynamic-coupons-free/
    66 * 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.5
     7 * Version:           1.1.6
    88 * Requires at least: 2.6.0
    99 * Author:            ELEXtensions
  • elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/cart-details-popup-modal.php

    r3386436 r3457292  
    169169        foreach ( $cart_snapshot as $item ) {
    170170
     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
    171175            array_push(
    172176                $items,
     
    175179                    'title'      => $item['title'],
    176180                    'quantity'   => $item['quantity'],
    177                     'item_total' => number_format( $item['sub_total'] , 2 ),
     181                    'item_total' => $formatted_item_subtotal,
    178182                    'cost'       => $item['product_price'],
    179183                    'discount'   => isset( $item['coupon_discount'] ) ? round(
     
    183187                )
    184188            );
    185             $sub_total      += (float) number_format( $item['sub_total'], 2 );
     189            $sub_total      += (float) $item['sub_total'];
    186190            $products_price += $item['quantity'] * $item['product_price'];
    187191
     
    213217        $products_price = 0;
    214218        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
    216223            if ( in_array( $item['id'] , $abandoned_product_ids ) ) {
    217224                array_push(
     
    221228                        'title'      => $item['title'],
    222229                        'quantity'   => $item['quantity'],
    223                         'item_total' => number_format( $item['sub_total'] , 2 ),
     230                        'item_total' => $formatted_item_subtotal,
    224231                        'cost'       => $item['product_price'],
    225232                        'discount'   => isset( $item['coupon_discount'] ) ? number_format(
  • elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/class-elex-ab-cart-action.php

    r3386436 r3457292  
    576576                'coupon_discount' => $item_coupon_discount,
    577577            );
    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;
    579583            $product_count++;
    580584        }
     
    650654        $order_sub_total = 0;
    651655        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
    652659            if ( ! in_array( $key, $products_in_both_array ) ) {
    653660                $total_bonus += $order_details['sub_total'];
  • elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/class_elex_email_cron_action.php

    r3386436 r3457292  
    420420                        // Decode the cart_snapshot JSON string into an object
    421421                        $cartSnapshot = json_decode( $rawCartData->cart_snapshot );
    422                    
    423                         $total = $decoded_value->sub_total;
     422
     423                        $total = str_replace( ',', '', $decoded_value->sub_total );
    424424                        if ( $cartSnapshot && isset( $cartSnapshot->tax_applied ) ) {
    425425                            $total += $cartSnapshot->tax_applied;
  • elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/includes/coupon_modal/dynamic_coupon.php

    r3386436 r3457292  
    2525        $coupon->set_date_expires( $current_date->format( 'Y-m-d' ) );
    2626        $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 );
    2731
    2832        $couponDataClassObj->apply_rules( $coupon, $this->coupon_details , $this->cart_data );
  • elex-abandoned-cart-recovery-with-dynamic-coupons/trunk/readme.txt

    r3386436 r3457292  
    44Tags: abandoned cart, dynamic coupons, cart recovery, abandoned cart emails, recover lost sales
    55Requires at least: 3.0.1
    6 Tested up to: 6.8
    7 Stable tag: 1.1.5
     6Tested up to: 6.9
     7Stable tag: 1.1.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7373== Changelog ==
    7474
     75= 1.1.6 =
     76* Made Compatible with Wordpress 6.9
     77* Improvement and minor bug fixes
     78
    7579= 1.1.5 =
    7680* Made Compatible with Wordpress 6.8
     
    138142== Upgrade Notice ==
    139143
     144= 1.1.6 =
     145* Made Compatible with Wordpress 6.9
     146* Improvement and minor bug fixes
     147
    140148= 1.1.5 =
    141149* Made Compatible with Wordpress 6.8
Note: See TracChangeset for help on using the changeset viewer.