Changeset 2993221
- Timestamp:
- 11/09/2023 01:53:39 PM (2 years ago)
- Location:
- makecommerce/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (2 diffs)
-
makecommerce.php (modified) (3 diffs)
-
payment/gateway/woocommerce/methods.php (modified) (3 diffs)
-
payment/gateway/woocommerce/woocommerce.php (modified) (1 diff)
-
shipping/label.php (modified) (2 diffs)
-
shipping/shipping.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
makecommerce/trunk/README.txt
r2988356 r2993221 4 4 Requires at least: 5.6.1 5 5 Tested up to: 6.3.2 6 Stable tag: 3.3. 06 Stable tag: 3.3.1 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 71 71 72 72 == Changelog == 73 74 = 3.3.1 2023-11-09 = 75 * Fix - Shipment credentials pickup fix for LV and LT 76 * Fix - Separate credit card payment method identifiers in checkout list view 73 77 74 78 = 3.3.0 2023-11-03 = -
makecommerce/trunk/makecommerce.php
r2988356 r2993221 10 10 * Plugin URI: https://makecommerce.net/ 11 11 * Description: Adds MakeCommerce payment gateway and Itella/Omniva/DPD parcel machine shipping methods to WooCommerce checkout 12 * Version: 3.3. 012 * Version: 3.3.1 13 13 * Author: Maksekeskus AS 14 14 * Author URI: https://makecommerce.net/ … … 20 20 * Requires PHP: 7.4 21 21 * WC requires at least: 5.0.0 22 * WC tested up to: 6.1.122 * WC tested up to: 8.2.1 23 23 */ 24 24 … … 32 32 * Start at version 3.0.0 and use SemVer - https://semver.org 33 33 */ 34 define( 'MAKECOMMERCE_VERSION', '3.3. 0' );34 define( 'MAKECOMMERCE_VERSION', '3.3.1' ); 35 35 define( 'MAKECOMMERCE_PLUGIN_ID', 'makecommerce' ); 36 36 -
makecommerce/trunk/payment/gateway/woocommerce/methods.php
r2988356 r2993221 394 394 * @since 3.0.1 395 395 */ 396 private function list_version_item( $method, $card = false ) {397 398 $banklink_ id = $method->country.'_'.$method->name;396 private function list_version_item( $method, $card = false, $country = '' ) { 397 398 $banklink_value = $banklink_id = $method->country.'_'.$method->name; 399 399 if ( $card ) { 400 $banklink_id = "card_" . $method->name; 400 $banklink_value = 'card_' . $method->name; 401 $banklink_id = 'card_' . $method->name . '_' . $country; 401 402 } 402 403 … … 417 418 echo ' 418 419 <div class="payment_method_list_item_container"> 419 <input type="radio" id="makecommerce_method_picker_'. $banklink_id .'" name="PRESELECTED_METHOD_'. $this->id .'" value="'. $banklink_ id.'"/>420 <input type="radio" id="makecommerce_method_picker_'. $banklink_id .'" name="PRESELECTED_METHOD_'. $this->id .'" value="'. $banklink_value .'"/> 420 421 421 422 <label for="makecommerce_method_picker_' . $banklink_id . '"> … … 511 512 if ( $this->is_allowed_method( $method, $cartTotal ) ) { 512 513 if ( $this->settings['ui_mode'] == 'inline' ) { 513 $this->list_version_item( $method, true );514 $this->list_version_item( $method, true, $country ); 514 515 } else { 515 516 $this->widget_version_item( $method, true ); -
makecommerce/trunk/payment/gateway/woocommerce/woocommerce.php
r2988356 r2993221 14 14 15 15 public $id = MAKECOMMERCE_PLUGIN_ID; 16 public $version = '3.3. 0';16 public $version = '3.3.1'; 17 17 18 18 public $payment_return_url; -
makecommerce/trunk/shipping/label.php
r2988356 r2993221 103 103 $transport_class = new $shipping_classes_map[$shipping_class]($shipping_instance); 104 104 $carrier_uc = mb_strtoupper( $transport_class->carrier_id ); 105 106 //change carrier_uc if it has been set in the interface. 107 if ( isset( $transport_class->settings['service_carrier'] ) ) { 108 $carrier_uc = $transport_class->settings['service_carrier']; 109 } 105 110 106 111 if ( empty( $shipping_request['credentials'][$carrier_uc] ) ) { … … 108 113 // Move on to next post if the function returned empty values 109 114 if ( empty( $shipping_request['credentials'][$carrier_uc] ) && empty( $transport_class->settings['use_mk_contract'] ) ) { 110 $this->loader->add_action( 'admin_notices', $this, 'mk_admin_error' );111 115 continue; 112 116 } -
makecommerce/trunk/shipping/shipping.php
r2988356 r2993221 443 443 $carrier_uc = mb_strtoupper( $transport_class->carrier_id ); 444 444 445 //change carrier_uc if it has been set in the interface. 446 if ( isset( $transport_class->settings['service_carrier'] ) ) { 447 $carrier_uc = $transport_class->settings['service_carrier']; 448 } 449 445 450 if ( empty( $shipping_request['credentials'][$carrier_uc] ) ) { 446 451 $shipping_request = $this->set_shipping_request_credentials( $carrier_uc, $transport_class, $shipping_request ); 447 452 // Move on to next post if the function returned empty values 448 453 if ( empty( $shipping_request['credentials'][$carrier_uc] ) && empty( $transport_class->settings['use_mk_contract'] ) ) { 449 add_action( 'admin_notices', 'mk_admin_error' );450 454 continue; 451 455 } … … 814 818 public function set_shipping_request_credentials( $carrier_uc, $transport_class, $shipping_request ) 815 819 { 816 //change carrier_uc if it has been set in the interface.817 if ( isset( $transport_class->settings['service_carrier'] ) ) {818 $carrier_uc = $transport_class->settings['service_carrier'];819 }820 821 820 // Carrier is smartpost and the api key is set 822 821 if ( $carrier_uc === "SMARTPOST"
Note: See TracChangeset
for help on using the changeset viewer.