Plugin Directory

Changeset 3372891


Ignore:
Timestamp:
10/04/2025 03:25:50 PM (5 months ago)
Author:
calliko
Message:

fix small bug

Location:
bonus-for-woo
Files:
1172 added
4 edited

Legend:

Unmodified
Added
Removed
  • bonus-for-woo/trunk/classes/BfwPoints.php

    r3355047 r3372891  
    15371537                        $percent_for_referal = $val['referal-cashback'];
    15381538
    1539                         $pointsForRef = $cashback_this_order*$percent_for_referal/$percent;
    1540                         /*Добавляем баллы рефереру (пригласителю, спонсору) от реферала первого уровня*/
    1541                         bfwReferral::addReferralPoints($user_id, $pointsForRef, $get_referral_invite,$order_id);
     1539                        if ($percent != 0) {
     1540                            $pointsForRef = $cashback_this_order * $percent_for_referal / $percent;
     1541                            /*Добавляем баллы рефереру (пригласителю, спонсору) от реферала первого уровня*/
     1542                            bfwReferral::addReferralPoints($user_id, $pointsForRef, $get_referral_invite, $order_id);
     1543                        }
    15421544                    }
    15431545
  • bonus-for-woo/trunk/index.php

    r3358789 r3372891  
    22/*
    33 * Plugin Name:     Bonus for Woo
    4  * Version:         7.4.2
     4 * Version:         7.4.3
    55 * Text Domain:     bonus-for-woo
    66 * Plugin URI:      https://computy.ru/blog/bonus-for-woo-wordpress
     
    1111 *
    1212 * WC requires at least: 6.0
    13  * WC tested up to: 10.1.2
     13 * WC tested up to: 10.2.2
    1414 *
    1515 * License:           GNU General Public License v3.0
     
    2323    exit;
    2424}
    25 define('BONUS_COMPUTY_VERSION', '7.4.2'); /*версия плагина*/
     25define('BONUS_COMPUTY_VERSION', '7.4.3'); /*версия плагина*/
    2626define('BONUS_COMPUTY_VERSION_DB', '6'); /*версия базы данных*/
    2727define('BONUS_COMPUTY_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • bonus-for-woo/trunk/readme.txt

    r3358789 r3372891  
    44Tags: loyalty, cashback, points, reward, referral
    55Requires at least:  5.0
    6 Tested up to:  6.8.2
     6Tested up to:  6.8.3
    77WC requires at least: 6.0
    8 WC tested up to: 10.1.2
    9 Stable tag: 7.4.2
     8WC tested up to: 10.2.2
     9Stable tag: 7.4.3
    1010Requires PHP: 7.4
    1111License: GPLv3 or later
     
    108108== Changelog ==
    109109
     110= 7.4.3 - 2025-10-04 =
     111* Fixed division by zero error.
     112
    110113= 7.4.2 - 2025-09-09 =
    111114* Fixed a bug in the product card.
  • bonus-for-woo/trunk/templates/account.php

    r3277315 r3372891  
    4646
    4747    <br> <br>
     48
    4849    <?php
    4950    /*
Note: See TracChangeset for help on using the changeset viewer.