Plugin Directory

Changeset 2949512


Ignore:
Timestamp:
08/08/2023 05:44:27 PM (3 years ago)
Author:
connectordev
Message:

Fixed sales product pricing issue on cart page updated plugIn version 3.1.611.15

Location:
bloyal/trunk
Files:
3 edited

Legend:

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

    r2930009 r2949512  
    174174                        $external_tax = 'true';
    175175                    }
     176                   
    176177                    foreach ( $lines as $key => $line ) {
     178                       
    177179                        $product_data             = $line['data'];
    178180                        $is_external_discount     = false;
    179181                        $external_discount_amount = 0;
    180182                        $regular_price            = $product_data->get_regular_price();
     183                        $sale_price = $product_data->get_sale_price();
     184                        $price = $product_data->get_price();
    181185                        $external_sale_price      = $product_data->get_sale_price();
    182186                        if ( '' !== $external_sale_price ) {
     
    189193                            WC()->session->set( 'is_virtual_porduct_order', false );
    190194                        }
     195                       
    191196                        $line_data[] = array(
    192197                            'ExternalId'                => $key,
     
    194199                            'ProductName'               => $product_data->get_name(),
    195200                            'Quantity'                  => $line['quantity'],
    196                             'Price'                     => $regular_price,
     201                            'FullPrice'                 => $regular_price ?? '',
     202                            'Price'                     => $price,
     203                            'ExternallyAppliedSalePrice'=> ($regular_price ? true : false),
     204                            'SalePrice'                 => $sale_price ?? '',
    197205                            'ExternallyAppliedDiscount' => $is_external_discount,
    198206                            'Discount'                  => $external_discount_amount,
  • bloyal/trunk/bloyal.php

    r2930009 r2949512  
    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.14
     6 * Version: 3.1.611.15
    77 * Author:  bLoyal
    88 */
  • bloyal/trunk/readme.txt

    r2933777 r2949512  
    66WC tested up to: 7.7.2
    77Requires PHP: 5.6
    8 Stable tag: 3.1.611.14
     8Stable tag: 3.1.611.15
    99License: GPLv2 or later
    1010
     
    115115*Release Date - 12 June 2023*
    116116
     117= 3.1.611.15 =
     118*Release Date - 08 August 2023*
     119
    117120== Changes ==
    118121
    119 This plugin supports up to PHP 8.1 version
     122This plugin supports up to PHP 8.1 version.
     123Fixed sales price issue on cart page.
    120124
    121125== Support ==
     
    127131== Upgrade Notice ==
    128132
    129 = 3.1.611.14 =
     133= 3.1.611.15 =
    130134
    131135* [Compatibility] - WP 6.2
Note: See TracChangeset for help on using the changeset viewer.