Plugin Directory

Changeset 2801237


Ignore:
Timestamp:
10/19/2022 01:02:12 PM (3 years ago)
Author:
sendbox
Message:

feature to shipping quotes based on store currency

Location:
sendbox-shipping/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sendbox-shipping/trunk/README.txt

    r2776142 r2801237  
    126126<p>new update</p>
    127127
     128<b>3.3.5</b>
     129<p>Get shipping quotes based on store currency</p>
     130
     131
    128132<h3> Arbitrary section </h3>
    129133
  • sendbox-shipping/trunk/includes/class-wooss-shipping-method.php

    r2742157 r2801237  
    115115                        wc_add_notice( sprintf( '<strong>Unable to get shipping fees at this time.</strong>' ), 'error' );
    116116                    }
     117
    117118                    //MAKING CHANGES HERE
    118119                    //$origin_country = 'Nigeria';// get_option('wooss_country');
     
    156157                    $destination_country = wooss_get_countries( $package, 'country' );
    157158                    $destination_state   = wooss_get_countries( $package, 'state' );
     159                    $currency = get_option('woocommerce_currency');
    158160
    159161                    if ( preg_match( '/\s\(\w+\)/', $destination_country ) == true ) {
     
    199201                        'incoming_option_code'  => $incoming_option_code,
    200202                        'pickup_date'           => $pickup_date,
     203                        'currency'              => $currency,
    201204                    );
    202205
     
    213216
    214217                    $quoted_fee = $quotes_fee + $wooss_extra_fees;
     218                   
    215219
    216220                    /*
     
    222226                    $payload_array_data['destination_state']   = $destination_state;
    223227                    $payload_array_data['destination_city']    = $destination_city;
     228                    $payload_array_data['currency'] = $currency;
    224229
    225230                    if ( (int)$quoted_fee == 0 ) {
     
    233238                        $quoted_fee = $quotes_fee + $wooss_extra_fees;
    234239                    }
     240                   
    235241
    236242                    $new_rate = array(
     
    659665                break;
    660666
     667                case 'currency':
     668                    $payload_data->currency = $value;
     669                    break;
     670
    661671            default:
    662672                break;
  • sendbox-shipping/trunk/wooss.php

    r2776142 r2801237  
    1616 * Plugin URI:        #
    1717 * Description:       This is a woocommerce plugin that enables you ship from your store to anywhere in the world.
    18  * Version:           3.3.4
     18 * Version:           3.3.5
    1919 * Author:            sendbox
    2020 * Author URI:        https://sendbox.ng/
     
    3535 * Rename this for your plugin and update it as you release new versions.
    3636 */
    37 define('WOOSS_VERSION', '3.3.3');
     37define('WOOSS_VERSION', '3.3.5');
    3838
    3939/**
Note: See TracChangeset for help on using the changeset viewer.