Plugin Directory

Changeset 3454930


Ignore:
Timestamp:
02/05/2026 08:08:13 PM (2 months ago)
Author:
blpaczka
Message:

version 1.2.6

Location:
blpaczka
Files:
6 edited
8 copied

Legend:

Unmodified
Added
Removed
  • blpaczka/tags/1.2.6/README.md

    r3439856 r3454930  
    3131== Installation ==
    3232
    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)
    3434
    3535Aby zainstalować wtyczkę BLPaczka w swoim sklepie WooCommerce:
     
    8484* Możliwość wyłączenia mapy dla wybranych przewoźników
    8585
    86 = 1.2.0 = 
     86= 1.2.0 =
    8787* Dodanie obsługi Flexible Shipping
    8888* Drobne poprawki
     
    106106* Poprawka w wyświetlaniu przycisku do wyboru punktu odbioru
    107107* 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
    108112
    109113== English ==
     
    181185
    182186= 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
    184188
    185189= 1.2.2 =
  • blpaczka/tags/1.2.6/assets/shipment-form.js

    r3439856 r3454930  
    44        rate_id: null,
    55        method_id: null,
    6         instance_id: null
     6        instance_id: null,
     7        postcode: null
    78    };
    89    const blpaczkaApiUrl                    = blpaczkaPublic['apiUrl'];
     
    141142
    142143        'initShortcodeCheckout' : () => {
     144            const postcodeEl = $('#billing_postcode');
     145            postcodeEl.off('change.blpaczka');
     146            postcodeEl.on('change.blpaczka', function () {
     147                $('body').trigger('update_checkout');
     148            });
     149
    143150            $(document.body).on('updated_checkout', async function () {
    144151                const chosenShippingMethodEl    = $('input[name^="shipping_method"]:checked');
     
    150157                    rate_id: chosenShippingMethod,
    151158                    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                ) {
    156167                    blockCheckoutChosenShippingMethod = currentShippingMethod;
    157168
  • blpaczka/tags/1.2.6/blpaczka.php

    r3439856 r3454930  
    349349    $shippingTotal = floatval( $orderData['shipping_total'] ?? 0.0 );
    350350
    351     $orderSum = $orderTotal - $shippingTotal;
     351    //$orderSum = $orderTotal - $shippingTotal;
     352    $orderSum = $orderTotal;
    352353
    353354    $address = $orderData['shipping']['address_1'] . ' ' . $orderData['shipping']['address_2'];
  • blpaczka/tags/1.2.6/readme.txt

    r3439861 r3454930  
    107107* Zmiana w walidacji wyboru punktu odbioru
    108108
     109= 1.2.6 =
     110* Poprawka w aktualizacji mapy w checkout z shortcode
     111* Poprawka w przekazywaniu do zamówienia kwoty pobrania
     112
    109113== English ==
    110114
  • blpaczka/tags/1.2.6/src/BLPaczkaTemplates.php

    r3220233 r3454930  
    237237function BLPaczka_delete_template()
    238238{
    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    ) {
    241248        $templates = get_option('blpaczka_templates', []);
    242249        unset($templates[$template_slug]);
  • blpaczka/trunk/README.md

    r3439856 r3454930  
    3131== Installation ==
    3232
    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)
    3434
    3535Aby zainstalować wtyczkę BLPaczka w swoim sklepie WooCommerce:
     
    8484* Możliwość wyłączenia mapy dla wybranych przewoźników
    8585
    86 = 1.2.0 = 
     86= 1.2.0 =
    8787* Dodanie obsługi Flexible Shipping
    8888* Drobne poprawki
     
    106106* Poprawka w wyświetlaniu przycisku do wyboru punktu odbioru
    107107* 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
    108112
    109113== English ==
     
    181185
    182186= 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
    184188
    185189= 1.2.2 =
  • blpaczka/trunk/assets/shipment-form.js

    r3439856 r3454930  
    44        rate_id: null,
    55        method_id: null,
    6         instance_id: null
     6        instance_id: null,
     7        postcode: null
    78    };
    89    const blpaczkaApiUrl                    = blpaczkaPublic['apiUrl'];
     
    141142
    142143        'initShortcodeCheckout' : () => {
     144            const postcodeEl = $('#billing_postcode');
     145            postcodeEl.off('change.blpaczka');
     146            postcodeEl.on('change.blpaczka', function () {
     147                $('body').trigger('update_checkout');
     148            });
     149
    143150            $(document.body).on('updated_checkout', async function () {
    144151                const chosenShippingMethodEl    = $('input[name^="shipping_method"]:checked');
     
    150157                    rate_id: chosenShippingMethod,
    151158                    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                ) {
    156167                    blockCheckoutChosenShippingMethod = currentShippingMethod;
    157168
  • blpaczka/trunk/blpaczka.php

    r3439856 r3454930  
    349349    $shippingTotal = floatval( $orderData['shipping_total'] ?? 0.0 );
    350350
    351     $orderSum = $orderTotal - $shippingTotal;
     351    //$orderSum = $orderTotal - $shippingTotal;
     352    $orderSum = $orderTotal;
    352353
    353354    $address = $orderData['shipping']['address_1'] . ' ' . $orderData['shipping']['address_2'];
  • blpaczka/trunk/readme.txt

    r3439861 r3454930  
    107107* Zmiana w walidacji wyboru punktu odbioru
    108108
     109= 1.2.6 =
     110* Poprawka w aktualizacji mapy w checkout z shortcode
     111* Poprawka w przekazywaniu do zamówienia kwoty pobrania
     112
    109113== English ==
    110114
  • blpaczka/trunk/src/BLPaczkaTemplates.php

    r3220233 r3454930  
    237237function BLPaczka_delete_template()
    238238{
    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    ) {
    241248        $templates = get_option('blpaczka_templates', []);
    242249        unset($templates[$template_slug]);
Note: See TracChangeset for help on using the changeset viewer.