Plugin Directory

Changeset 2959533


Ignore:
Timestamp:
08/28/2023 06:03:42 PM (3 years ago)
Author:
connectordev
Message:

Fixed 100% discount issue on cart page summary.

Location:
bloyal/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • bloyal/trunk/app/controller/class-bloyalcartcontroller.php

    r2949512 r2959533  
    201201                            'FullPrice'                 => $regular_price ?? '',
    202202                            'Price'                     => $price,
    203                             'ExternallyAppliedSalePrice'=> ($regular_price ? true : false),
     203                            'ExternallyAppliedSalePrice'=> (($external_discount_amount > 0) ? true : false),
    204204                            'SalePrice'                 => $sale_price ?? '',
    205205                            'ExternallyAppliedDiscount' => $is_external_discount,
  • bloyal/trunk/app/controller/class-bloyalcontroller.php

    r2930009 r2959533  
    22522252                    $reason_name            = $line->DiscountReasonName;
    22532253                    $sale_price_reason_name = isset( $line->SalePriceReasonName ) == false ? $line->SalePriceReasonCode : $line->SalePriceReasonName;
    2254                     $sale_price_discount    = ( $line->Price - $line->SalePrice ) * $line->Quantity;
     2254                    if($line->SalePrice > 0){
     2255                        $sale_price_discount = ( $line->Price - $line->SalePrice ) * $line->Quantity;
     2256                    }else {
     2257                        $sale_price_discount = 0;
     2258                    }
    22552259                    $discount               = $line->Discount * $line->Quantity;
    22562260                    if ( $discount > 0 || $sale_price_discount > 0 ) {
  • bloyal/trunk/bloyal.php

    r2949512 r2959533  
    44 * Plugin URI:
    55 * Description: bLoyal provides real-time customer loyalty and omni-channel order processing to your WooCommerce web store.
    6  * Version: 3.1.611.15
     6 * Version: 3.1.611.16
    77 * Author:  bLoyal
    88 */
  • bloyal/trunk/readme.txt

    r2949512 r2959533  
    66WC tested up to: 7.7.2
    77Requires PHP: 5.6
    8 Stable tag: 3.1.611.15
     8Stable tag: 3.1.611.16
    99License: GPLv2 or later
    1010
     
    118118*Release Date - 08 August 2023*
    119119
     120= 3.1.611.16 =
     121*Release Date - 28 August 2023*
     122Fixed 100% discount issue on cart page summary.
     123
    120124== Changes ==
    121125
    122126This plugin supports up to PHP 8.1 version.
    123127Fixed sales price issue on cart page.
     128Fixed 100% discount issue on cart page summary.
    124129
    125130== Support ==
     
    131136== Upgrade Notice ==
    132137
    133 = 3.1.611.15 =
     138= 3.1.611.16 =
    134139
    135140* [Compatibility] - WP 6.2
Note: See TracChangeset for help on using the changeset viewer.