Plugin Directory

Changeset 3020847


Ignore:
Timestamp:
01/12/2024 08:25:06 AM (2 years ago)
Author:
extendago
Message:

Version 1.4.7

Location:
extendago-wp-connection/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • extendago-wp-connection/trunk/extendago-wp-connection.php

    r3020409 r3020847  
    44Plugin URI:  http://www.arture.nl/extendago
    55Description: 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.6
     6Version:     1.4.7
    77Author:      Arture B.V.
    88Author URI:  https://arture.nl/
  • extendago-wp-connection/trunk/includes/admin/class-extendago-wp-connection-admin.php

    r3020409 r3020847  
    775775                                    <select name="<?php echo $VatRate['id']; ?>">
    776776                                        <option value=""><?php echo __( 'Select tax rate', 'extendago-wp-connection-plugin' ); ?></option>
    777                                         <option value="null">Default <?php echo $default_tax; ?>%</option>
     777                                        <option value="null" <?php echo ( isset( $value ) && $value == 'null' ) ? 'selected=selected' : ''; ?>>Default <?php echo $default_tax; ?>%</option>
    778778                                        <?php
    779779                                        // Iterate Woocommerce vat rates
  • extendago-wp-connection/trunk/includes/cronjob/class-extendago-cronjob-functions.php

    r3020409 r3020847  
    413413                            // Costs of goods
    414414                            if ( isset($extendago_costs_field) && !empty($extendago_costs_field) ) {
    415                                 $variant_data['cost_price'] = get_post_meta($product_variation_id, $extendago_costs_field, true);
     415                                $cost_price = get_post_meta($product_variation_id, $extendago_costs_field, true);
     416                                $variant_data['cost_price'] = number_format(((float)$cost_price * 100), 0, '.', '');
    416417                            }
    417418
  • extendago-wp-connection/trunk/includes/woocommerce/class-extendago-woocommerce-functions.php

    r3019318 r3020847  
    192192        // Costs of goods
    193193        if ( isset($extendago_costs_field) && !empty($extendago_costs_field) ) {
    194             $product_data['cost_price'] = get_post_meta($product->get_id(), $extendago_costs_field, true);
     194            $cost_price = get_post_meta($product->get_id(), $extendago_costs_field, true);
     195            $product_data['cost_price'] = number_format(((float)$cost_price * 100), 0, '.', '');
    195196        }
    196197
     
    313314                        // Costs of goods
    314315                        if ( isset($extendago_costs_field) && !empty($extendago_costs_field) ) {
    315                             $variant_data['cost_price'] = get_post_meta($product_variation_id, $extendago_costs_field, true);
     316                            $cost_price = get_post_meta($product_variation_id, $extendago_costs_field, true);
     317                            $variant_data['cost_price'] = number_format(((float)$cost_price * 100), 0, '.', '');
    316318                        }
    317319
  • extendago-wp-connection/trunk/readme.txt

    r3020409 r3020847  
    55Requires at least: 6.0
    66Tested up to: 6.4.2
    7 Stable tag: 1.4.6
     7Stable tag: 1.4.7
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    3131== Changelog ==
    3232
     33= 1.4.7 =
     34* Bugfix with costprice fields and different seperators
     35
    3336= 1.4.6 =
    3437* Some small improvements and tooltips
Note: See TracChangeset for help on using the changeset viewer.