Changeset 3394617
- Timestamp:
- 11/12/2025 07:44:13 PM (4 months ago)
- Location:
- shipbubble
- Files:
-
- 60 added
- 4 edited
-
tags/2.10 (added)
-
tags/2.10/admin (added)
-
tags/2.10/admin/css (added)
-
tags/2.10/admin/css/styles-wc.css (added)
-
tags/2.10/admin/index.php (added)
-
tags/2.10/admin/js (added)
-
tags/2.10/admin/js/ajax-create-shipment.js (added)
-
tags/2.10/admin/js/ajax-validate-address.js (added)
-
tags/2.10/admin/js/ajax-validate-auth.js (added)
-
tags/2.10/admin/settings (added)
-
tags/2.10/admin/settings/js (added)
-
tags/2.10/admin/settings/js/settings.js (added)
-
tags/2.10/admin/settings/settings-menu.php (added)
-
tags/2.10/admin/settings/templates (added)
-
tags/2.10/admin/settings/templates/api-keys.php (added)
-
tags/2.10/admin/settings/templates/local-pickup.php (added)
-
tags/2.10/admin/settings/templates/sender-details.php (added)
-
tags/2.10/admin/woocommerce (added)
-
tags/2.10/admin/woocommerce/async-create-shipment.php (added)
-
tags/2.10/admin/woocommerce/async-validate-address.php (added)
-
tags/2.10/admin/woocommerce/enqueue-styles.php (added)
-
tags/2.10/admin/woocommerce/orders.php (added)
-
tags/2.10/admin/woocommerce/shipping-settings.php (added)
-
tags/2.10/admin/wordpress (added)
-
tags/2.10/admin/wordpress/async-validate-auth.php (added)
-
tags/2.10/admin/wordpress/index.php (added)
-
tags/2.10/admin/wordpress/settings-callback.php (added)
-
tags/2.10/admin/wordpress/settings-field-validation.php (added)
-
tags/2.10/admin/wordpress/settings-menu.php (added)
-
tags/2.10/admin/wordpress/settings-page.php (added)
-
tags/2.10/admin/wordpress/settings-register.php (added)
-
tags/2.10/includes (added)
-
tags/2.10/includes/compatibilities.php (added)
-
tags/2.10/includes/constants.php (added)
-
tags/2.10/includes/core-methods.php (added)
-
tags/2.10/includes/endpoints.php (added)
-
tags/2.10/includes/index.php (added)
-
tags/2.10/index.php (added)
-
tags/2.10/languages (added)
-
tags/2.10/languages/index.php (added)
-
tags/2.10/license.txt (added)
-
tags/2.10/public (added)
-
tags/2.10/public/async-checkout-couriers.php (added)
-
tags/2.10/public/css (added)
-
tags/2.10/public/css/styles-wc.css (added)
-
tags/2.10/public/images (added)
-
tags/2.10/public/images/logo.svg (added)
-
tags/2.10/public/js (added)
-
tags/2.10/public/js/blockui (added)
-
tags/2.10/public/js/blockui/jquery.blockUI.js (added)
-
tags/2.10/public/js/couriers-on-checkout.js (added)
-
tags/2.10/public/js/shipbubble-local-pickup.js (added)
-
tags/2.10/public/js/sweetalert2.min.js (added)
-
tags/2.10/public/woocommerce (added)
-
tags/2.10/public/woocommerce/checkout.php (added)
-
tags/2.10/public/woocommerce/enqueue-styles.php (added)
-
tags/2.10/readme.txt (added)
-
tags/2.10/shipbubble.php (added)
-
tags/2.10/uninstall.php (added)
-
trunk/includes/compatibilities.php (added)
-
trunk/public/js/couriers-on-checkout.js (modified) (3 diffs)
-
trunk/public/woocommerce/checkout.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/shipbubble.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
shipbubble/trunk/public/js/couriers-on-checkout.js
r3347404 r3394617 98 98 // hide notice 99 99 $('#shipping-notice').remove(); 100 101 if ( $('.iti__selected-dial-code').length !== 0 ) { 102 let phoneDialCode = $('.iti__selected-dial-code').first().text(); 103 104 if (!phone.startsWith('+')) { 105 phone = phoneDialCode + phone; 106 } 107 } 100 108 101 109 // Assemble payload … … 145 153 } 146 154 147 $('<div>', {155 let shippingNotice = $('<div>', { 148 156 id: 'shipping-notice', 149 157 class: 'woocommerce-error', 150 158 style: 'font-size:16px', 151 }).text(`Ensure that you have filled your ${errorBox.join(', ')}`).appendTo('#order_review_heading').show(); 159 }).text(`Ensure that you have filled your ${errorBox.join(', ')}`); 160 161 if ($('#order_review_heading').length === 0) { 162 // put shipping notice before the div with class .shipbubble-delivery-method-container 163 shippingNotice.prependTo('.shipbubble-delivery-method-container').show(); 164 } else { 165 shippingNotice.appendTo('#order_review_heading').show(); 166 } 152 167 153 168 $(requestRatesBtn).prop('checked', false) … … 297 312 298 313 $(requestRatesBtn).prop('checked', false) 299 300 314 } 301 315 } -
shipbubble/trunk/public/woocommerce/checkout.php
r3326861 r3394617 123 123 function shipbubble_courier_setup_on_change() 124 124 { 125 if (is_checkout()) { 125 $options = get_option(WC_SHIPBUBBLE_ID, shipbubble_wc_options_default()); 126 127 $isShipbubbleActive = isset($options['activate_shipbubble']) ? sanitize_text_field($options['activate_shipbubble']) : 'no'; 128 $isShipbubbleActive = $isShipbubbleActive == 'yes'; 129 if (is_checkout() && $isShipbubbleActive) { 126 130 ?> 127 131 … … 158 162 $('#shipbubble_courier_set').val('true'); 159 163 160 $('html, body').animate({ 161 scrollTop: $(".woocommerce-shipping-totals.shipping").offset().top 162 }, 1000); 164 let shippingTotals = $(".woocommerce-shipping-totals.shipping"); 165 if (shippingTotals.length) { 166 $('html, body').animate({ 167 scrollTop: $(".woocommerce-shipping-totals.shipping").offset().top 168 }, 1000); 169 } 163 170 164 171 jQuery('body').trigger('update_checkout'); … … 169 176 170 177 // Original handler for billing/shipping changes 171 $(' div#customer_details').on('change', 'input[name^="billing"], input[name^="shipping"], select[name^="billing"], select[name^="shipping"]', function handleShippingChanges() {178 $('form').on('change', 'input[name^="billing"], input[name^="shipping"], select[name^="billing"], select[name^="shipping"]', function handleShippingChanges() { 172 179 let list = $('#courier-list') 173 180 sbSlogan = $('.sb-slogan-container'); -
shipbubble/trunk/readme.txt
r3347404 r3394617 5 5 Requires at least: 4.0 6 6 Tested up to: 6.5 7 Stable tag: 2. 9.27 Stable tag: 2.10 8 8 Requires PHP: 5.6 9 9 License: GPLv3 or later … … 70 70 71 71 == Changelog == 72 = 2.10 = 73 * FunnelKit compability update 74 72 75 = 2.9.2 = 73 76 * Pickup location JS fix 2 -
shipbubble/trunk/shipbubble.php
r3347404 r3394617 9 9 * Requires at least: 4.0 10 10 * Tested up to: 6.8 11 * Version: 2. 9.211 * Version: 2.10 12 12 * Requires PHP: 5.6 13 13 * Text Domain: shipbubble … … 41 41 require_once plugin_dir_path(__FILE__) . 'includes/endpoints.php'; 42 42 require_once plugin_dir_path(__FILE__) . 'includes/core-methods.php'; 43 require_once plugin_dir_path(__FILE__) . 'includes/compatibilities.php'; 43 44 44 45 // public
Note: See TracChangeset
for help on using the changeset viewer.