Skip to content

Commit

Permalink
release 9.3 (#475)
Browse files Browse the repository at this point in the history
- Тест совместимости WooCommerce 8.2.0
- Реализация новой версии REST API MoySklad (пока частично)
- Актуальные ссылки на услуги
  • Loading branch information
aiiddqd authored Oct 16, 2023
1 parent e2f51fb commit 3518cb3
Show file tree
Hide file tree
Showing 658 changed files with 1,272 additions and 27,900 deletions.
45 changes: 38 additions & 7 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,43 @@
tests
/.wordpress-org
/.git
/.github
/node_modules
# A set of files you probably don't want in your WordPress.org distribution
.babelrc
.deployignore
.distignore
.editorconfig
.eslintignore
.eslintrc
.git
.gitignore
.github
.gitlab-ci.yml
.travis.yml
.DS_Store
.*~
Thumbs.db
behat.yml
bitbucket-pipelines.yml
bin
.circleci/config.yml
composer.json
composer.lock
dependencies.yml
Gruntfile.js
package.json
package-lock.json
phpunit.xml
phpunit.xml.dist
docs
.editorconfig
multisite.xml
multisite.xml.dist
.phpcs.xml
phpcs.xml
.phpcs.xml.dist
phpcs.xml.dist
README.md
webpack.config.js
wp-cli.local.yml
yarn.lock
tests
vendor
node_modules
*.sql
*.tar.gz
*.zip
19 changes: 13 additions & 6 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org

# WordPress Coding Standards
# https://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_size = 4

[**.js]
[{.jshintrc,*.json,*.yml}]
indent_style = space
indent_size = 2

[**.php]
indent_style = space
indent_size = 2
[{*.txt,wp-config-sample.php}]
end_of_line = crlf
9 changes: 3 additions & 6 deletions includes/CurrencyConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ public static function chg_price($price, $data_api, $product_id, $price_meta)
}

if (!$currency = get_transient('wooms_currency_api')) {
$url = 'https://online.moysklad.ru/api/remap/1.2/entity/currency/';
$currency = wooms_request($url);
$currency = request('entity/currency/');
set_transient('wooms_currency_api', $currency, HOUR_IN_SECONDS);
}

Expand Down Expand Up @@ -67,8 +66,7 @@ public static function chg_price($price, $data_api, $product_id, $price_meta)

public static function update_price_by_rate($price = 0, $api_currency = 'RUB'){
if (!$currency = get_transient('wooms_currency_api')) {
$url = 'https://online.moysklad.ru/api/remap/1.2/entity/currency/';
$currency = wooms_request($url);
$currency = request('entity/currency');
set_transient('wooms_currency_api', $currency, HOUR_IN_SECONDS);
}

Expand All @@ -95,8 +93,7 @@ public static function get_currency_code_price_meta($price_meta = [])
$price_currency_href = $price_meta['currency']['meta']['href'];

if (!$currency = get_transient('wooms_currency_api')) {
$url = 'https://online.moysklad.ru/api/remap/1.2/entity/currency/';
$currency = wooms_request($url);
$currency = request('entity/currency');
set_transient('wooms_currency_api', $currency, HOUR_IN_SECONDS);
}

Expand Down
Loading

0 comments on commit 3518cb3

Please sign in to comment.