Changeset 2994949
- Timestamp:
- 11/13/2023 07:58:36 AM (2 years ago)
- Location:
- redbox-pickup
- Files:
-
- 1 added
- 4 edited
-
tags/1.33 (added)
-
trunk/front/front.php (modified) (1 diff)
-
trunk/js/front.js (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/redbox.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redbox-pickup/trunk/front/front.php
r2993718 r2994949 332 332 333 333 function bbloomer_woocommerce_tiered_shipping( $rates, $package ) { 334 // if ($this->minimumAmount == false) { 335 // return $rates; 336 // } 337 // $total = WC()->cart->subtotal; 338 // if ($total >= $this->minimumAmount) { 339 // if ($rates["redbox_pickup_delivery"]) { 340 // $rates["redbox_pickup_delivery"]->cost = 0; 341 // $rates["redbox_pickup_delivery"]->taxes = 0; 342 // } 343 // } 344 // return $rates; 345 $no_free_shipping_method = false; 346 if($no_free_shipping_method == true): 347 $new_rates = array(); 348 foreach ( $rates as $rate_id => $rate ) { 349 // Only modify rates if free_shipping is present. 350 if ( 'free_shipping' != $rate->method_id ) { 351 $new_rates[ $rate_id ] = $rate; 352 break; 353 } 354 } 355 else: 356 $new_rates = array(); 357 foreach ( $rates as $rate_id => $rate ) { 358 // Only modify rates if free_shipping is present. 359 if ( 'free_shipping' === $rate->method_id || 'redbox_pickup_delivery' === $rate->method_id) { 360 $new_rates[ $rate_id ] = $rate; 361 break; 362 } 363 } 364 endif; 365 366 367 if ( ! empty( $new_rates ) ) { 368 //Save local pickup if it's present. 369 foreach ( $rates as $rate_id => $rate ) { 370 if ('local_pickup' === $rate->method_id ) { 371 $new_rates[ $rate_id ] = $rate; 372 break; 373 } 374 } 375 return $new_rates; 376 } 377 378 return $rates; 334 if ($this->minimumAmount == false) { 335 return $rates; 336 } 337 $total = WC()->cart->subtotal; 338 if ($total >= $this->minimumAmount) { 339 if ($rates["redbox_pickup_delivery"]) { 340 $rates["redbox_pickup_delivery"]->cost = 0; 341 $rates["redbox_pickup_delivery"]->taxes = 0; 342 } 343 } 344 return $rates; 379 345 } 380 346 -
redbox-pickup/trunk/js/front.js
r2993718 r2994949 33 33 day: "أيام", 34 34 select_other_point: "اختر نقطة التقاط أخرى", 35 select_a_point: " Select a Pickup point",35 select_a_point: "اختر نقطة الاستلام", 36 36 counter_locker: "خزانة وكاونتر", 37 37 counter: "كاونتر", -
redbox-pickup/trunk/readme.txt
r2993718 r2994949 1 1 === RedBox Pickup === 2 2 Contributors: Redbox 3 Donate link: 3 Donate link: 4 4 Tags: Delivery, Pickup, Redbox 5 5 Requires at least: 3.3 6 6 Tested up to: 5.5.1 7 Stable tag: 1.3 27 Stable tag: 1.33 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 71 71 Update tax for shipping price 72 72 = 1.32 = 73 Update apple map 73 Update apple map 74 = 1.33 = 75 Fix shipping method 74 76 75 77 -
redbox-pickup/trunk/redbox.php
r2993718 r2994949 4 4 * Description: This plugin allows customers pickup package at RedBox Locker. 5 5 * Plugin URI: https://woocommerce.com/ 6 * Version: 1.3 26 * Version: 1.33 7 7 * Author: RedBox 8 8 * Author URI: https://redboxsa.com … … 61 61 "en" => [ 62 62 "label_redbox_point" => "Redbox Point", 63 "label_title_redbox_pickup" => " SHIP TO REDBOX PICKUP POINT",63 "label_title_redbox_pickup" => "Collect from RedBox Points at your convenient time (store for 48 HR) Delivery", 64 64 "label_choose_redbox_point" => "Search for a RedBox Pickup point near you", 65 65 "label_choose_redbox_point_sub" => "RedBox Pickup points enable you to pick up your package at your convenience from a nearby self-service Locker or a staffed location", … … 89 89 "ar" => [ 90 90 "label_redbox_point" => "نقطة ريد بوكس", 91 "label_title_redbox_pickup" => " SHIP TO REDBOX PICKUP POINT",91 "label_title_redbox_pickup" => "استلم طلبك من خزائن ريد بوكس الذكية بالوقت المناسب لك (تخزين لمدة 48 ساعة) توصيل من ١-٣ أيام", 92 92 "label_choose_redbox_point" => "الرجاء اختيار الخزانة الأقرب لك لإستلام شحنتك", 93 "label_choose_redbox_point_sub" => " RedBox Pickup points enable you to pick up your package at your convenience from a nearby self-service Locker or a staffed location",93 "label_choose_redbox_point_sub" => "نقطة استلام ريد بوكس تتيح لك استلام شحناتك بالوقت والمكان المناسب لك من خزائن ذكية أو مركز استلام.", 94 94 "label_waring_selecte_point_required" => "اختار نقطة ريد بوكس", 95 95 "label_cancel" => "ملغية", 96 96 "label_complete" => "التالي", 97 "label_edit_point" => " Select a Pickup point",97 "label_edit_point" => "اختر نقطة الاستلام", 98 98 "method_title" => "استلم طلبك من خزائن ريد بوكس الذكية RedBox بالوقت المناسب لك (تخزين لمدة 48 ساعة) توصيل من ١-٣ أيام", 99 99 "method_description" => "استقبال الطلبات عبر خزائن ريد بوكس الذكية، متوفرة على مدى ٢٤ ساعة وبأنحاء متفرقة من المدينة.", … … 105 105 "search" => "بحث", 106 106 "redbox_pickup_setting" => "إعدادات", 107 "note_update" => " Enter consumer key and consumer secret. We will update your order status when shipment status change.",108 "consumer_key" => " Consumer key",109 "consumer_secret" => " Consumer secret",110 "how_generate" => " Guide to generate API keys",111 "print_shipping_label" => " Print label",112 "min_total_price_for_free" => " Minimum order amount for free shipping",113 "tax_status" => " Tax status",114 "taxable" => " Taxable",115 "none" => " None"107 "note_update" => "ادخل مفتاح المستهلك و سر المستهلك. سنقوم بتحديث حالة طلبك عند تغيير حالة الشحن", 108 "consumer_key" => "مفتاح المستهلك", 109 "consumer_secret" => "سر المستهلك", 110 "how_generate" => "دليل لتوليد مفاتيح واجهة برمجة التطبيقات", 111 "print_shipping_label" => "طباعة البوليصة", 112 "min_total_price_for_free" => "الحد الأدنى لمبلغ الطلب للشحن المجاني", 113 "tax_status" => "الحالة الضريبية", 114 "taxable" => "خاضع للضريبة", 115 "none" => "لا شيْ" 116 116 ] 117 117 ]); … … 131 131 function redbox_load_scrip_and_style_front() { 132 132 wp_enqueue_style( 'redbox_font_awesome', 'https://pro.fontawesome.com/releases/v5.10.0/css/all.css' ); 133 wp_enqueue_style( 'redbox_front_css', REDBOX_PLUGIN_DIR . '/css/front.css', false, '1.0.2 2' );133 wp_enqueue_style( 'redbox_front_css', REDBOX_PLUGIN_DIR . '/css/front.css', false, '1.0.21' ); 134 134 wp_enqueue_style( 'redbox_font_roboto', 'https://fonts.googleapis.com/css?family=Roboto' ); 135 135 wp_enqueue_style( 'redbox_font_cario', 'https://fonts.googleapis.com/css?family=Cairo' ); 136 wp_enqueue_script( 'redbox_front_js', REDBOX_PLUGIN_DIR . '/js/front.js', false, '1.0.2 2' );136 wp_enqueue_script( 'redbox_front_js', REDBOX_PLUGIN_DIR . '/js/front.js', false, '1.0.21' ); 137 137 wp_localize_script( 'redbox_front_js', 'ajax_url', admin_url('admin-ajax.php') ); 138 138 wp_enqueue_script( 'mapkit-script', "https://cdn.apple-mapkit.com/mk/5.x.x/mapkit.js");
Note: See TracChangeset
for help on using the changeset viewer.