Plugin Directory

Changeset 2994949


Ignore:
Timestamp:
11/13/2023 07:58:36 AM (2 years ago)
Author:
redboxsa
Message:

version 1.33

Location:
redbox-pickup
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • redbox-pickup/trunk/front/front.php

    r2993718 r2994949  
    332332
    333333            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;
    379345            }
    380346
  • redbox-pickup/trunk/js/front.js

    r2993718 r2994949  
    3333            day: "أيام",
    3434            select_other_point: "اختر نقطة التقاط أخرى",
    35             select_a_point: "Select a Pickup point",
     35            select_a_point: "اختر نقطة الاستلام",
    3636            counter_locker: "خزانة وكاونتر",
    3737            counter: "كاونتر",
  • redbox-pickup/trunk/readme.txt

    r2993718 r2994949  
    11=== RedBox Pickup ===
    22Contributors: Redbox
    3 Donate link: 
     3Donate link:
    44Tags: Delivery, Pickup, Redbox
    55Requires at least: 3.3
    66Tested up to: 5.5.1
    7 Stable tag: 1.32
     7Stable tag: 1.33
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7171Update tax for shipping price
    7272= 1.32 =
    73 Update apple map
     73Update apple map
     74= 1.33 =
     75Fix shipping method
    7476
    7577
  • redbox-pickup/trunk/redbox.php

    r2993718 r2994949  
    44        * Description: This plugin allows customers pickup package at RedBox Locker.
    55        * Plugin URI: https://woocommerce.com/
    6         * Version: 1.32
     6        * Version: 1.33
    77        * Author: RedBox
    88        * Author URI: https://redboxsa.com
     
    6161            "en" => [
    6262                "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",
    6464                "label_choose_redbox_point" => "Search for a RedBox Pickup point near you",
    6565                "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",
     
    8989            "ar" => [
    9090                "label_redbox_point" => "نقطة ريد بوكس",
    91                 "label_title_redbox_pickup" => "SHIP TO REDBOX PICKUP POINT",
     91                "label_title_redbox_pickup" => "استلم طلبك من خزائن ريد بوكس الذكية بالوقت المناسب لك (تخزين لمدة 48 ساعة) توصيل من ١-٣ أيام",
    9292                "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" => "نقطة استلام ريد بوكس تتيح لك استلام شحناتك بالوقت والمكان المناسب لك من خزائن ذكية أو مركز استلام.",
    9494                "label_waring_selecte_point_required" => "اختار نقطة ريد بوكس",
    9595                "label_cancel" => "ملغية",
    9696                "label_complete" => "التالي",
    97                 "label_edit_point" => "Select a Pickup point",
     97                "label_edit_point" => "اختر نقطة الاستلام",
    9898                "method_title" => "‎استلم طلبك من خزائن ريد بوكس الذكية RedBox بالوقت المناسب لك (تخزين لمدة 48 ساعة) توصيل من ١-٣ أيام",
    9999                "method_description" => "استقبال الطلبات عبر خزائن ريد بوكس الذكية، متوفرة على مدى ٢٤ ساعة وبأنحاء متفرقة من المدينة.",
     
    105105                "search" => "بحث",
    106106                "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" => "لا شيْ"
    116116            ]
    117117        ]);
     
    131131            function redbox_load_scrip_and_style_front() {
    132132                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.22' );
     133                wp_enqueue_style( 'redbox_front_css', REDBOX_PLUGIN_DIR . '/css/front.css', false, '1.0.21' );
    134134                wp_enqueue_style( 'redbox_font_roboto', 'https://fonts.googleapis.com/css?family=Roboto' );
    135135                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.22' );
     136                wp_enqueue_script( 'redbox_front_js', REDBOX_PLUGIN_DIR . '/js/front.js', false, '1.0.21' );
    137137                wp_localize_script( 'redbox_front_js', 'ajax_url', admin_url('admin-ajax.php') );
    138138                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.