Plugin Directory

Changeset 3347404


Ignore:
Timestamp:
08/20/2025 08:51:10 AM (7 months ago)
Author:
shipbubble
Message:

Pickup location JS fix 2

Location:
shipbubble
Files:
58 added
4 edited

Legend:

Unmodified
Added
Removed
  • shipbubble/trunk/public/js/couriers-on-checkout.js

    r3338635 r3347404  
    15471547    }
    15481548
    1549     $("form.woocommerce-checkout").on('checkout_place_order', function(e) {
    1550         // Check both radio buttons and hidden inputs
    1551         var isShipbubbleSelected =
    1552             $('input[name="shipping_method[0]"][value="shipbubble_shipping_services"]').is(':checked') || // Radio button
    1553             $('input[name="shipping_method[0]"][value="shipbubble_shipping_services"][type="hidden"]').length > 0; // Hidden input
    1554 
    1555         if (isShipbubbleSelected) {
    1556             // Skip the confirmation prompt if shipbubble is selected
    1557             return true;
    1558         } else {
    1559             // Show the confirmation prompt if any other shipping method is selected
    1560             if (!confirm("You've chosen pickup. For home delivery options, click 'Get Delivery Prices'. To proceed with pickup, click 'OK'.")) {
    1561                 console.log("Submission Stopped");
    1562                 return false;
    1563             }
    1564         }
    1565     });
     1549    // $("form.woocommerce-checkout").on('checkout_place_order', function(e) {
     1550    // // Check both radio buttons and hidden inputs
     1551    // var isShipbubbleSelected =
     1552    //      $('input[name="shipping_method[0]"][value="shipbubble_shipping_services"]').is(':checked') || // Radio button
     1553    //      $('input[name="shipping_method[0]"][value="shipbubble_shipping_services"][type="hidden"]').length > 0; // Hidden input
     1554    //
     1555    // if (isShipbubbleSelected) {
     1556    //      // Skip the confirmation prompt if shipbubble is selected
     1557    //      return true;
     1558    // } else {
     1559    //      // Show the confirmation prompt if any other shipping method is selected
     1560    //      if (!confirm("You've chosen pickup. For home delivery options, click 'Get Delivery Prices'. To proceed with pickup, click 'OK'.")) {
     1561    //          console.log("Submission Stopped");
     1562    //          return false;
     1563    //      }
     1564    // }
     1565    // });
    15661566
    15671567    // Handle radio button changes
  • shipbubble/trunk/public/js/shipbubble-local-pickup.js

    r3338635 r3347404  
    197197                jQuery.unblockUI()
    198198            }
    199         );
     199        ).fail(function () {
     200            console.error('Failed to update local pickup address.');
     201            jQuery.unblockUI();
     202        })
    200203    }
    201204
  • shipbubble/trunk/readme.txt

    r3338635 r3347404  
    55Requires at least: 4.0
    66Tested up to: 6.5
    7 Stable tag: 2.9.1
     7Stable tag: 2.9.2
    88Requires PHP: 5.6
    99License: GPLv3 or later
     
    7070
    7171== Changelog ==
     72= 2.9.2 =
     73* Pickup location JS fix 2
     74
    7275= 2.9.1 =
    7376* Pickup location JS fix
  • shipbubble/trunk/shipbubble.php

    r3338635 r3347404  
    88 * Tags: logistics, deliveries, shipping rates, multiple couriers, post purchase experience
    99 * Requires at least: 4.0
    10  * Tested up to: 6.5
    11  * Version: 2.9.1
     10 * Tested up to: 6.8
     11 * Version: 2.9.2
    1212 * Requires PHP: 5.6
    1313 * Text Domain:  shipbubble
Note: See TracChangeset for help on using the changeset viewer.