Changeset 3200657
- Timestamp:
- 12/02/2024 07:50:14 AM (16 months ago)
- Location:
- wc-pickup-store
- Files:
-
- 38 added
- 7 edited
-
tags/1.8.9 (added)
-
tags/1.8.9/assets (added)
-
tags/1.8.9/assets/css (added)
-
tags/1.8.9/assets/css/stores.css (added)
-
tags/1.8.9/assets/css/stores.min.css (added)
-
tags/1.8.9/assets/images (added)
-
tags/1.8.9/assets/images/icon_waze.svg (added)
-
tags/1.8.9/assets/images/wps_placeholder.png (added)
-
tags/1.8.9/assets/js (added)
-
tags/1.8.9/assets/js/stores.js (added)
-
tags/1.8.9/assets/js/stores.min.js (added)
-
tags/1.8.9/includes (added)
-
tags/1.8.9/includes/admin (added)
-
tags/1.8.9/includes/admin/wps-admin.php (added)
-
tags/1.8.9/includes/admin/wps-settings.php (added)
-
tags/1.8.9/includes/class-wps-init.php (added)
-
tags/1.8.9/includes/cpt-store.php (added)
-
tags/1.8.9/includes/integrations (added)
-
tags/1.8.9/includes/integrations/class-vc_stores.php (added)
-
tags/1.8.9/includes/integrations/class-widget-stores.php (added)
-
tags/1.8.9/includes/wps-functions.php (added)
-
tags/1.8.9/index.php (added)
-
tags/1.8.9/languages (added)
-
tags/1.8.9/languages/wc-pickup-store-es_CR.mo (added)
-
tags/1.8.9/languages/wc-pickup-store-es_CR.po (added)
-
tags/1.8.9/languages/wc-pickup-store-es_ES.mo (added)
-
tags/1.8.9/languages/wc-pickup-store-es_ES.po (added)
-
tags/1.8.9/languages/wc-pickup-store-fr_FR.mo (added)
-
tags/1.8.9/languages/wc-pickup-store-fr_FR.po (added)
-
tags/1.8.9/languages/wc-pickup-store.pot (added)
-
tags/1.8.9/readme.txt (added)
-
tags/1.8.9/templates (added)
-
tags/1.8.9/templates/archive-store.php (added)
-
tags/1.8.9/templates/selected-store-details.php (added)
-
tags/1.8.9/templates/single-store.php (added)
-
tags/1.8.9/templates/wrapper-store.php (added)
-
tags/1.8.9/templates/wrapper-vc_stores.php (added)
-
tags/1.8.9/wc-pickup-store.php (added)
-
trunk/includes/admin/wps-admin.php (modified) (4 diffs)
-
trunk/includes/admin/wps-settings.php (modified) (2 diffs)
-
trunk/includes/class-wps-init.php (modified) (4 diffs)
-
trunk/includes/cpt-store.php (modified) (2 diffs)
-
trunk/languages/wc-pickup-store.pot (modified) (9 diffs)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wc-pickup-store.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-pickup-store/trunk/includes/admin/wps-admin.php
r3165399 r3200657 102 102 * Save the custom field. 103 103 * 104 * @version 1.8. 6104 * @version 1.8.9 105 105 * @since 1.x 106 106 * … … 111 111 $user_id = $current_user->ID; 112 112 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 ); 118 125 // $order->save() is triggered from parent create_order method 119 126 } … … 170 177 171 178 /** 172 * Add selected store to billing details, admin page173 *174 * @version 1.8.6175 * @since 1.x176 *177 * @param WC_Order $order178 */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 <?php189 }190 }191 add_action('woocommerce_admin_order_data_after_billing_address', 'wps_show_store_in_admin');192 193 /**194 179 * Language 195 180 */ … … 213 198 return apply_filters('wps_no_stores_availables_message', __('There are not available stores. Please choose another shipping method.', 'wc-pickup-store')); 214 199 } 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 */ 211 function 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 } 233 add_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 */ 243 function 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 } 258 add_action( 'woocommerce_process_shop_order_meta', 'wps_wc_process_shop_order_meta', 100 ); -
wc-pickup-store/trunk/includes/admin/wps-settings.php
r3156086 r3200657 1 1 <?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 2 9 /** 3 * @version 1.8. 710 * @version 1.8.9 4 11 * @since 1.x 5 12 */ … … 41 48 'description' => __( 'Choose a shipping costs type to calculate Pick up store costs. Use None to deactivate shipping store costs', 'wc-pickup-store' ), 42 49 '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, 48 51 'desc_tip' => true 49 52 ), -
wc-pickup-store/trunk/includes/class-wps-init.php
r3165399 r3200657 13 13 * Declare Shipping Method 14 14 * 15 * @version 1.8. 815 * @version 1.8.9 16 16 * @since 1.x 17 17 */ … … 200 200 201 201 /** 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 ) { 209 222 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; 211 224 break; 212 225 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; 216 229 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 } 219 236 break; 220 237 } 221 } else {222 $costs = 0;223 238 } 224 239 … … 287 302 } 288 303 } 289 new WC_PICKUP_STORE();290 304 291 305 /** … … 295 309 return new WC_PICKUP_STORE(); 296 310 } 311 WPS(); 297 312 } 298 313 } -
wc-pickup-store/trunk/includes/cpt-store.php
r3156086 r3200657 102 102 * Metabox Store content 103 103 * 104 * @version 1.8. 6104 * @version 1.8.9 105 105 * @since 1.x 106 106 * … … 148 148 <?php } ?> 149 149 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 ?> 151 162 <tr> 152 163 <th><?php _e('Store shipping cost', 'wc-pickup-store') ?></th> 153 164 <td> 154 165 <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> 156 167 </tr> 157 168 <?php } ?> -
wc-pickup-store/trunk/languages/wc-pickup-store.pot
r3165399 r3200657 1 1 # 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. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WC Pickup Store 1.8. 6\n"5 "Project-Id-Version: WC Pickup Store 1.8.9\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/wc-pickup-store\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "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" 13 13 "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" 15 15 "X-Domain: wc-pickup-store\n" 16 16 … … 39 39 40 40 #: includes/admin/wps-admin.php:10 41 #: includes/admin/wps-settings.php: 3441 #: includes/admin/wps-settings.php:41 42 42 #: includes/wps-functions.php:42 43 43 msgid "Select a store" … … 50 50 51 51 #: includes/admin/wps-admin.php:19 52 #: includes/admin/wps-settings.php: 4453 #: includes/admin/wps-settings.php:17 352 #: includes/admin/wps-settings.php:3 53 #: includes/admin/wps-settings.php:176 54 54 msgid "None" 55 55 msgstr "" … … 61 61 62 62 #: includes/admin/wps-admin.php:35 63 #: includes/cpt-store.php:4 7964 #: includes/cpt-store.php: 49463 #: includes/cpt-store.php:490 64 #: includes/cpt-store.php:505 65 65 msgid "Stores" 66 66 msgstr "" … … 70 70 msgstr "" 71 71 72 #: includes/admin/wps-admin.php:1 2973 #: includes/admin/wps-admin.php:1 4372 #: includes/admin/wps-admin.php:137 73 #: includes/admin/wps-admin.php:151 74 74 #: includes/integrations/class-vc_stores.php:33 75 75 #: includes/integrations/class-vc_stores.php:41 … … 81 81 msgstr "" 82 82 83 #: includes/admin/wps-admin.php:1 5883 #: includes/admin/wps-admin.php:166 84 84 msgid "You must either choose a store or use other shipping method" 85 85 msgstr "" 86 86 87 #: includes/admin/wps-admin.php:184 87 #: includes/admin/wps-admin.php:198 88 msgid "There are not available stores. Please choose another shipping method." 89 msgstr "" 90 91 #: includes/admin/wps-settings.php:4 92 msgid "Flat Rate" 93 msgstr "" 94 95 #: includes/admin/wps-settings.php:5 96 msgid "Percentage" 97 msgstr "" 98 99 #: includes/admin/wps-settings.php:6 100 msgid "Cart Total Weight" 101 msgstr "" 102 103 #: includes/admin/wps-settings.php:15 104 msgid "Enable/Disable" 105 msgstr "" 106 107 #: includes/admin/wps-settings.php:17 108 #: includes/admin/wps-settings.php:25 109 #: includes/admin/wps-settings.php:64 110 msgid "Enable" 111 msgstr "" 112 113 #: includes/admin/wps-settings.php:19 114 msgid "Enable/Disable shipping method" 115 msgstr "" 116 117 #: includes/admin/wps-settings.php:23 118 msgid "Enable stores in checkout" 119 msgstr "" 120 88 121 #: includes/admin/wps-settings.php:27 122 msgid "Shows select field to pick a store in checkout" 123 msgstr "" 124 125 #: includes/admin/wps-settings.php:31 126 msgid "Shipping Method Title" 127 msgstr "" 128 129 #: includes/admin/wps-settings.php:33 130 msgid "Label that appears in checkout options" 131 msgstr "" 132 133 #: includes/admin/wps-settings.php:34 89 134 #: includes/class-wps-init.php:179 90 135 msgid "Pickup Store" 91 136 msgstr "" 92 137 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 128 139 msgid "Select first option text" 129 140 msgstr "" 130 141 131 #: includes/admin/wps-settings.php: 33142 #: includes/admin/wps-settings.php:40 132 143 msgid "Text to be displayed as first option of the stores dropdown" 133 144 msgstr "" 134 145 135 #: includes/admin/wps-settings.php: 38146 #: includes/admin/wps-settings.php:45 136 147 msgid "Shipping Costs Type" 137 148 msgstr "" 138 149 139 #: includes/admin/wps-settings.php:4 1150 #: includes/admin/wps-settings.php:48 140 151 msgid "Choose a shipping costs type to calculate Pick up store costs. Use None to deactivate shipping store costs" 141 152 msgstr "" 142 153 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 152 155 msgid "Shipping Costs" 153 156 msgstr "" 154 157 155 #: includes/admin/wps-settings.php:5 3158 #: includes/admin/wps-settings.php:56 156 159 msgid "Adds main shipping cost to store pickup" 157 160 msgstr "" 158 161 159 #: includes/admin/wps-settings.php: 59162 #: includes/admin/wps-settings.php:62 160 163 msgid "Enable costs per store" 161 164 msgstr "" 162 165 163 #: includes/admin/wps-settings.php:6 3166 #: includes/admin/wps-settings.php:66 164 167 msgid "Allows to add shipping costs by store that will override the main shipping cost." 165 168 msgstr "" 166 169 167 #: includes/admin/wps-settings.php: 67170 #: includes/admin/wps-settings.php:70 168 171 msgid "Order Stores by" 169 172 msgstr "" 170 173 171 #: includes/admin/wps-settings.php:70 174 #: includes/admin/wps-settings.php:73 175 #: includes/admin/wps-settings.php:87 176 msgid "Choose what order the stores will be shown" 177 msgstr "" 178 172 179 #: 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:81177 180 msgid "Order" 178 181 msgstr "" 179 182 180 #: includes/admin/wps-settings.php:9 4183 #: includes/admin/wps-settings.php:97 181 184 msgid "Choose a default store to Checkout" 182 185 msgstr "" 183 186 184 #: includes/admin/wps-settings.php: 98187 #: includes/admin/wps-settings.php:101 185 188 msgid "Checkout notification" 186 189 msgstr "" 187 190 188 #: includes/admin/wps-settings.php:10 0191 #: includes/admin/wps-settings.php:103 189 192 msgid "Message that appears next to shipping options on the Checkout page" 190 193 msgstr "" 191 194 192 #: includes/admin/wps-settings.php:10 5195 #: includes/admin/wps-settings.php:108 193 196 msgid "Hide store details on Checkout" 194 197 msgstr "" 195 198 196 #: includes/admin/wps-settings.php:1 07199 #: includes/admin/wps-settings.php:110 197 200 msgid "Hide" 198 201 msgstr "" 199 202 200 #: includes/admin/wps-settings.php:1 09203 #: includes/admin/wps-settings.php:112 201 204 msgid "Hide selected store details on the Checkout page." 202 205 msgstr "" 203 206 204 #: includes/admin/wps-settings.php:11 3207 #: includes/admin/wps-settings.php:116 205 208 msgid "Disable store filtering by Country" 206 209 msgstr "" 207 210 208 #: includes/admin/wps-settings.php:11 5209 #: includes/admin/wps-settings.php:12 4210 #: includes/admin/wps-settings.php:13 6211 #: includes/admin/wps-settings.php:1 47212 #: includes/admin/wps-settings.php:15 5211 #: 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 213 216 msgid "Disable" 214 217 msgstr "" 215 218 216 #: includes/admin/wps-settings.php:1 17219 #: includes/admin/wps-settings.php:120 217 220 msgid "By default, stores will be filtered by country on the Checkout." 218 221 msgstr "" 219 222 220 223 #. translators: %s - library version 221 #: includes/admin/wps-settings.php:12 5222 #: includes/admin/wps-settings.php:12 6223 #: includes/admin/wps-settings.php:1 37224 #: includes/admin/wps-settings.php:1 38224 #: 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 225 228 msgid "Use version %s" 226 229 msgstr "" 227 230 228 #: includes/admin/wps-settings.php:1 29231 #: includes/admin/wps-settings.php:132 229 232 msgid "Choose for external Bootstrap library version. Use Disable to disable the library." 230 233 msgstr "" 231 234 232 #: includes/admin/wps-settings.php:14 1235 #: includes/admin/wps-settings.php:144 233 236 msgid "Choose for external Font Awesome library version. Use Disable to disable the library." 234 237 msgstr "" 235 238 236 #: includes/admin/wps-settings.php:14 5239 #: includes/admin/wps-settings.php:148 237 240 msgid "Disable local css" 238 241 msgstr "" 239 242 240 #: includes/admin/wps-settings.php:1 49243 #: includes/admin/wps-settings.php:152 241 244 msgid "Disable WC Pickup Store css library." 242 245 msgstr "" 243 246 244 #: includes/admin/wps-settings.php:15 3247 #: includes/admin/wps-settings.php:156 245 248 msgid "Disable select2 on Checkout" 246 249 msgstr "" 247 250 248 #: includes/admin/wps-settings.php:1 57251 #: includes/admin/wps-settings.php:160 249 252 msgid "Disable select2 library for stores dropdown on Checkout page." 250 253 msgstr "" 251 254 252 #: includes/admin/wps-settings.php:16 5255 #: includes/admin/wps-settings.php:168 253 256 msgid "Configure tax options" 254 257 msgstr "" 255 258 256 #: includes/admin/wps-settings.php:1 67259 #: includes/admin/wps-settings.php:170 257 260 msgid "Configure the usage for taxes based on shipping method or per stores" 258 261 msgstr "" 259 262 260 #: includes/admin/wps-settings.php:17 0263 #: includes/admin/wps-settings.php:173 261 264 msgid "Tax status" 262 265 msgstr "" 263 266 264 #: includes/admin/wps-settings.php:17 4267 #: includes/admin/wps-settings.php:177 265 268 msgid "Taxable" 266 269 msgstr "" 267 270 268 #: includes/admin/wps-settings.php:17 5271 #: includes/admin/wps-settings.php:178 269 272 msgid "Taxable per store" 270 273 msgstr "" 271 274 272 #: includes/admin/wps-settings.php:1 78275 #: includes/admin/wps-settings.php:181 273 276 msgid "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." 274 277 msgstr "" … … 327 330 msgstr "" 328 331 329 #: includes/cpt-store.php:152 332 #. translators: %s Cost type details 333 #: includes/cpt-store.php:156 334 msgid "Current cost type: %s" 335 msgstr "" 336 337 #: includes/cpt-store.php:163 330 338 msgid "Store shipping cost" 331 339 msgstr "" 332 340 333 #: includes/cpt-store.php:1 55341 #: includes/cpt-store.php:166 334 342 msgid "Add shipping cost for this store." 335 343 msgstr "" 336 344 337 #: includes/cpt-store.php:1 60345 #: includes/cpt-store.php:171 338 346 #: templates/selected-store-details.php:4 339 347 msgid "City" 340 348 msgstr "" 341 349 342 #: includes/cpt-store.php:1 66350 #: includes/cpt-store.php:177 343 351 #: templates/selected-store-details.php:7 344 352 msgid "Phone" 345 353 msgstr "" 346 354 347 #: includes/cpt-store.php:1 72355 #: includes/cpt-store.php:183 348 356 msgid "Order Email Notification" 349 357 msgstr "" 350 358 351 #: includes/cpt-store.php:1 76359 #: includes/cpt-store.php:187 352 360 msgid "Enable order email notification" 353 361 msgstr "" 354 362 355 #: includes/cpt-store.php:1 78363 #: includes/cpt-store.php:189 356 364 msgid "Add email to be notified when this store is selected on an order. Comma separated for multiple email addresses." 357 365 msgstr "" 358 366 359 #: includes/cpt-store.php:1 85367 #: includes/cpt-store.php:196 360 368 msgid "Waze link" 361 369 msgstr "" 362 370 363 #: includes/cpt-store.php: 189371 #: includes/cpt-store.php:200 364 372 msgid "Map URL" 365 373 msgstr "" 366 374 367 #: includes/cpt-store.php: 192375 #: includes/cpt-store.php:203 368 376 msgid "Add map URL to be embedded. No iframe tag required." 369 377 msgstr "" 370 378 371 #: includes/cpt-store.php: 196379 #: includes/cpt-store.php:207 372 380 msgid "Short description" 373 381 msgstr "" 374 382 375 #: includes/cpt-store.php:2 05383 #: includes/cpt-store.php:216 376 384 #: templates/selected-store-details.php:10 377 385 msgid "Address" … … 379 387 380 388 #. translators: %1$s - plugin version, %2$s - plugin name, %3$s - default country, %4$s - update URL 381 #: includes/cpt-store.php:3 71389 #: includes/cpt-store.php:382 382 390 msgid "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." 383 391 msgstr "" 384 392 385 393 #. translators: %1$s - plugin version, %2$s - plugin name 386 #: includes/cpt-store.php:4 06394 #: includes/cpt-store.php:417 387 395 msgid "Since version %1$s, a new Country validation was added to %2$s and all stores have been updated." 388 396 msgstr "" 389 397 390 #: includes/cpt-store.php:4 77398 #: includes/cpt-store.php:488 391 399 msgctxt "Post Type General Name" 392 400 msgid "Stores" 393 401 msgstr "" 394 402 395 #: includes/cpt-store.php:4 78403 #: includes/cpt-store.php:489 396 404 msgctxt "Post Type Singular Name" 397 405 msgid "Store" 398 406 msgstr "" 399 407 400 #: includes/cpt-store.php:480 408 #: includes/cpt-store.php:491 409 #: includes/cpt-store.php:504 410 msgid "Store" 411 msgstr "" 412 413 #: includes/cpt-store.php:492 414 msgid "Store Archives" 415 msgstr "" 416 401 417 #: includes/cpt-store.php:493 402 msgid "Store"403 msgstr ""404 405 #: includes/cpt-store.php:481406 msgid "Store Archives"407 msgstr ""408 409 #: includes/cpt-store.php:482410 418 msgid "All Stores" 411 419 msgstr "" 412 420 413 #: includes/cpt-store.php:4 83414 #: includes/cpt-store.php:4 84421 #: includes/cpt-store.php:494 422 #: includes/cpt-store.php:495 415 423 msgid "Add New Store" 416 424 msgstr "" 417 425 418 #: includes/cpt-store.php:4 85426 #: includes/cpt-store.php:496 419 427 msgid "New Store" 420 428 msgstr "" 421 429 422 #: includes/cpt-store.php:4 86430 #: includes/cpt-store.php:497 423 431 msgid "Edit Store" 424 432 msgstr "" 425 433 426 #: includes/cpt-store.php:4 87434 #: includes/cpt-store.php:498 427 435 msgid "Update Store" 428 436 msgstr "" 429 437 430 #: includes/cpt-store.php:4 88438 #: includes/cpt-store.php:499 431 439 msgid "View Store" 432 440 msgstr "" 433 441 434 #: includes/cpt-store.php: 489442 #: includes/cpt-store.php:500 435 443 msgid "View Stores" 436 444 msgstr "" 437 445 438 #: includes/cpt-store.php: 490446 #: includes/cpt-store.php:501 439 447 msgid "Search Store" 440 448 msgstr "" -
wc-pickup-store/trunk/readme.txt
r3165399 r3200657 4 4 Tags: ecommerce, e-commerce, store, local pickup, store pickup, woocommerce, local shipping, store post type, recoger en tienda 5 5 Requires at least: 4.7 6 Tested up to: 6. 6.27 Stable tag: 1.8. 86 Tested up to: 6.7.1 7 Stable tag: 1.8.9 8 8 License: GPLv2 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 122 122 123 123 == 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 124 135 = 1.8.8 = 125 136 * 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 … … 323 334 324 335 == Upgrade Notice == 336 = 1.8.9 = 337 * New: Shipping costs by cart weight 338 * New: Admin store editor in order admin page 339 325 340 = 1.8.8 = 326 341 * 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 4 4 * Plugin URI: https://www.keylormendoza.com/plugins/wc-pickup-store/ 5 5 * 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. 86 * Version: 1.8.9 7 7 * Requires at least: 4.7 8 * Tested up to: 6. 6.28 * Tested up to: 6.7.1 9 9 * WC requires at least: 3.0 10 * WC tested up to: 9. 3.310 * WC tested up to: 9.4.2 11 11 * Author: Keylor Mendoza A. 12 12 * Author URI: https://www.keylormendoza.com … … 22 22 23 23 if ( !defined( 'WPS_PLUGIN_VERSION' ) ) { 24 define( 'WPS_PLUGIN_VERSION', '1.8. 8' );24 define( 'WPS_PLUGIN_VERSION', '1.8.9' ); 25 25 } 26 26
Note: See TracChangeset
for help on using the changeset viewer.