Plugin Directory

Changeset 3358789


Ignore:
Timestamp:
09/09/2025 04:53:48 PM (4 months ago)
Author:
calliko
Message:

fix bug

Location:
bonus-for-woo
Files:
586 added
5 edited

Legend:

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

    r3353693 r3358789  
    3030     * Вывод статуса клиента
    3131     *
    32      * @return mixed
     32     * @return string
    3333     * @version 6.4.0
    3434     */
     
    387387        <div class="bfw-progressbar-block">
    388388            <style>
    389                 #bfw-progressbar > div { width: <?= esc_attr($width) ?>%; }
    390                 #bfw-progressbar > div span { <?= esc_attr($textPositionStyle) ?> }
     389                #bfw-progressbar > div { width: <?php echo esc_attr($width) ?>%; }
     390                #bfw-progressbar > div span { <?php echo esc_attr($textPositionStyle) ?> }
    391391            </style>
    392392
    393393            <div class="bfw-progressbar-title">
    394                 <div class="bfw-progressbar-title-one"><?= esc_html($nextRole['current_role_name'] ?? '') ?></div>
    395                 <div class="bfw-progressbar-title-two"><?= esc_html($nextRole['status'] !== 'max' ? $currentRoleName : '') ?></div>
     394                <div class="bfw-progressbar-title-one"><?php echo esc_html($nextRole['current_role_name'] ?? '') ?></div>
     395                <div class="bfw-progressbar-title-two"><?php echo esc_html($nextRole['status'] !== 'max' ? $currentRoleName : '') ?></div>
    396396            </div>
    397397
    398398            <div id="bfw-progressbar">
    399                 <div><span><?= esc_html($roundedTotal) ?></span></div>
     399                <div><span><?php echo esc_html($roundedTotal) ?></span></div>
    400400            </div>
    401401        </div>
  • bonus-for-woo/trunk/classes/BfwReferral.php

    r3355047 r3358789  
    219219     * @param $points float Баллы, которые получит реферал
    220220     * @param $get_referral_invite int Реферер клиента
    221      *
     221     * @param int $order_id
    222222     * @return void
    223223     * @version 7.0.0
  • bonus-for-woo/trunk/classes/BfwSingleProduct.php

    r3353693 r3358789  
    346346
    347347        //Если товар со 100% кешбэком
    348         if ((int)$val['buy_balls-cashback'] === $product_id) {
    349             $percent = 100;
    350         }
     348        if(!empty($val['buy_balls-cashback'])){
     349            if ((int)$val['buy_balls-cashback'] === $product_id) {
     350                $percent = 100;
     351            }
     352        }
     353
    351354
    352355        if (isset($val['cashback_for_first_order']) && $val['cashback_for_first_order'] > 0 && (new BfwFunctions())->get_customer_order_count($user_id) === 0) {
  • bonus-for-woo/trunk/index.php

    r3355047 r3358789  
    22/*
    33 * Plugin Name:     Bonus for Woo
    4  * Version:         7.4.1
     4 * Version:         7.4.2
    55 * Text Domain:     bonus-for-woo
    66 * Plugin URI:      https://computy.ru/blog/bonus-for-woo-wordpress
     
    2323    exit;
    2424}
    25 define('BONUS_COMPUTY_VERSION', '7.4.1'); /*версия плагина*/
     25define('BONUS_COMPUTY_VERSION', '7.4.2'); /*версия плагина*/
    2626define('BONUS_COMPUTY_VERSION_DB', '6'); /*версия базы данных*/
    2727define('BONUS_COMPUTY_PLUGIN_DIR', plugin_dir_path(__FILE__));
  • bonus-for-woo/trunk/readme.txt

    r3355047 r3358789  
    77WC requires at least: 6.0
    88WC tested up to: 10.1.2
    9 Stable tag: 7.4.1
     9Stable tag: 7.4.2
    1010Requires PHP: 7.4
    1111License: GPLv3 or later
     
    108108== Changelog ==
    109109
     110= 7.4.2 - 2025-09-09 =
     111* Fixed a bug in the product card.
     112
    110113= 7.4.1 - 2025-09-01 =
    111114* Added the ability to see the order number from referral accruals in the history
Note: See TracChangeset for help on using the changeset viewer.