Plugin Directory

Changeset 3200657


Ignore:
Timestamp:
12/02/2024 07:50:14 AM (16 months ago)
Author:
keylorcr
Message:

Update shipping cost option and store admin order management

Location:
wc-pickup-store
Files:
38 added
7 edited

Legend:

Unmodified
Added
Removed
  • wc-pickup-store/trunk/includes/admin/wps-admin.php

    r3165399 r3200657  
    102102 * Save the custom field.
    103103 *
    104  * @version 1.8.6
     104 * @version 1.8.9
    105105 * @since 1.x
    106106 *
     
    111111    $user_id = $current_user->ID;
    112112
    113     $store = isset( $_POST['shipping_pickup_stores'] ) ? $_POST['shipping_pickup_stores'] : '';
    114 
    115     if ( $store ) {
    116         update_user_meta( $user_id, '_shipping_pickup_stores', $store );
    117         $order->add_meta_data( '_shipping_pickup_stores', $store );
     113    $store_name = isset( $_POST['shipping_pickup_stores'] ) ? esc_attr( $_POST['shipping_pickup_stores'] ) : false;
     114
     115    if ( $store_name ) {
     116        $store_id = wps_get_store_id_by_name( $store_name );
     117
     118        if ( $user_id > 0 ) {
     119            update_user_meta( $user_id, '_shipping_pickup_stores', $store_name );
     120            update_user_meta( $user_id, '_shipping_pickup_store_id', $store_id );
     121        }
     122
     123        $order->add_meta_data( '_shipping_pickup_stores', $store_name );
     124        $order->add_meta_data( '_shipping_pickup_store_id', $store_id );
    118125        // $order->save() is triggered from parent create_order method
    119126    }
     
    170177
    171178/**
    172  * Add selected store to billing details, admin page
    173  *
    174  * @version 1.8.6
    175  * @since 1.x
    176  *
    177  * @param WC_Order $order
    178  */
    179 function wps_show_store_in_admin( $order ) {
    180     $store = $order->get_meta( '_shipping_pickup_stores' );
    181    
    182     if ( !empty( $store ) ) {
    183         ?>
    184         <p>
    185             <strong class="title"><?php echo __('Pickup Store', 'wc-pickup-store') . ':' ?></strong>
    186             <span class="data"><?= $store ?></span>
    187         </p>
    188         <?php
    189     }
    190 }
    191 add_action('woocommerce_admin_order_data_after_billing_address', 'wps_show_store_in_admin');
    192 
    193 /**
    194179 * Language
    195180 */
     
    213198    return apply_filters('wps_no_stores_availables_message', __('There are not available stores. Please choose another shipping method.', 'wc-pickup-store'));
    214199}
     200
     201/**
     202 * Shipping admin order fields
     203 *
     204 * @version 1.8.9
     205 *
     206 * @param array     $fields
     207 * @param WC_Order  $order
     208 *
     209 * @return array
     210 */
     211function wps_wc_admin_order_fields( $fields, $order ) {
     212    if ( ! is_admin() ) {
     213        return $fields;
     214    }
     215    $store_name = $order->get_meta( '_shipping_pickup_stores' );
     216
     217    if ( !empty( $store_name ) ) {
     218        $get_stores = wps_store_get_store_admin( false );
     219        $wps_admin_label = apply_filters( 'wps_store_checkout_label', WPS()->title );
     220   
     221        $fields['wps_store'] = array(
     222            'type' => 'select',
     223            'label' => $wps_admin_label,
     224            'wrapper_class' => 'form-field-wide',
     225            'options' => $get_stores,
     226            'value' => $store_name,
     227            'show'  => true,
     228        );
     229    }
     230   
     231    return $fields;
     232}
     233add_filter( 'woocommerce_admin_shipping_fields', 'wps_wc_admin_order_fields', 101, 2 );
     234
     235/**
     236 * Update WPS store from admin order page
     237 *
     238 * @version 1.8.9
     239 *
     240 * @param int $order_id
     241 * @param WC_Order $order
     242 */
     243function wps_wc_process_shop_order_meta( $order_id ) {
     244    $order = wc_get_order( $order_id );
     245    $store_name = isset( $_POST['_shipping_wps_store'] ) ? $_POST['_shipping_wps_store'] : false;
     246    $old_store = $order->get_meta( '_shipping_pickup_stores' );
     247
     248    if ( $order && $store_name ) {
     249        if ( $store_name != $old_store ) {
     250            $order->update_meta_data( '_shipping_pickup_stores', $store_name );
     251            $order->update_meta_data( '_shipping_pickup_store_id', wps_get_store_id_by_name( $store_name ) );
     252            $order->add_order_note( sprintf( 'WPS edited from <strong>%1$s</strong> to <strong>%2$s</strong>.', $old_store, $store_name ) );
     253           
     254            $order->save();
     255        }
     256    }
     257}
     258add_action( 'woocommerce_process_shop_order_meta', 'wps_wc_process_shop_order_meta', 100 );
  • wc-pickup-store/trunk/includes/admin/wps-settings.php

    r3156086 r3200657  
    11<?php
     2$costs_type_options = apply_filters( 'wps_costs_type_options', array(
     3    'none' => __( 'None', 'wc-pickup-store' ),
     4    'flat' => __( 'Flat Rate', 'wc-pickup-store' ),
     5    'percentage' => __( 'Percentage', 'wc-pickup-store' ),
     6    'cart_total_weight' => __( 'Cart Total Weight', 'wc-pickup-store' ),
     7) );
     8
    29/**
    3  * @version 1.8.7
     10 * @version 1.8.9
    411 * @since 1.x
    512 */
     
    4148        'description' => __( 'Choose a shipping costs type to calculate Pick up store costs. Use None to deactivate shipping store costs', 'wc-pickup-store' ),
    4249        'default' => 'flat',
    43         'options' => array(
    44             'none' => __('None', 'wc-pickup-store'),
    45             'flat' => __('Flat Rate', 'wc-pickup-store'),
    46             'percentage' => __('Percentage', 'wc-pickup-store')
    47         ),
     50        'options' => $costs_type_options,
    4851        'desc_tip'    => true
    4952    ),
  • wc-pickup-store/trunk/includes/class-wps-init.php

    r3165399 r3200657  
    1313 * Declare Shipping Method
    1414 *
    15  * @version 1.8.8
     15 * @version 1.8.9
    1616 * @since 1.x
    1717 */
     
    200200   
    201201            /**
    202              * Get calculated costs based on flat/percentage cost type
    203              */
    204             public function wps_get_calculated_costs($shipping_costs, $costs_on_method = false, $order = null)
    205             {
    206                 $store_shipping_cost = (double) (!empty($shipping_costs) && $this->costs_per_store == 'yes') ? $shipping_costs : $this->costs;
    207                 if ( isset( $this->costs_type ) ) {
    208                     switch ($this->costs_type) {
     202             * Get calculated costs based on cost type settings
     203             *
     204             * @version 1.8.9
     205             * @since 1.1.x
     206             *
     207             * @param float         $shipping_costs
     208             * @param bool          $costs_on_method
     209             * @param null|WC_Order $order
     210             *
     211             * @return float
     212             */
     213            public function wps_get_calculated_costs( $shipping_costs, $costs_on_method = false, $order = null )
     214            {
     215                $costs = 0;
     216
     217                if ( $this->costs_type != 'none' ) {
     218                    $is_valid_shipping_cost = ( ( $this->costs_per_store == 'yes' && !$costs_on_method ) || ( $this->costs_per_store == 'no' && $costs_on_method ) );
     219                    $store_shipping_cost = (float) ( !empty( $shipping_costs ) && $this->costs_per_store == 'yes' ) ? $shipping_costs : $this->costs;
     220               
     221                    switch ( $this->costs_type ) {
    209222                        case 'flat':
    210                             $costs = (($this->costs_per_store == 'yes' && !$costs_on_method) || ($this->costs_per_store == 'no' && $costs_on_method)) ? $store_shipping_cost : 0;
     223                            $costs = $is_valid_shipping_cost ? $store_shipping_cost : 0;
    211224                        break;
    212225                        case 'percentage':
    213                             $subtotal = !is_null($order) ? $order->get_subtotal() : WC()->cart->get_subtotal();
    214                             $subtotal = (double) apply_filters('wps_subtotal_for_store_cost', $subtotal);
    215                             $costs = (($this->costs_per_store == 'yes' && !$costs_on_method) || ($this->costs_per_store == 'no' && $costs_on_method)) ? ($subtotal * $store_shipping_cost) / 100 : 0;
     226                            $subtotal = !is_null( $order ) ? $order->get_subtotal() : WC()->cart->get_subtotal();
     227                            $subtotal = (float) apply_filters( 'wps_subtotal_for_store_cost', $subtotal, $order );
     228                            $costs = $is_valid_shipping_cost ? ( ( $subtotal * $store_shipping_cost ) / 100 ) : 0;
    216229                        break;
    217                         default:
    218                             $costs = 0;
     230                        case 'cart_total_weight':
     231                            $cart_weight = WC()->cart->get_cart_contents_weight();
     232
     233                            if ( $is_valid_shipping_cost && $cart_weight > 0 ) {
     234                                $costs = (float) ($cart_weight * $store_shipping_cost);
     235                            }
    219236                        break;
    220237                    }
    221                 } else {
    222                     $costs = 0;
    223238                }
    224239   
     
    287302            }
    288303        }
    289         new WC_PICKUP_STORE();
    290304       
    291305        /**
     
    295309            return new WC_PICKUP_STORE();
    296310        }
     311        WPS();
    297312    }
    298313}
  • wc-pickup-store/trunk/includes/cpt-store.php

    r3156086 r3200657  
    102102 * Metabox Store content
    103103 *
    104  * @version 1.8.6
     104 * @version 1.8.9
    105105 * @since 1.x
    106106 *
     
    148148        <?php } ?>
    149149
    150         <?php if ( WPS()->costs_per_store == 'yes' ) { ?>
     150        <?php
     151        if ( WPS()->costs_per_store == 'yes' ) {
     152            $weight_unit = get_option( 'woocommerce_weight_unit' );
     153            $costs_type = WPS()->costs_type;
     154            $message = sprintf(
     155                    /* translators: %s Cost type details */
     156                    __( 'Current cost type: %s', 'wc-pickup-store' ),
     157                    $costs_type == 'cart_total_weight' ? sprintf( '%1$s. <em>(%2$s)</em>',
     158                    $costs_type,
     159                    $weight_unit
     160                ) : $costs_type );
     161            ?>
    151162            <tr>
    152163                <th><?php _e('Store shipping cost', 'wc-pickup-store') ?></th>
    153164                <td>
    154165                    <input type="text" name="store_shipping_cost" class="regular-text" value="<?= $store_shipping_cost ?>">
    155                     <p class="description"><?= __('Add shipping cost for this store.', 'wc-pickup-store') ?></p>
     166                    <p class="description"><?php printf( '%1$s %2$s', __('Add shipping cost for this store.', 'wc-pickup-store'), $message ) ?></p>
    156167            </tr>
    157168        <?php } ?>
  • wc-pickup-store/trunk/languages/wc-pickup-store.pot

    r3165399 r3200657  
    11# Copyright (C) 2024 Keylor Mendoza A.
    2 # This file is distributed under the same license as the WC Pickup Store plugin.
     2# This file is distributed under the GPLv2.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: WC Pickup Store 1.8.6\n"
     5"Project-Id-Version: WC Pickup Store 1.8.9\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-pickup-store\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2024-09-23T06:05:29+00:00\n"
     12"POT-Creation-Date: 2024-12-02T07:29:15+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    14 "X-Generator: WP-CLI 2.4.0\n"
     14"X-Generator: WP-CLI 2.8.1\n"
    1515"X-Domain: wc-pickup-store\n"
    1616
     
    3939
    4040#: includes/admin/wps-admin.php:10
    41 #: includes/admin/wps-settings.php:34
     41#: includes/admin/wps-settings.php:41
    4242#: includes/wps-functions.php:42
    4343msgid "Select a store"
     
    5050
    5151#: includes/admin/wps-admin.php:19
    52 #: includes/admin/wps-settings.php:44
    53 #: includes/admin/wps-settings.php:173
     52#: includes/admin/wps-settings.php:3
     53#: includes/admin/wps-settings.php:176
    5454msgid "None"
    5555msgstr ""
     
    6161
    6262#: includes/admin/wps-admin.php:35
    63 #: includes/cpt-store.php:479
    64 #: includes/cpt-store.php:494
     63#: includes/cpt-store.php:490
     64#: includes/cpt-store.php:505
    6565msgid "Stores"
    6666msgstr ""
     
    7070msgstr ""
    7171
    72 #: includes/admin/wps-admin.php:129
    73 #: includes/admin/wps-admin.php:143
     72#: includes/admin/wps-admin.php:137
     73#: includes/admin/wps-admin.php:151
    7474#: includes/integrations/class-vc_stores.php:33
    7575#: includes/integrations/class-vc_stores.php:41
     
    8181msgstr ""
    8282
    83 #: includes/admin/wps-admin.php:158
     83#: includes/admin/wps-admin.php:166
    8484msgid "You must either choose a store or use other shipping method"
    8585msgstr ""
    8686
    87 #: includes/admin/wps-admin.php:184
     87#: includes/admin/wps-admin.php:198
     88msgid "There are not available stores. Please choose another shipping method."
     89msgstr ""
     90
     91#: includes/admin/wps-settings.php:4
     92msgid "Flat Rate"
     93msgstr ""
     94
     95#: includes/admin/wps-settings.php:5
     96msgid "Percentage"
     97msgstr ""
     98
     99#: includes/admin/wps-settings.php:6
     100msgid "Cart Total Weight"
     101msgstr ""
     102
     103#: includes/admin/wps-settings.php:15
     104msgid "Enable/Disable"
     105msgstr ""
     106
     107#: includes/admin/wps-settings.php:17
     108#: includes/admin/wps-settings.php:25
     109#: includes/admin/wps-settings.php:64
     110msgid "Enable"
     111msgstr ""
     112
     113#: includes/admin/wps-settings.php:19
     114msgid "Enable/Disable shipping method"
     115msgstr ""
     116
     117#: includes/admin/wps-settings.php:23
     118msgid "Enable stores in checkout"
     119msgstr ""
     120
    88121#: includes/admin/wps-settings.php:27
     122msgid "Shows select field to pick a store in checkout"
     123msgstr ""
     124
     125#: includes/admin/wps-settings.php:31
     126msgid "Shipping Method Title"
     127msgstr ""
     128
     129#: includes/admin/wps-settings.php:33
     130msgid "Label that appears in checkout options"
     131msgstr ""
     132
     133#: includes/admin/wps-settings.php:34
    89134#: includes/class-wps-init.php:179
    90135msgid "Pickup Store"
    91136msgstr ""
    92137
    93 #: includes/admin/wps-admin.php:212
    94 msgid "There are not available stores. Please choose another shipping method."
    95 msgstr ""
    96 
    97 #: includes/admin/wps-settings.php:8
    98 msgid "Enable/Disable"
    99 msgstr ""
    100 
    101 #: includes/admin/wps-settings.php:10
    102 #: includes/admin/wps-settings.php:18
    103 #: includes/admin/wps-settings.php:61
    104 msgid "Enable"
    105 msgstr ""
    106 
    107 #: includes/admin/wps-settings.php:12
    108 msgid "Enable/Disable shipping method"
    109 msgstr ""
    110 
    111 #: includes/admin/wps-settings.php:16
    112 msgid "Enable stores in checkout"
    113 msgstr ""
    114 
    115 #: includes/admin/wps-settings.php:20
    116 msgid "Shows select field to pick a store in checkout"
    117 msgstr ""
    118 
    119 #: includes/admin/wps-settings.php:24
    120 msgid "Shipping Method Title"
    121 msgstr ""
    122 
    123 #: includes/admin/wps-settings.php:26
    124 msgid "Label that appears in checkout options"
    125 msgstr ""
    126 
    127 #: includes/admin/wps-settings.php:31
     138#: includes/admin/wps-settings.php:38
    128139msgid "Select first option text"
    129140msgstr ""
    130141
    131 #: includes/admin/wps-settings.php:33
     142#: includes/admin/wps-settings.php:40
    132143msgid "Text to be displayed as first option of the stores dropdown"
    133144msgstr ""
    134145
    135 #: includes/admin/wps-settings.php:38
     146#: includes/admin/wps-settings.php:45
    136147msgid "Shipping Costs Type"
    137148msgstr ""
    138149
    139 #: includes/admin/wps-settings.php:41
     150#: includes/admin/wps-settings.php:48
    140151msgid "Choose a shipping costs type to calculate Pick up store costs. Use None to deactivate shipping store costs"
    141152msgstr ""
    142153
    143 #: includes/admin/wps-settings.php:45
    144 msgid "Flat Rate"
    145 msgstr ""
    146 
    147 #: includes/admin/wps-settings.php:46
    148 msgid "Percentage"
    149 msgstr ""
    150 
    151 #: includes/admin/wps-settings.php:51
     154#: includes/admin/wps-settings.php:54
    152155msgid "Shipping Costs"
    153156msgstr ""
    154157
    155 #: includes/admin/wps-settings.php:53
     158#: includes/admin/wps-settings.php:56
    156159msgid "Adds main shipping cost to store pickup"
    157160msgstr ""
    158161
    159 #: includes/admin/wps-settings.php:59
     162#: includes/admin/wps-settings.php:62
    160163msgid "Enable costs per store"
    161164msgstr ""
    162165
    163 #: includes/admin/wps-settings.php:63
     166#: includes/admin/wps-settings.php:66
    164167msgid "Allows to add shipping costs by store that will override the main shipping cost."
    165168msgstr ""
    166169
    167 #: includes/admin/wps-settings.php:67
     170#: includes/admin/wps-settings.php:70
    168171msgid "Order Stores by"
    169172msgstr ""
    170173
    171 #: includes/admin/wps-settings.php:70
     174#: includes/admin/wps-settings.php:73
     175#: includes/admin/wps-settings.php:87
     176msgid "Choose what order the stores will be shown"
     177msgstr ""
     178
    172179#: includes/admin/wps-settings.php:84
    173 msgid "Choose what order the stores will be shown"
    174 msgstr ""
    175 
    176 #: includes/admin/wps-settings.php:81
    177180msgid "Order"
    178181msgstr ""
    179182
    180 #: includes/admin/wps-settings.php:94
     183#: includes/admin/wps-settings.php:97
    181184msgid "Choose a default store to Checkout"
    182185msgstr ""
    183186
    184 #: includes/admin/wps-settings.php:98
     187#: includes/admin/wps-settings.php:101
    185188msgid "Checkout notification"
    186189msgstr ""
    187190
    188 #: includes/admin/wps-settings.php:100
     191#: includes/admin/wps-settings.php:103
    189192msgid "Message that appears next to shipping options on the Checkout page"
    190193msgstr ""
    191194
    192 #: includes/admin/wps-settings.php:105
     195#: includes/admin/wps-settings.php:108
    193196msgid "Hide store details on Checkout"
    194197msgstr ""
    195198
    196 #: includes/admin/wps-settings.php:107
     199#: includes/admin/wps-settings.php:110
    197200msgid "Hide"
    198201msgstr ""
    199202
    200 #: includes/admin/wps-settings.php:109
     203#: includes/admin/wps-settings.php:112
    201204msgid "Hide selected store details on the Checkout page."
    202205msgstr ""
    203206
    204 #: includes/admin/wps-settings.php:113
     207#: includes/admin/wps-settings.php:116
    205208msgid "Disable store filtering by Country"
    206209msgstr ""
    207210
    208 #: includes/admin/wps-settings.php:115
    209 #: includes/admin/wps-settings.php:124
    210 #: includes/admin/wps-settings.php:136
    211 #: includes/admin/wps-settings.php:147
    212 #: includes/admin/wps-settings.php:155
     211#: includes/admin/wps-settings.php:118
     212#: includes/admin/wps-settings.php:127
     213#: includes/admin/wps-settings.php:139
     214#: includes/admin/wps-settings.php:150
     215#: includes/admin/wps-settings.php:158
    213216msgid "Disable"
    214217msgstr ""
    215218
    216 #: includes/admin/wps-settings.php:117
     219#: includes/admin/wps-settings.php:120
    217220msgid "By default, stores will be filtered by country on the Checkout."
    218221msgstr ""
    219222
    220223#. translators: %s - library version
    221 #: includes/admin/wps-settings.php:125
    222 #: includes/admin/wps-settings.php:126
    223 #: includes/admin/wps-settings.php:137
    224 #: includes/admin/wps-settings.php:138
     224#: includes/admin/wps-settings.php:128
     225#: includes/admin/wps-settings.php:129
     226#: includes/admin/wps-settings.php:140
     227#: includes/admin/wps-settings.php:141
    225228msgid "Use version %s"
    226229msgstr ""
    227230
    228 #: includes/admin/wps-settings.php:129
     231#: includes/admin/wps-settings.php:132
    229232msgid "Choose for external Bootstrap library version. Use Disable to disable the library."
    230233msgstr ""
    231234
    232 #: includes/admin/wps-settings.php:141
     235#: includes/admin/wps-settings.php:144
    233236msgid "Choose for external Font Awesome library version. Use Disable to disable the library."
    234237msgstr ""
    235238
    236 #: includes/admin/wps-settings.php:145
     239#: includes/admin/wps-settings.php:148
    237240msgid "Disable local css"
    238241msgstr ""
    239242
    240 #: includes/admin/wps-settings.php:149
     243#: includes/admin/wps-settings.php:152
    241244msgid "Disable WC Pickup Store css library."
    242245msgstr ""
    243246
    244 #: includes/admin/wps-settings.php:153
     247#: includes/admin/wps-settings.php:156
    245248msgid "Disable select2 on Checkout"
    246249msgstr ""
    247250
    248 #: includes/admin/wps-settings.php:157
     251#: includes/admin/wps-settings.php:160
    249252msgid "Disable select2 library for stores dropdown on Checkout page."
    250253msgstr ""
    251254
    252 #: includes/admin/wps-settings.php:165
     255#: includes/admin/wps-settings.php:168
    253256msgid "Configure tax options"
    254257msgstr ""
    255258
    256 #: includes/admin/wps-settings.php:167
     259#: includes/admin/wps-settings.php:170
    257260msgid "Configure the usage for taxes based on shipping method or per stores"
    258261msgstr ""
    259262
    260 #: includes/admin/wps-settings.php:170
     263#: includes/admin/wps-settings.php:173
    261264msgid "Tax status"
    262265msgstr ""
    263266
    264 #: includes/admin/wps-settings.php:174
     267#: includes/admin/wps-settings.php:177
    265268msgid "Taxable"
    266269msgstr ""
    267270
    268 #: includes/admin/wps-settings.php:175
     271#: includes/admin/wps-settings.php:178
    269272msgid "Taxable per store"
    270273msgstr ""
    271274
    272 #: includes/admin/wps-settings.php:178
     275#: includes/admin/wps-settings.php:181
    273276msgid "Use Taxable to enable tax calculation for the shipping method. Use Taxable per store to enable tax calculation based on store tax configuration. Use none to disable tax calculations. Avoid using Taxable per store when costs per store are disabled."
    274277msgstr ""
     
    327330msgstr ""
    328331
    329 #: includes/cpt-store.php:152
     332#. translators: %s Cost type details
     333#: includes/cpt-store.php:156
     334msgid "Current cost type: %s"
     335msgstr ""
     336
     337#: includes/cpt-store.php:163
    330338msgid "Store shipping cost"
    331339msgstr ""
    332340
    333 #: includes/cpt-store.php:155
     341#: includes/cpt-store.php:166
    334342msgid "Add shipping cost for this store."
    335343msgstr ""
    336344
    337 #: includes/cpt-store.php:160
     345#: includes/cpt-store.php:171
    338346#: templates/selected-store-details.php:4
    339347msgid "City"
    340348msgstr ""
    341349
    342 #: includes/cpt-store.php:166
     350#: includes/cpt-store.php:177
    343351#: templates/selected-store-details.php:7
    344352msgid "Phone"
    345353msgstr ""
    346354
    347 #: includes/cpt-store.php:172
     355#: includes/cpt-store.php:183
    348356msgid "Order Email Notification"
    349357msgstr ""
    350358
    351 #: includes/cpt-store.php:176
     359#: includes/cpt-store.php:187
    352360msgid "Enable order email notification"
    353361msgstr ""
    354362
    355 #: includes/cpt-store.php:178
     363#: includes/cpt-store.php:189
    356364msgid "Add email to be notified when this store is selected on an order. Comma separated for multiple email addresses."
    357365msgstr ""
    358366
    359 #: includes/cpt-store.php:185
     367#: includes/cpt-store.php:196
    360368msgid "Waze link"
    361369msgstr ""
    362370
    363 #: includes/cpt-store.php:189
     371#: includes/cpt-store.php:200
    364372msgid "Map URL"
    365373msgstr ""
    366374
    367 #: includes/cpt-store.php:192
     375#: includes/cpt-store.php:203
    368376msgid "Add map URL to be embedded. No iframe tag required."
    369377msgstr ""
    370378
    371 #: includes/cpt-store.php:196
     379#: includes/cpt-store.php:207
    372380msgid "Short description"
    373381msgstr ""
    374382
    375 #: includes/cpt-store.php:205
     383#: includes/cpt-store.php:216
    376384#: templates/selected-store-details.php:10
    377385msgid "Address"
     
    379387
    380388#. translators: %1$s - plugin version, %2$s - plugin name, %3$s - default country, %4$s - update URL
    381 #: includes/cpt-store.php:371
     389#: includes/cpt-store.php:382
    382390msgid "Since version %1$s, a new Country validation was added to %2$s. Please, update stores without country manually or use the default country %3$s %4$shere%5$s."
    383391msgstr ""
    384392
    385393#. translators: %1$s - plugin version, %2$s - plugin name
    386 #: includes/cpt-store.php:406
     394#: includes/cpt-store.php:417
    387395msgid "Since version %1$s, a new Country validation was added to %2$s and all stores have been updated."
    388396msgstr ""
    389397
    390 #: includes/cpt-store.php:477
     398#: includes/cpt-store.php:488
    391399msgctxt "Post Type General Name"
    392400msgid "Stores"
    393401msgstr ""
    394402
    395 #: includes/cpt-store.php:478
     403#: includes/cpt-store.php:489
    396404msgctxt "Post Type Singular Name"
    397405msgid "Store"
    398406msgstr ""
    399407
    400 #: includes/cpt-store.php:480
     408#: includes/cpt-store.php:491
     409#: includes/cpt-store.php:504
     410msgid "Store"
     411msgstr ""
     412
     413#: includes/cpt-store.php:492
     414msgid "Store Archives"
     415msgstr ""
     416
    401417#: includes/cpt-store.php:493
    402 msgid "Store"
    403 msgstr ""
    404 
    405 #: includes/cpt-store.php:481
    406 msgid "Store Archives"
    407 msgstr ""
    408 
    409 #: includes/cpt-store.php:482
    410418msgid "All Stores"
    411419msgstr ""
    412420
    413 #: includes/cpt-store.php:483
    414 #: includes/cpt-store.php:484
     421#: includes/cpt-store.php:494
     422#: includes/cpt-store.php:495
    415423msgid "Add New Store"
    416424msgstr ""
    417425
    418 #: includes/cpt-store.php:485
     426#: includes/cpt-store.php:496
    419427msgid "New Store"
    420428msgstr ""
    421429
    422 #: includes/cpt-store.php:486
     430#: includes/cpt-store.php:497
    423431msgid "Edit Store"
    424432msgstr ""
    425433
    426 #: includes/cpt-store.php:487
     434#: includes/cpt-store.php:498
    427435msgid "Update Store"
    428436msgstr ""
    429437
    430 #: includes/cpt-store.php:488
     438#: includes/cpt-store.php:499
    431439msgid "View Store"
    432440msgstr ""
    433441
    434 #: includes/cpt-store.php:489
     442#: includes/cpt-store.php:500
    435443msgid "View Stores"
    436444msgstr ""
    437445
    438 #: includes/cpt-store.php:490
     446#: includes/cpt-store.php:501
    439447msgid "Search Store"
    440448msgstr ""
  • wc-pickup-store/trunk/readme.txt

    r3165399 r3200657  
    44Tags: ecommerce, e-commerce, store, local pickup, store pickup, woocommerce, local shipping, store post type, recoger en tienda
    55Requires at least: 4.7
    6 Tested up to: 6.6.2
    7 Stable tag: 1.8.8
     6Tested up to: 6.7.1
     7Stable tag: 1.8.9
    88License: GPLv2
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    122122
    123123== Changelog ==
     124= 1.8.9 =
     125* Deprecated: Function wps_show_store_in_admin from action woocommerce_admin_order_data_after_billing_address removed
     126* Update: Chosen store id saved to user and order meta data in wps_store_save_order_meta
     127* New: Function wps_wc_admin_order_fields from filter woocommerce_admin_shipping_fields to display stores selector in admin shipping details
     128* New: Function wps_wc_process_shop_order_meta from action woocommerce_process_shop_order_meta to process store update on shop order update
     129* New: Cost type selector from settings page loading using filter wps_costs_type_options
     130* New: Shipping cost type calculation cart_total_weight added to wps_get_calculated_costs
     131* Improvement: Store field description for shipping cost in wps_store_metabox_details_content
     132* Improvement: Class WC_PICKUP_STORE initialization
     133* Update: Check for compatibility with WP 6.7.1 and WC (Legacy) 9.4.2
     134
    124135= 1.8.8 =
    125136* Fix: Reported issue with title that was reseting to first store after selecting certain stores from dropdown on the Checkout in wps_store_get_store_admin
     
    323334
    324335== Upgrade Notice ==
     336= 1.8.9 =
     337* New: Shipping costs by cart weight
     338* New: Admin store editor in order admin page
     339
    325340= 1.8.8 =
    326341* Fix: Reported issues of store selector on the Checkout and class WC_PICKUP_STORE initialization error
  • wc-pickup-store/trunk/wc-pickup-store.php

    r3165399 r3200657  
    44 * Plugin URI: https://www.keylormendoza.com/plugins/wc-pickup-store/
    55 * Description: Allows you to set up a custom post type for stores available to use it as shipping method Local pickup in WooCommerce. It also allows your clients to choose an store on the Checkout page and also adds the store fields to the order details and email.
    6  * Version: 1.8.8
     6 * Version: 1.8.9
    77 * Requires at least: 4.7
    8  * Tested up to: 6.6.2
     8 * Tested up to: 6.7.1
    99 * WC requires at least: 3.0
    10  * WC tested up to: 9.3.3
     10 * WC tested up to: 9.4.2
    1111 * Author: Keylor Mendoza A.
    1212 * Author URI: https://www.keylormendoza.com
     
    2222
    2323if ( !defined( 'WPS_PLUGIN_VERSION' ) ) {
    24     define( 'WPS_PLUGIN_VERSION', '1.8.8' );
     24    define( 'WPS_PLUGIN_VERSION', '1.8.9' );
    2525}
    2626
Note: See TracChangeset for help on using the changeset viewer.