Changeset 3493773
- Timestamp:
- 03/29/2026 10:44:30 AM (8 days ago)
- Location:
- hungarian-pickup-points-for-woocommerce/trunk
- Files:
-
- 9 edited
-
includes/class-cod.php (modified) (1 diff)
-
includes/class-settings.php (modified) (1 diff)
-
includes/providers/class-csomagpiac.php (modified) (2 diffs)
-
includes/providers/class-expressone.php (modified) (5 diffs)
-
includes/providers/class-gls.php (modified) (1 diff)
-
includes/providers/class-kvikk.php (modified) (1 diff)
-
includes/providers/class-sameday.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
hungarian-pickup-points-for-woocommerce/trunk/includes/class-cod.php
r3418917 r3493773 138 138 139 139 //Set tax class 140 $standard_tax_class = ''; 140 141 $shipping_tax_rate = WC()->cart->get_cart_item_tax_classes_for_shipping(); 141 142 $cod_tax_rate = VP_Woo_Pont_Helpers::get_option('cod_tax_class', ''); 142 143 if($cod_tax_rate == 'inherit' && $shipping_tax_rate && is_array($shipping_tax_rate) && count($shipping_tax_rate) > 0) { 143 144 $cod_tax_rate = $shipping_tax_rate[0]; 145 146 //Standard class takes priority over any other tax class. 147 if ( in_array( $standard_tax_class, $shipping_tax_rate, true ) ) { 148 $cod_tax_rate = $standard_tax_class; 149 } 144 150 } 145 151 -
hungarian-pickup-points-for-woocommerce/trunk/includes/class-settings.php
r3405941 r3493773 361 361 } 362 362 } 363 363 364 update_option('vp_woo_pont_home_delivery', $home_delivery); 364 365 -
hungarian-pickup-points-for-woocommerce/trunk/includes/providers/class-csomagpiac.php
r3470331 r3493773 291 291 } 292 292 293 if($data['provider'] == 'csomagpiac_ sameday') {293 if($data['provider'] == 'csomagpiac_foxpost') { 294 294 $services[] = array( 295 'name' => ' sameday_easybox',295 'name' => 'foxpost_csomagpont', 296 296 'value' => $data['point_id'] 297 297 ); … … 323 323 324 324 //Extra services 325 if($extra_services = VP_Woo_Pont_Helpers::get_option('csomagpiac_extra_services') ) {325 if($extra_services = VP_Woo_Pont_Helpers::get_option('csomagpiac_extra_services') && $data['provider'] != 'csomagpiac_foxpost') { 326 326 foreach($extra_services as $extra_service) { 327 327 $item['services'][] = array( -
hungarian-pickup-points-for-woocommerce/trunk/includes/providers/class-expressone.php
r3177392 r3493773 86 86 ), 87 87 array( 88 'type' => 'text', 89 'title' => __('Value insurance limit', 'vp-woo-pont'), 90 'default' => 50000, 91 'desc_tip' => __('If empty, it will be the order total up to 50.000 HUF. If you need a higher maximum limit, enter that here.', 'vp-woo-pont'), 92 'id' => 'expressone_insurance_limit' 93 ), 94 array( 88 95 'type' => 'sectionend', 89 96 ), … … 97 104 //Get order details 98 105 $order = wc_get_order($data['order_id']); 106 $comment = VP_Woo_Pont()->labels->get_package_contents_label($data, 'expressone'); 99 107 100 108 //Set package weight … … 125 133 'delivery_type' => ($data['point_id']) ? 'D2S' : '24H', 126 134 'insurance' => array( 127 'enable' => true,135 'enable' => false, 128 136 'parcel_price' => (double) $order->get_total() //Net order total 129 137 ), … … 134 142 ), 135 143 'ref_number' => $data['reference_number'], 136 'note' => '',144 'note' => $comment, 137 145 'invoice_number' => $data['invoice_number'], 138 146 ) … … 144 152 ) 145 153 ); 154 155 //Set maximum insurance value 156 if($insurance_limit = VP_Woo_Pont_Helpers::get_option('expressone_insurance_limit', 50000)) { 157 if($data['package']['total'] > $insurance_limit) { 158 $item['deliveries'][0]['services']['insurance']['enabled'] = true; 159 $item['deliveries'][0]['services']['insurance']['parcel_price'] = $insurance_limit; 160 } 161 } 146 162 147 163 //If package count set -
hungarian-pickup-points-for-woocommerce/trunk/includes/providers/class-gls.php
r3435268 r3493773 410 410 if($data['point_id'] && $order->get_shipping_country() != 'HU') { 411 411 $provider_id = $data['order']->get_meta('_vp_woo_pont_provider'); 412 $point = VP_Woo_Pont()->find_point_info($provider_id, $data['point_id'] );412 $point = VP_Woo_Pont()->find_point_info($provider_id, $data['point_id'], $order->get_shipping_country()); 413 413 if($point) { 414 414 $parcel['DeliveryAddress']['Street'] = $point['addr']; -
hungarian-pickup-points-for-woocommerce/trunk/includes/providers/class-kvikk.php
r3466977 r3493773 1917 1917 1918 1918 public function get_enabled_countries() { 1919 $countries = array_keys(get_option('vp_woo_pont_kvikk_countries', array('HU' => 'Hungary'))); 1919 $saved_countries = get_option('vp_woo_pont_kvikk_countries', array('HU' => 'Hungary')); 1920 if(!is_array($saved_countries)) { 1921 $saved_countries = array('HU' => 'Hungary'); 1922 } 1923 $countries = array_keys($saved_countries); 1920 1924 return $countries; 1921 1925 } -
hungarian-pickup-points-for-woocommerce/trunk/includes/providers/class-sameday.php
r3435268 r3493773 289 289 //Set a different service code for international home delivery shipments 290 290 if($order->get_shipping_country() != 'HU') { 291 $item['service'] = 28; 291 $item['service'] = 28; //Crossborder HD 24H 292 292 } 293 293 -
hungarian-pickup-points-for-woocommerce/trunk/index.php
r3470354 r3493773 8 8 Text Domain: vp-woo-pont 9 9 Domain Path: /languages/ 10 Version: 4.1. 110 Version: 4.1.2 11 11 WC requires at least: 7.0 12 WC tested up to: 10. 4.312 WC tested up to: 10.6.1 13 13 Requires Plugins: woocommerce 14 14 */ … … 69 69 self::$plugin_basename = plugin_basename(__FILE__); 70 70 self::$plugin_path = trailingslashit(dirname(__FILE__)); 71 self::$version = '4.1. 1';71 self::$version = '4.1.2'; 72 72 self::$plugin_url = plugin_dir_url(self::$plugin_basename); 73 73 -
hungarian-pickup-points-for-woocommerce/trunk/readme.txt
r3470331 r3493773 4 4 Requires at least: 6.0 5 5 Tested up to: 6.9 6 Stable tag: 4.1. 16 Stable tag: 4.1.2 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 56 56 57 57 == Changelog == 58 59 4.1.2 60 * Csomagpiac Foxpost javítás 61 * Utánvét díj áfakulcs javítás 62 * ExpressOne címke megjegyzés mező 63 * GLS külföldi címkegenerálás javítás 64 * Express One maximum biztosítás összeg beállítás 65 * Sameday csomagpont lista import javítás 58 66 59 67 4.1.1
Note: See TracChangeset
for help on using the changeset viewer.