Changeset 3020409
- Timestamp:
- 01/11/2024 02:23:55 PM (2 years ago)
- Location:
- extendago-wp-connection/trunk
- Files:
-
- 4 edited
-
extendago-wp-connection.php (modified) (1 diff)
-
includes/admin/class-extendago-wp-connection-admin.php (modified) (2 diffs)
-
includes/cronjob/class-extendago-cronjob-functions.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
extendago-wp-connection/trunk/extendago-wp-connection.php
r3019318 r3020409 4 4 Plugin URI: http://www.arture.nl/extendago 5 5 Description: The Wordpress plugin for connecting Woocommerce with Extenda GO / Wallmob. You can manage your products inside Extenda GO or make your webshop as leading foor product manangement. You Stock changes will be two-way binding. 6 Version: 1.4. 56 Version: 1.4.6 7 7 Author: Arture B.V. 8 8 Author URI: https://arture.nl/ -
extendago-wp-connection/trunk/includes/admin/class-extendago-wp-connection-admin.php
r3019318 r3020409 774 774 <td> 775 775 <select name="<?php echo $VatRate['id']; ?>"> 776 <option value="null"><?php echo __( 'Select tax rate', 'extendago-wp-connection-plugin' ); ?></option> 776 <option value=""><?php echo __( 'Select tax rate', 'extendago-wp-connection-plugin' ); ?></option> 777 <option value="null">Default <?php echo $default_tax; ?>%</option> 777 778 <?php 778 779 // Iterate Woocommerce vat rates … … 791 792 </table> 792 793 <div class="info"><span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> 793 <?php echo __(' Leave blank if you want to use the default VAT rate of Woocommerce: ', 'extendago-wp-connection-plugin') . $default_tax . '%'; ?>794 <?php echo __('Important: If not set these VAT rates VAT value will be empty and no VAT is be calculated!', 'extendago-wp-connection-plugin'); ?> 794 795 </div> 795 796 <?php -
extendago-wp-connection/trunk/includes/cronjob/class-extendago-cronjob-functions.php
r3019700 r3020409 282 282 $products_query = new WP_Query( $args ); 283 283 284 $extendago_costs_field = get_option('extendago_costs_field'); 285 284 286 $products = array(); 285 287 foreach( $products_query->posts as $product_id ){ … … 398 400 } 399 401 400 $ product_data['variations'][]= array(402 $variant_data = array( 401 403 'id' => $product_variation_id, 402 404 'product_variant_name' => $product_variant_name, … … 408 410 'vat_rate_id' => $vat_rate_id, 409 411 ); 412 413 // Costs of goods 414 if ( isset($extendago_costs_field) && !empty($extendago_costs_field) ) { 415 $variant_data['cost_price'] = get_post_meta($product_variation_id, $extendago_costs_field, true); 416 } 417 418 $product_data['variations'][] = $variant_data; 419 410 420 } 411 421 } … … 416 426 $product_data['quantity'] = $product->get_stock_quantity(); 417 427 $product_data['status'] = $product->get_stock_status(); 428 } 429 430 // Costs of goods 431 if ( isset($extendago_costs_field) && !empty($extendago_costs_field) ) { 432 $cost_price = get_post_meta($product->get_id(), $extendago_costs_field, true); 433 $product_data['cost_price'] = number_format(((float)$cost_price * 100), 0, '.', ''); 418 434 } 419 435 -
extendago-wp-connection/trunk/readme.txt
r3019318 r3020409 5 5 Requires at least: 6.0 6 6 Tested up to: 6.4.2 7 Stable tag: 1.4. 57 Stable tag: 1.4.6 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 31 31 == Changelog == 32 32 33 = 1.4.6 = 34 * Some small improvements and tooltips 35 33 36 = 1.4.5 = 34 37 * New feature for processing costs price
Note: See TracChangeset
for help on using the changeset viewer.