Changeset 2877222
- Timestamp:
- 03/09/2023 01:43:43 PM (3 years ago)
- Location:
- extendago-wp-connection/trunk
- Files:
-
- 3 edited
-
extendago-wp-connection.php (modified) (1 diff)
-
includes/cronjob/class-extendago-cronjob-functions.php (modified) (6 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
extendago-wp-connection/trunk/extendago-wp-connection.php
r2868646 r2877222 4 4 Plugin URI: http://www.arture.nl/extendago 5 5 Description: The Wordpress plugin for connecting Woocommerce with Extendago / Wallmob. Manage your products inside Extendago and let our connection do the magic. 6 Version: 1.2. 86 Version: 1.2.9 7 7 Author: Arture B.V. 8 8 Author URI: https://arture.nl/ -
extendago-wp-connection/trunk/includes/cronjob/class-extendago-cronjob-functions.php
r2868646 r2877222 657 657 'type_id' => '523', 658 658 'retail_price' => number_format(((float)$product['price'] * 100), 0, '.', ''), // price in cents 659 //'cost_price' => '0',660 659 'product_id' => $product['id'], 661 660 'price_region_id' => $price_region_id, … … 691 690 'type_id' => '523', 692 691 'retail_price' => number_format(((float)$variation->retail_price * 100), 0, '.', ''), // price in cents 693 //'cost_price' => '0',694 692 'product_id' => $product['id'], 695 693 'price_region_id' => $price_region_id, … … 710 708 'product_data' => array( 711 709 array( 710 'id' => 'product_data-'.$variation->id, 712 711 'type_id' => '523', 713 712 'retail_price' => number_format(((float)$variation->retail_price * 100), 0, '.', ''), // price in cents 714 //'cost_price' => '0',715 713 'product_id' => $product['id'], 716 714 'product_variant_id' => $variation->id, … … 736 734 } 737 735 else{ 738 739 740 // echo '<pre>';741 // print_r('PATCH');742 // echo '<pre>';743 // echo '<pre>';744 // print_r($ExtendagoProductJSON);745 // echo '<pre>';746 747 736 $ProductResponse = $Extendago->CurlRequest('/products/'.$product['id'], 'PATCH', $ExtendagoProductJSON, false, true); 748 737 } 749 750 // echo '<pre>';751 // print_r($ProductResponse);752 // echo '<pre>';753 // exit;754 738 755 739 if( empty($ProductResponse) || isset($ProductResponse['error']) ){ … … 814 798 $Response = $Extendago->CurlRequest('/stock_values?filter-product_variant_id='.$product_variant['id'], 'GET'); 815 799 $stock_value = array( 800 'id' => 'stock_value-'.$product_variant['id'], 816 801 'quantity' => $variation->stock, 817 802 'product_id' => $product['id'], … … 831 816 $Response = $Extendago->CurlRequest('/stock_values?filter-product_id='.$product['id'], 'GET'); 832 817 $stock_value = array( 818 'id' => 'stock_value-'.$product['id'], 833 819 'quantity' => $product['quantity'], 834 820 'product_id' => $product['id'], -
extendago-wp-connection/trunk/readme.txt
r2868646 r2877222 5 5 Requires at least: 6.0 6 6 Tested up to: 6.1.1 7 Stable tag: 1.2. 87 Stable tag: 1.2.9 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 30 30 31 31 == Changelog == 32 33 = 1.2.9 = 34 * Bugfix for updating products and existing cost_price inside Wallmob 32 35 33 36 = 1.2.8 =
Note: See TracChangeset
for help on using the changeset viewer.