Plugin Directory

Changeset 2667946


Ignore:
Timestamp:
01/28/2022 08:54:02 AM (4 years ago)
Author:
ipol
Message:

v1.0.14

Location:
ozon-wp/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • ozon-wp/trunk/classes/ozon-wp.class.php

    r2647702 r2667946  
    879879
    880880                        // fix
    881                         $oldSerializePrecision = ini_set('serialize_precision');
     881                        $oldSerializePrecision = ini_get('serialize_precision');
    882882                        ini_set('serialize_precision', -1);
    883883
     
    13201320     * @return string
    13211321     */
    1322     private function _getDeliveryVariantId(\WC_Order $wc_order, array $point_data): string {
     1322    private function _getDeliveryVariantId(\WC_Order $wc_order, $point_data): string {
    13231323        if(!empty($point_data) && !empty($point_data['id']))
    13241324            return $point_data['id'];
  • ozon-wp/trunk/classes/shipping.class.php

    r2647702 r2667946  
    205205
    206206        $paymentGatewayes = WC()->payment_gateways();
     207        if ($paymentGatewayes && !is_array($paymentGatewayes)){
     208            $paymentGatewayes = array($paymentGatewayes);
     209        }
    207210        if (is_array($paymentGatewayes) && count($paymentGatewayes)>0) {
    208211            $wc_gateways = array_filter(WC()->payment_gateways->get_available_payment_gateways(), function($gateway) {
     
    338341     */
    339342    public function calculate_shipping($package = array()) {
     343
     344        // \WordPress\Ozon\Ozon_WP::actionEveryMinuteEvent();
     345        // \WordPress\Ozon\Ozon_WP::actionHourlyEvent();
     346
    340347        if(!empty($this->settings['client_id']) && !empty($this->settings['client_secret'])) {
    341348            $location_parts = [];
  • ozon-wp/trunk/ozon-wp.php

    r2647702 r2667946  
    44Plugin URI:
    55Description: Ozon — ведущий игрок на рынке и одна из самых дорогих российских интернет-компаний по версии Forbes. Мы предоставляем клиентам самый широкий выбор товаров и доставляем их до двери во всех 11 часовых поясах России.
    6 Version: 1.0.13
     6Version: 1.0.14
    77Author URI: https://ipol.ru
    88Text Domain: ozon-wp
     
    1616    exit; // Exit if accessed directly
    1717
    18 const OZON_PLUGIN_VERSION = '1.0.13';
     18const OZON_PLUGIN_VERSION = '1.0.14';
    1919const OZON_CHECK_VERSION_URL = 'http://ozon-wp.ipol.tech/update/version.php';
    2020const OZON_PLUGIN_REQUIRES = '5.0';
  • ozon-wp/trunk/readme.txt

    r2647703 r2667946  
    6363* Доработки и исправления
    6464
     65= 1.0.13 =
     66* Исправлена ошибка возникающая при отправке заявок на доставку курьером
     67* Исправлена связанная с определением платежных систем сайта
     68
    6569== Upgrade Notice ==
    6670
Note: See TracChangeset for help on using the changeset viewer.