Changeset 3454930
- Timestamp:
- 02/05/2026 08:08:13 PM (2 months ago)
- Location:
- blpaczka
- Files:
-
- 6 edited
- 8 copied
-
tags/1.2.6 (copied) (copied from blpaczka/trunk)
-
tags/1.2.6/.gitignore (copied) (copied from blpaczka/trunk/.gitignore)
-
tags/1.2.6/README.md (copied) (copied from blpaczka/trunk/README.md) (4 diffs)
-
tags/1.2.6/assets/blpaczka.css (copied) (copied from blpaczka/trunk/assets/blpaczka.css)
-
tags/1.2.6/assets/shipment-form.js (copied) (copied from blpaczka/trunk/assets/shipment-form.js) (3 diffs)
-
tags/1.2.6/blpaczka.php (copied) (copied from blpaczka/trunk/blpaczka.php) (1 diff)
-
tags/1.2.6/readme.txt (copied) (copied from blpaczka/trunk/readme.txt) (1 diff)
-
tags/1.2.6/src/BLPaczkaRestRoutes.php (copied) (copied from blpaczka/trunk/src/BLPaczkaRestRoutes.php)
-
tags/1.2.6/src/BLPaczkaTemplates.php (modified) (1 diff)
-
trunk/README.md (modified) (4 diffs)
-
trunk/assets/shipment-form.js (modified) (3 diffs)
-
trunk/blpaczka.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/BLPaczkaTemplates.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
blpaczka/tags/1.2.6/README.md
r3439856 r3454930 31 31 == Installation == 32 32 33 [Szczegółowa instrukcja PDF](https://plugins-instructions.s3.eu-central-1.amazonaws.com/BLPaczka+-+wtyczka+WooCommerce.pdf) 33 [Szczegółowa instrukcja PDF](https://plugins-instructions.s3.eu-central-1.amazonaws.com/BLPaczka+-+wtyczka+WooCommerce.pdf) 34 34 35 35 Aby zainstalować wtyczkę BLPaczka w swoim sklepie WooCommerce: … … 84 84 * Możliwość wyłączenia mapy dla wybranych przewoźników 85 85 86 = 1.2.0 = 86 = 1.2.0 = 87 87 * Dodanie obsługi Flexible Shipping 88 88 * Drobne poprawki … … 106 106 * Poprawka w wyświetlaniu przycisku do wyboru punktu odbioru 107 107 * Zmiana w walidacji wyboru punktu odbioru 108 109 = 1.2.6 = 110 * Poprawka w aktualizacji mapy w checkout z shortcode 111 * Poprawka w przekazywaniu do zamówienia kwoty pobrania 108 112 109 113 == English == … … 181 185 182 186 = 1.2.1 = 183 * Fix the error when checkbox "Ship to another location" is not showed 187 * Fix the error when checkbox "Ship to another location" is not showed 184 188 185 189 = 1.2.2 = -
blpaczka/tags/1.2.6/assets/shipment-form.js
r3439856 r3454930 4 4 rate_id: null, 5 5 method_id: null, 6 instance_id: null 6 instance_id: null, 7 postcode: null 7 8 }; 8 9 const blpaczkaApiUrl = blpaczkaPublic['apiUrl']; … … 141 142 142 143 'initShortcodeCheckout' : () => { 144 const postcodeEl = $('#billing_postcode'); 145 postcodeEl.off('change.blpaczka'); 146 postcodeEl.on('change.blpaczka', function () { 147 $('body').trigger('update_checkout'); 148 }); 149 143 150 $(document.body).on('updated_checkout', async function () { 144 151 const chosenShippingMethodEl = $('input[name^="shipping_method"]:checked'); … … 150 157 rate_id: chosenShippingMethod, 151 158 method_id: chosenShippingMethodArr[0], 152 instance_id: chosenShippingMethodArr[1] 153 } 154 155 if (currentShippingMethod.rate_id !== blockCheckoutChosenShippingMethod.rate_id) { 159 instance_id: chosenShippingMethodArr[1], 160 postcode: $('#billing_postcode').val() 161 } 162 163 if ( 164 currentShippingMethod.rate_id !== blockCheckoutChosenShippingMethod.rate_id || 165 currentShippingMethod.postcode !== blockCheckoutChosenShippingMethod.postcode 166 ) { 156 167 blockCheckoutChosenShippingMethod = currentShippingMethod; 157 168 -
blpaczka/tags/1.2.6/blpaczka.php
r3439856 r3454930 349 349 $shippingTotal = floatval( $orderData['shipping_total'] ?? 0.0 ); 350 350 351 $orderSum = $orderTotal - $shippingTotal; 351 //$orderSum = $orderTotal - $shippingTotal; 352 $orderSum = $orderTotal; 352 353 353 354 $address = $orderData['shipping']['address_1'] . ' ' . $orderData['shipping']['address_2']; -
blpaczka/tags/1.2.6/readme.txt
r3439861 r3454930 107 107 * Zmiana w walidacji wyboru punktu odbioru 108 108 109 = 1.2.6 = 110 * Poprawka w aktualizacji mapy w checkout z shortcode 111 * Poprawka w przekazywaniu do zamówienia kwoty pobrania 112 109 113 == English == 110 114 -
blpaczka/tags/1.2.6/src/BLPaczkaTemplates.php
r3220233 r3454930 237 237 function BLPaczka_delete_template() 238 238 { 239 $template_slug = isset($_GET['delete']) ? sanitize_title($_GET['delete']) : null; 240 if (!empty($template_slug)) { 239 $template_slug = isset($_GET['delete']) ? sanitize_title($_GET['delete']) : null; 240 $page = !empty($_GET['page']) ? sanitize_title($_GET['page']) : null; 241 $tab = !empty($_GET['tab']) ? $_GET['tab'] : null; 242 243 if ( 244 !empty($template_slug) && 245 !empty($page) && 'wc-settings' === $page && 246 !empty($tab) && 'blpaczka_template' === $tab 247 ) { 241 248 $templates = get_option('blpaczka_templates', []); 242 249 unset($templates[$template_slug]); -
blpaczka/trunk/README.md
r3439856 r3454930 31 31 == Installation == 32 32 33 [Szczegółowa instrukcja PDF](https://plugins-instructions.s3.eu-central-1.amazonaws.com/BLPaczka+-+wtyczka+WooCommerce.pdf) 33 [Szczegółowa instrukcja PDF](https://plugins-instructions.s3.eu-central-1.amazonaws.com/BLPaczka+-+wtyczka+WooCommerce.pdf) 34 34 35 35 Aby zainstalować wtyczkę BLPaczka w swoim sklepie WooCommerce: … … 84 84 * Możliwość wyłączenia mapy dla wybranych przewoźników 85 85 86 = 1.2.0 = 86 = 1.2.0 = 87 87 * Dodanie obsługi Flexible Shipping 88 88 * Drobne poprawki … … 106 106 * Poprawka w wyświetlaniu przycisku do wyboru punktu odbioru 107 107 * Zmiana w walidacji wyboru punktu odbioru 108 109 = 1.2.6 = 110 * Poprawka w aktualizacji mapy w checkout z shortcode 111 * Poprawka w przekazywaniu do zamówienia kwoty pobrania 108 112 109 113 == English == … … 181 185 182 186 = 1.2.1 = 183 * Fix the error when checkbox "Ship to another location" is not showed 187 * Fix the error when checkbox "Ship to another location" is not showed 184 188 185 189 = 1.2.2 = -
blpaczka/trunk/assets/shipment-form.js
r3439856 r3454930 4 4 rate_id: null, 5 5 method_id: null, 6 instance_id: null 6 instance_id: null, 7 postcode: null 7 8 }; 8 9 const blpaczkaApiUrl = blpaczkaPublic['apiUrl']; … … 141 142 142 143 'initShortcodeCheckout' : () => { 144 const postcodeEl = $('#billing_postcode'); 145 postcodeEl.off('change.blpaczka'); 146 postcodeEl.on('change.blpaczka', function () { 147 $('body').trigger('update_checkout'); 148 }); 149 143 150 $(document.body).on('updated_checkout', async function () { 144 151 const chosenShippingMethodEl = $('input[name^="shipping_method"]:checked'); … … 150 157 rate_id: chosenShippingMethod, 151 158 method_id: chosenShippingMethodArr[0], 152 instance_id: chosenShippingMethodArr[1] 153 } 154 155 if (currentShippingMethod.rate_id !== blockCheckoutChosenShippingMethod.rate_id) { 159 instance_id: chosenShippingMethodArr[1], 160 postcode: $('#billing_postcode').val() 161 } 162 163 if ( 164 currentShippingMethod.rate_id !== blockCheckoutChosenShippingMethod.rate_id || 165 currentShippingMethod.postcode !== blockCheckoutChosenShippingMethod.postcode 166 ) { 156 167 blockCheckoutChosenShippingMethod = currentShippingMethod; 157 168 -
blpaczka/trunk/blpaczka.php
r3439856 r3454930 349 349 $shippingTotal = floatval( $orderData['shipping_total'] ?? 0.0 ); 350 350 351 $orderSum = $orderTotal - $shippingTotal; 351 //$orderSum = $orderTotal - $shippingTotal; 352 $orderSum = $orderTotal; 352 353 353 354 $address = $orderData['shipping']['address_1'] . ' ' . $orderData['shipping']['address_2']; -
blpaczka/trunk/readme.txt
r3439861 r3454930 107 107 * Zmiana w walidacji wyboru punktu odbioru 108 108 109 = 1.2.6 = 110 * Poprawka w aktualizacji mapy w checkout z shortcode 111 * Poprawka w przekazywaniu do zamówienia kwoty pobrania 112 109 113 == English == 110 114 -
blpaczka/trunk/src/BLPaczkaTemplates.php
r3220233 r3454930 237 237 function BLPaczka_delete_template() 238 238 { 239 $template_slug = isset($_GET['delete']) ? sanitize_title($_GET['delete']) : null; 240 if (!empty($template_slug)) { 239 $template_slug = isset($_GET['delete']) ? sanitize_title($_GET['delete']) : null; 240 $page = !empty($_GET['page']) ? sanitize_title($_GET['page']) : null; 241 $tab = !empty($_GET['tab']) ? $_GET['tab'] : null; 242 243 if ( 244 !empty($template_slug) && 245 !empty($page) && 'wc-settings' === $page && 246 !empty($tab) && 'blpaczka_template' === $tab 247 ) { 241 248 $templates = get_option('blpaczka_templates', []); 242 249 unset($templates[$template_slug]);
Note: See TracChangeset
for help on using the changeset viewer.