Changeset 2739850
- Timestamp:
- 06/09/2022 10:35:19 AM (4 years ago)
- Location:
- ozon-wp/trunk
- Files:
-
- 3 edited
-
classes/ozon-wp.class.php (modified) (6 diffs)
-
ozon-wp.php (modified) (2 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ozon-wp/trunk/classes/ozon-wp.class.php
r2728416 r2739850 147 147 wp_schedule_event(time(), 'od_every_minute', 'od_every_minute_event'); 148 148 wp_schedule_event(time(), 'hourly', 'od_hourly_event'); 149 delete_option('ozon -token');150 delete_option('ozon -update-date');149 delete_option('ozon_token'); 150 delete_option('ozon_update_date'); 151 151 } 152 152 … … 162 162 wp_clear_scheduled_hook('od_every_minute_event'); 163 163 wp_clear_scheduled_hook('od_hourly_event'); 164 delete_option('ozon -token');165 delete_option('ozon -update-date');164 delete_option('ozon_token'); 165 delete_option('ozon_update_date'); 166 166 } 167 167 … … 224 224 */ 225 225 public function actionEveryMinuteEvent() { 226 if(get_option('ozon -update-date', null) != date('Y-m-d')) {226 if(get_option('ozon_update_date', null) != date('Y-m-d')) { 227 227 require_once(OZON_PLUGIN_DIR.'classes/shipping.class.php'); 228 228 … … 239 239 240 240 $app->setCache(false); 241 $response = $app->deliveryVariants(null, true, false, 500, get_option('ozon -token', null));241 $response = $app->deliveryVariants(null, true, false, 500, get_option('ozon_token', null)); 242 242 243 243 if ($response->isSuccess()) { … … 299 299 } 300 300 301 update_option('ozon -token', $response->getNextPageToken());301 update_option('ozon_token', $response->getNextPageToken()); 302 302 303 303 global $wpdb; … … 305 305 $wpdb->query("REPLACE INTO `{$wpdb->base_prefix}ozon_delivery_variants` VALUES (" . implode('),(', $values) . ')'); 306 306 } else { 307 delete_option('ozon -token');308 update_option('ozon -update-date', date('Y-m-d'));307 delete_option('ozon_token'); 308 update_option('ozon_update_date', date('Y-m-d')); 309 309 } 310 310 } -
ozon-wp/trunk/ozon-wp.php
r2728416 r2739850 4 4 Plugin URI: 5 5 Description: Ozon — ведущий игрок на рынке и одна из самых дорогих российских интернет-компаний по версии Forbes. Мы предоставляем клиентам самый широкий выбор товаров и доставляем их до двери во всех 11 часовых поясах России. 6 Version: 1.0.2 16 Version: 1.0.22 7 7 Author URI: https://ipol.ru 8 8 Text Domain: ozon-wp … … 16 16 exit; // Exit if accessed directly 17 17 18 const OZON_PLUGIN_VERSION = '1.0.2 0';18 const OZON_PLUGIN_VERSION = '1.0.22'; 19 19 const OZON_CHECK_VERSION_URL = 'http://ozon-wp.ipol.tech/update/version.php'; 20 20 const OZON_PLUGIN_REQUIRES = '5.0'; -
ozon-wp/trunk/readme.txt
r2728416 r2739850 90 90 * Подключение js-скриптов модуля выполняется только на странице оформления заказа 91 91 92 = 1.0.22 = 93 * Исправлена проблема, приводящая, в некоторых случаях, к ошибке при импорте данных. 94 92 95 == Upgrade Notice == 93 96
Note: See TracChangeset
for help on using the changeset viewer.