Plugin Directory

Changeset 3251189


Ignore:
Timestamp:
03/05/2025 03:04:11 PM (13 months ago)
Author:
eshoplogistic
Message:

Исправлена ошибка в работе с купонами

Location:
eshoplogisticru/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • eshoplogisticru/trunk/Models/OfferData.php

    r3210317 r3251189  
    5454    }
    5555
     56    public function getPriceProductLineTotal()
     57    {
     58        $lineTotal = $this->get('line_total');
     59        $count = $this->getQuantity();
     60
     61        return $lineTotal / $count;
     62    }
     63
    5664    public function getPrice()
    5765    {
  • eshoplogisticru/trunk/Services/CalculationService.php

    r3001180 r3251189  
    7474            'name' => $offer->getName(),
    7575            'count' => $offer->getQuantity(),
    76             'price' => $offer->getPrice(),
     76            'price' => $offer->getPriceProductLineTotal(),
    7777            'weight' => $offer->getWeight(),
    7878            'dimensions' => $offer->getDimensions(),
  • eshoplogisticru/trunk/readme.txt

    r3249790 r3251189  
    33Tags: доставка, eshoplogisticru, woocommerce, цена доставки, срок доставки, стоимость доставки, сдэк, пэк, dostavista, picpoint, деловые линии, iml, boxberry, gtd, байкалсервис, сберлогистика, delivery, яндекс доставка
    44Tested up to: 6.71
    5 Stable tag: 2.1.50
     5Stable tag: 2.1.51
    66License: GPLv2
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • eshoplogisticru/trunk/wc-eshop-logistic.php

    r3249790 r3251189  
    66 *
    77 * @link              https://wp.eshoplogistic.ru/
    8  * @since             2.1.50
     8 * @since             2.1.51
    99 * @package           WC_Eshop_Logistic
    1010 *
     
    1313 * Plugin URI:        https://wp.eshoplogistic.ru/
    1414 * Description:       Несколько служб доставки в одной интеграции: CDEK, DPD, Boxberry, IML, Почта России, Деловые Линии, ПЭК, Dostavista, GTD, Байкал Сервис и др.
    15  * Version:           2.1.50
     15 * Version:           2.1.51
    1616 * Author:            eShopLogistic
    1717 * Author URI:        https://eshoplogistic.ru/p747575
     
    4242define( 'WC_ESL_PLUGIN_DIR', plugin_dir_path(__FILE__) );
    4343
    44 define( 'WC_ESL_VERSION', '2.1.50' );
     44define( 'WC_ESL_VERSION', '2.1.51' );
    4545
    4646define( 'WC_ESL_DOMAIN', 'wc-esl' );
Note: See TracChangeset for help on using the changeset viewer.