Changeset 2817460
- Timestamp:
- 11/14/2022 07:57:01 AM (3 years ago)
- Location:
- doshii/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (2 diffs)
-
doshii_function.php (modified) (1 diff)
-
include/woo-doshii-initialise.php (modified) (1 diff)
-
include/woo-doshii-product-sync.php (modified) (1 diff)
-
include/woo-order-api.php (modified) (8 diffs)
-
include/woo-order-status.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
doshii/trunk/README.txt
r2814409 r2817460 5 5 Requires at least: 4.7 6 6 Tested up to: 5.8.0 7 Stable tag: 2.5. 17 Stable tag: 2.5.2 8 8 Requires PHP: 7.0 9 9 License: GPLv2 or later … … 59 59 60 60 == Changelog == 61 62 = 2.5.2 = 63 64 Improved support for Doshii's virtual items within product attributes and PPOM fields 61 65 62 66 = 2.5.1 = -
doshii/trunk/doshii_function.php
r2814409 r2817460 7 7 Author URI: https://www.doshii.io 8 8 Contributors: 9 Version: 2.5. 19 Version: 2.5.2 10 10 */ 11 11 -
doshii/trunk/include/woo-doshii-initialise.php
r2814409 r2817460 40 40 'x-doshii-location-id' => $locationId.'', 41 41 'content-Type' => 'application/json', 42 'x-doshii-writeout' => 'WooCommerce 2.5. 1',42 'x-doshii-writeout' => 'WooCommerce 2.5.2', 43 43 ); 44 44 -
doshii/trunk/include/woo-doshii-product-sync.php
r2814409 r2817460 48 48 'x-doshii-location-id' => $locationId.'', 49 49 'content-Type' => 'application/json', 50 'x-doshii-writeout' => 'WooCommerce 2.5. 1',50 'x-doshii-writeout' => 'WooCommerce 2.5.2', 51 51 ) 52 52 )); -
doshii/trunk/include/woo-order-api.php
r2814409 r2817460 305 305 306 306 $variant_name = $meta->value; 307 $variant_posId = ''; 307 308 if (!empty($option_posId)) { 308 309 $doshii_product_variant_tbl = $wpdb->prefix . 'doshii_product_variant'; … … 313 314 $variant_posId = $doshii_variant_record->doshii_product_variant_id; 314 315 $variant_name = $doshii_variant_record->doshii_product_variant_name; 316 $variant_customPosId = $doshii_variant_record->doshii_custom_id; 315 317 if (empty($variant_name)) { 316 318 $doshii_custom_variant_sql = "SELECT * FROM $doshii_product_variant_tbl where doshii_product_id = '$mappedProductId' AND doshii_product_option_id='$option_posId' AND doshii_custom_id='$metaVariantId'"; … … 319 321 $variant_posId = $doshii_custom_variant_record->doshii_product_variant_id; 320 322 $variant_name = $doshii_custom_variant_record->doshii_product_variant_name; 323 $variant_customPosId = $doshii_custom_variant_record->doshii_custom_id; 321 324 if (empty($variant_name)) { 322 325 $variant_name = $meta->value; … … 333 336 } else { 334 337 array_push($variants, (object)[ 335 'posId' => $variant_posId,338 'posId' => !empty($variant_customPosId) && strpos($variant_customPosId, "doshii:") === 0 ? $variant_customPosId : $variant_posId, 336 339 'name' => $variant_name, 337 340 'price' => 0 … … 452 455 $variant_posId = $doshii_variant_record->doshii_product_variant_id; 453 456 $variant_name = $doshii_variant_record->doshii_product_variant_name; 457 $variant_customPosId = $doshii_variant_record->doshii_custom_id; 454 458 if (empty($variant_name)) { 455 459 $doshii_custom_variant_sql = "SELECT * FROM $doshii_product_variant_tbl where doshii_product_id = '$mappedProductId' AND doshii_product_option_id='$option_posId' AND doshii_custom_id='$metaVariantId'"; … … 458 462 $variant_posId = $doshii_custom_variant_record->doshii_product_variant_id; 459 463 $variant_name = $doshii_custom_variant_record->doshii_product_variant_name; 464 $variant_customPosId = $doshii_custom_variant_record->doshii_custom_id; 460 465 if (empty($variant_name)) { 461 466 $variant_name = empty($ppomOptionVariant->label) ? $metaVariantName : $ppomOptionVariant->label; … … 470 475 } else { 471 476 array_push($variants, (object)[ 472 'posId' => $variant_posId,477 'posId' => !empty($variant_customPosId) && strpos($variant_customPosId, "doshii:") === 0 ? $variant_customPosId : $variant_posId, 473 478 'name' => $variant_name, 474 479 'price' => doshii_to_cents($ppomOptionVariant->price) … … 630 635 'accept' => 'application/json', 631 636 'Accept-encoding' => 'gzip', 632 'x-doshii-writeout' => 'WooCommerce 2.5. 1',637 'x-doshii-writeout' => 'WooCommerce 2.5.2', 633 638 ), 634 639 'body' => json_encode($doshiiOrderPayload) -
doshii/trunk/include/woo-order-status.php
r2814409 r2817460 39 39 'x-doshii-location-id' => $doshii_options['location_id'].'', 40 40 'content-Type' => 'application/json', 41 'x-doshii-writeout' => 'WooCommerce 2.5. 1',41 'x-doshii-writeout' => 'WooCommerce 2.5.2', 42 42 ) 43 43 ));
Note: See TracChangeset
for help on using the changeset viewer.