Changeset 3002003
- Timestamp:
- 11/27/2023 06:13:14 AM (2 years ago)
- Location:
- wc-pickup-store
- Files:
-
- 38 added
- 9 edited
-
tags/1.8.6 (added)
-
tags/1.8.6/assets (added)
-
tags/1.8.6/assets/css (added)
-
tags/1.8.6/assets/css/stores.css (added)
-
tags/1.8.6/assets/css/stores.min.css (added)
-
tags/1.8.6/assets/images (added)
-
tags/1.8.6/assets/images/icon_waze.svg (added)
-
tags/1.8.6/assets/images/wps_placeholder.png (added)
-
tags/1.8.6/assets/js (added)
-
tags/1.8.6/assets/js/stores.js (added)
-
tags/1.8.6/assets/js/stores.min.js (added)
-
tags/1.8.6/includes (added)
-
tags/1.8.6/includes/admin (added)
-
tags/1.8.6/includes/admin/wps-admin.php (added)
-
tags/1.8.6/includes/admin/wps-settings.php (added)
-
tags/1.8.6/includes/class-wps-init.php (added)
-
tags/1.8.6/includes/cpt-store.php (added)
-
tags/1.8.6/includes/integrations (added)
-
tags/1.8.6/includes/integrations/class-vc_stores.php (added)
-
tags/1.8.6/includes/integrations/class-widget-stores.php (added)
-
tags/1.8.6/includes/wps-functions.php (added)
-
tags/1.8.6/index.php (added)
-
tags/1.8.6/languages (added)
-
tags/1.8.6/languages/wc-pickup-store-es_CR.mo (added)
-
tags/1.8.6/languages/wc-pickup-store-es_CR.po (added)
-
tags/1.8.6/languages/wc-pickup-store-es_ES.mo (added)
-
tags/1.8.6/languages/wc-pickup-store-es_ES.po (added)
-
tags/1.8.6/languages/wc-pickup-store-fr_FR.mo (added)
-
tags/1.8.6/languages/wc-pickup-store-fr_FR.po (added)
-
tags/1.8.6/languages/wc-pickup-store.pot (added)
-
tags/1.8.6/readme.txt (added)
-
tags/1.8.6/templates (added)
-
tags/1.8.6/templates/archive-store.php (added)
-
tags/1.8.6/templates/selected-store-details.php (added)
-
tags/1.8.6/templates/single-store.php (added)
-
tags/1.8.6/templates/wrapper-store.php (added)
-
tags/1.8.6/templates/wrapper-vc_stores.php (added)
-
tags/1.8.6/wc-pickup-store.php (added)
-
trunk/includes/admin/wps-admin.php (modified) (5 diffs)
-
trunk/includes/class-wps-init.php (modified) (1 diff)
-
trunk/includes/cpt-store.php (modified) (15 diffs)
-
trunk/includes/integrations/class-vc_stores.php (modified) (5 diffs)
-
trunk/includes/integrations/class-widget-stores.php (modified) (4 diffs)
-
trunk/includes/wps-functions.php (modified) (12 diffs)
-
trunk/languages/wc-pickup-store.pot (modified) (14 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/wc-pickup-store.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-pickup-store/trunk/includes/admin/wps-admin.php
r2904913 r3002003 86 86 /** 87 87 * Save the custom field. 88 * 89 * @version 1.8.6 90 * @since 1.x 91 * 92 * @param WC_Order $order 88 93 */ 89 function wps_store_save_order_meta( $order_id) {94 function wps_store_save_order_meta( $order ) { 90 95 $current_user = wp_get_current_user(); 91 96 $user_id = $current_user->ID; … … 94 99 95 100 if ( $store ) { 96 update_post_meta($order_id, '_shipping_pickup_stores', $store); 97 update_user_meta($user_id, '_shipping_pickup_stores', $store); 101 update_user_meta( $user_id, '_shipping_pickup_stores', $store ); 102 $order->add_meta_data( '_shipping_pickup_stores', $store ); 103 // $order->save() is triggered from parent create_order method 98 104 } 99 105 } 100 add_action( 'woocommerce_checkout_update_order_meta', 'wps_store_save_order_meta');106 add_action( 'woocommerce_checkout_create_order', 'wps_store_save_order_meta' ); 101 107 102 108 /** … … 129 135 * Check store field before allow checkout to proceed. 130 136 * 137 * @version 1.8.5 131 138 * @since 1.5.x 132 * @version 1.8.5133 139 */ 134 140 function wps_store_validate_checkout( $data ) { … … 150 156 /** 151 157 * Add selected store to billing details, admin page 158 * 159 * @version 1.8.6 160 * @since 1.x 161 * 162 * @param WC_Order $order 152 163 */ 153 function wps_show_store_in_admin($order) { 154 $order_id = $order->get_id(); 155 $store = (!empty(wps_get_post_meta($order_id, '_shipping_pickup_stores'))) ? wps_get_post_meta($order_id, '_shipping_pickup_stores') : ''; 164 function wps_show_store_in_admin( $order ) { 165 $store = $order->get_meta( '_shipping_pickup_stores' ); 156 166 157 if (!empty($store)) :167 if ( !empty( $store ) ) { 158 168 ?> 159 169 <p> … … 162 172 </p> 163 173 <?php 164 endif;174 } 165 175 } 166 176 add_action('woocommerce_admin_order_data_after_billing_address', 'wps_show_store_in_admin'); -
wc-pickup-store/trunk/includes/class-wps-init.php
r2904913 r3002003 157 157 } 158 158 159 public function wc_reordering_order_item_totals($total_rows, $order, $tax_display) 160 { 161 /* Update 1.5.9 */ 162 $order_id = $order->get_id(); 163 $store = wps_get_post_meta($order_id, '_shipping_pickup_stores'); 164 $formatted_title = (!empty($this->costs) && $this->costs_per_store != 'yes') ? $this->title . ': ' . wc_price($this->wps_get_calculated_costs($this->costs, true, $order)) : $this->title; 159 /** 160 * @version 1.8.6 161 * @since 1.x 162 * 163 * @param array $total_rows 164 * @param WC_Order $order 165 * @param string $tax_display Tax to display. 166 */ 167 public function wc_reordering_order_item_totals( $total_rows, $order, $tax_display ) 168 { 169 $store = $order->get_meta( '_shipping_pickup_stores' ); 170 $formatted_title = ( !empty( $this->costs ) && $this->costs_per_store != 'yes' ) ? $this->title . ': ' . wc_price( $this->wps_get_calculated_costs( $this->costs, true, $order ) ) : $this->title; 165 171 $item_label[] = __('Pickup Store', 'wc-pickup-store'); 166 if ( !empty($this->checkout_notification))172 if ( !empty( $this->checkout_notification ) ) { 167 173 $item_label[] = $this->checkout_notification; 168 169 if($order->has_shipping_method($this->id) && !empty($store)) { 170 foreach ($total_rows as $key => $row) { 174 } 175 176 if ( $order->has_shipping_method( $this->id ) && !empty( $store ) ) { 177 foreach ( $total_rows as $key => $row ) { 171 178 $new_rows[$key] = $row; 172 if ($key == 'shipping') {179 if ( $key == 'shipping' ) { 173 180 $new_rows['shipping']['value'] = $formatted_title; // Shipping title 174 181 $new_rows[$this->id] = array( 175 'label' => apply_filters( 'wps_order_shipping_item_label', implode(': ', $item_label), $this->checkout_notification),182 'label' => apply_filters( 'wps_order_shipping_item_label', implode( ': ', $item_label ), $this->checkout_notification ), 176 183 'value' => $store 177 184 ); -
wc-pickup-store/trunk/includes/cpt-store.php
r2904913 r3002003 19 19 add_filter('manage_edit-store_columns', 'wps_store_id_columns'); 20 20 21 function wps_store_id_column_content($name, $post_id) { 22 $exclude_store = get_post_meta($post_id, '_exclude_store', true); 23 $store_country = get_post_meta($post_id, 'store_country', true); 21 /** 22 * @version 1.8.6 23 * @since 1.x 24 */ 25 function wps_store_id_column_content( $name, $post_id ) { 26 $exclude_store = wps_get_post_meta( $post_id, '_exclude_store' ); 27 $store_country = wps_get_post_meta( $post_id, 'store_country' ); 24 28 25 29 switch ($name) { … … 34 38 <?php endif; ?> 35 39 <?php 36 do_action( 'wps_store_column_custom_fields', $post_id);40 do_action( 'wps_store_column_custom_fields', $post_id ); 37 41 break; 38 42 } 39 43 } 40 add_filter( 'manage_store_posts_custom_column', 'wps_store_id_column_content', 10, 2);44 add_filter( 'manage_store_posts_custom_column', 'wps_store_id_column_content', 10, 2 ); 41 45 42 46 /** … … 52 56 * Metabox Miscellaneous content 53 57 * 58 * @version 1.8.0 54 59 * @since 1.0.0 55 * @version 1.8.0 60 * 61 * @param WP_Post $post 56 62 */ 57 63 function wps_store_misc_metabox_content( $post ) { … … 96 102 * Metabox Store content 97 103 * 98 * @since 1.0.0 99 */ 100 function wps_store_metabox_details_content($post) { 104 * @version 1.8.6 105 * @since 1.x 106 * 107 * @param WP_Post $post 108 */ 109 function wps_store_metabox_details_content( $post ) { 101 110 // Display code/markup goes here. Don't forget to include nonces! 102 111 $pid = $post->ID; 103 $city = get_post_meta( $pid, 'city', true ); 104 $phone = get_post_meta( $pid, 'phone', true ); 105 $map = get_post_meta( $pid, 'map', true ); 106 $waze = get_post_meta( $pid, 'waze', true ); 107 $description = get_post_meta( $pid, 'description', true ); 108 $address = get_post_meta( $pid, 'address', true ); 109 $store_shipping_cost = get_post_meta( $pid, 'store_shipping_cost', true ); 110 111 $store_order_email = get_post_meta( $pid, 'store_order_email', true ); 112 $enable_order_email = get_post_meta( $pid, 'enable_order_email', true ); 113 114 if (wps_check_countries_count()) 115 $store_country = get_post_meta( $pid, 'store_country', true ); 116 $store_country = (!empty($store_country)) ? $store_country : wps_get_wc_default_country(); 112 $city = wps_get_post_meta( $pid, 'city' ); 113 $phone = wps_get_post_meta( $pid, 'phone' ); 114 $map = wps_get_post_meta( $pid, 'map' ); 115 $waze = wps_get_post_meta( $pid, 'waze' ); 116 $description = wps_get_post_meta( $pid, 'description' ); 117 $address = wps_get_post_meta( $pid, 'address' ); 118 $store_shipping_cost = wps_get_post_meta( $pid, 'store_shipping_cost' ); 119 120 $store_order_email = wps_get_post_meta( $pid, 'store_order_email' ); 121 $enable_order_email = wps_get_post_meta( $pid, 'enable_order_email' ); 122 $store_country = ''; 123 124 if ( wps_check_countries_count() ) { 125 $store_country = wps_get_post_meta( $pid, 'store_country' ); 126 } 127 $store_country = !empty( $store_country ) ? $store_country : wps_get_wc_default_country(); 128 $allowed_countries = wps_check_countries_count( false ); 117 129 118 130 // Add a nonce field so we can check for it later. … … 120 132 ?> 121 133 <table class="form-table"> 122 <?php if ( $allowed_countries = wps_check_countries_count(false)) :?>134 <?php if ( $allowed_countries ) { ?> 123 135 <tr> 124 136 <th><?php _e('Country', 'wc-pickup-store') ?></th> … … 126 138 <select name="store_country" class="wc-enhanced-select" id="store-country"> 127 139 <option value="-1"><?= __('Choose a country', 'wc-pickup-store') ?></option> 128 <?php foreach ( $allowed_countries as $key => $country) :?>129 <option value="<?= $country['code'] ?>" <?php selected( $store_country, $country['code']) ?>><?= $country['name'] ?></option>130 <?php endforeach;?>140 <?php foreach ( $allowed_countries as $country ) { ?> 141 <option value="<?= $country['code'] ?>" <?php selected( $store_country, $country['code'] ) ?>><?= $country['name'] ?></option> 142 <?php } ?> 131 143 </select> 132 144 </td> 133 145 </tr> 134 <?php else:?>146 <?php } else { ?> 135 147 <input type="hidden" name="store_country" value="<?= $store_country ?>"> 136 <?php endif;?>137 138 <?php if ( WPS()->costs_per_store == 'yes') :?>148 <?php } ?> 149 150 <?php if ( WPS()->costs_per_store == 'yes' ) { ?> 139 151 <tr> 140 152 <th><?php _e('Store shipping cost', 'wc-pickup-store') ?></th> … … 143 155 <p class="description"><?= __('Add shipping cost for this store.', 'wc-pickup-store') ?></p> 144 156 </tr> 145 <?php endif;?>157 <?php } ?> 146 158 147 159 <tr> … … 162 174 <input type="text" name="store_order_email" class="regular-text" value="<?= $store_order_email ?>"><br> 163 175 <label for="enable-order-email"> 164 <input type="checkbox" id="enable-order-email" name="enable_order_email" class="form-control" <?php checked( $enable_order_email, 1) ?> /> <?php _e('Enable order email notification', 'wc-pickup-store') ?>176 <input type="checkbox" id="enable-order-email" name="enable_order_email" class="form-control" <?php checked( $enable_order_email, 1 ) ?> /> <?php _e('Enable order email notification', 'wc-pickup-store') ?> 165 177 </label> 166 178 <p class="description"><?= __('Add email to be notified when this store is selected on an order. Comma separated for multiple email addresses.', 'wc-pickup-store') ?></p> … … 186 198 <?php 187 199 $settings = array('textarea_name' => 'description', 'editor_height' => 75); 188 wp_editor( $description, 'description', $settings );200 wp_editor( $description, 'description', $settings ); 189 201 ?> 190 202 </td> … … 195 207 <?php 196 208 $settings = array('textarea_name' => 'address', 'editor_height' => 75); 197 wp_editor( $address, 'address', $settings );209 wp_editor( $address, 'address', $settings ); 198 210 ?> 199 211 </td> … … 207 219 * Save content 208 220 * 221 * @version 1.8.0 209 222 * @since 1.0.0 210 * @version 1.8.0211 223 */ 212 224 function wps_store_save_content( $post_id ) { … … 274 286 * Update to disable country filtering 275 287 * 288 * @version 1.8.2 276 289 * @since 1.6.0 277 * @version 1.8.2278 290 */ 279 291 function wps_check_countries_count($only_validate = true) { … … 343 355 * Notice stores without country 344 356 * 357 * @version 1.8.5 345 358 * @since 1.5.24 346 * @version 1.8.5347 359 */ 348 360 function wps_store_country_notice() { … … 374 386 * Update stores without Country 375 387 * 388 * @version 1.8.2 376 389 * @since 1.5.25 377 * @version 1.8.2378 390 */ 379 391 function wps_update_stores_without_country() { … … 418 430 * Check for stores without country 419 431 * 420 * TODO: Error here 421 * 432 * @version 1.8.3 422 433 * @since 1.8.2 423 * @version 1.8.3424 434 * 425 435 * @return array Array of stores without country or false if filtering is disabled -
wc-pickup-store/trunk/includes/integrations/class-vc_stores.php
r2679602 r3002003 3 3 * Custom VC Element 4 4 */ 5 if ( class_exists('WPBakeryShortcode')) {5 if ( class_exists( 'WPBakeryShortcode' ) ) { 6 6 class VC_WPS_Store_Customizations extends WPBakeryShortcode { 7 7 function __construct() { … … 136 136 } 137 137 138 public function vc_wps_store_html($atts) { 138 /** 139 * WPBakery component for stores 140 * 141 * @version 1.8.6 142 * @since 1.x 143 */ 144 public function vc_wps_store_html( $atts ) { 139 145 // Params extraction 140 146 extract( $atts ); 141 147 $layout = 'layout-list'; 142 $icon_background = (!empty($atts['store_icon_background'])) ? 'style="background: ' . $atts['store_icon_background'] . '"' : '';143 $icon_color = (!empty($atts['store_icon_color'])) ? 'style="color: ' . $atts['store_icon_color'] . '"' : '';144 145 if (!empty($atts['stores_layout']) && !empty($atts['stores_per_row'])) {148 $icon_background = !empty( $atts['store_icon_background'] ) ? 'style="background: ' . $atts['store_icon_background'] . '"' : ''; 149 $icon_color = !empty( $atts['store_icon_color'] ) ? 'style="color: ' . $atts['store_icon_color'] . '"' : ''; 150 151 if ( !empty( $atts['stores_layout'] ) && !empty( $atts['stores_per_row'] ) ) { 146 152 $layout = 'layout-grid col-layout-' . $atts['stores_per_row']; 147 } elseif (!empty($atts['stores_layout'])) {153 } elseif ( !empty( $atts['stores_layout'] ) ) { 148 154 $layout = 'layout-grid'; 149 155 } 150 156 151 $image_size = explode( 'x', strtolower($atts['store_image_size']));152 if (!empty($image_size[1])) {157 $image_size = explode( 'x', strtolower( $atts['store_image_size'] ) ); 158 if ( !empty( $image_size[1] ) ) { 153 159 $store_image_size = $image_size; 154 160 } else { … … 163 169 ); 164 170 165 if (!empty($atts['post_ids'])) {171 if ( !empty( $atts['post_ids'] ) ) { 166 172 $query_args['orderby'] = 'post__in'; 167 $query_args['post__in'] = explode( ',', $atts['post_ids']);168 } 169 170 $template_file = wps_locate_template( 'wrapper-vc_stores.php');173 $query_args['post__in'] = explode( ',', $atts['post_ids'] ); 174 } 175 176 $template_file = wps_locate_template( 'wrapper-vc_stores.php' ); 171 177 ob_start(); 172 $query = new WP_Query( $query_args);173 if ($query->have_posts() && $template_file) :178 $query = new WP_Query( apply_filters( 'wps_store_widget_query_args', $query_args ) ); 179 if ( $query->have_posts() && $template_file ) { 174 180 ?> 175 181 <div class="stores-container <?= $layout ?>"> … … 178 184 // global $post; 179 185 $store_id = get_the_ID(); 180 $store_city = sanitize_text_field( wps_get_post_meta($store_id, 'city'));181 $store_direction = (!empty($atts['store_direction'])) ? wp_kses_post(wps_get_post_meta($store_id, 'address')) : '';182 $store_phone = (!empty($atts['store_phone'])) ? sanitize_text_field(wps_get_post_meta($store_id, 'phone')) : '';183 $store_description = (!empty($atts['store_description'])) ? wp_kses_post(wps_get_post_meta($store_id, 'description')) : '';184 $store_waze_link = (!empty($atts['store_waze_link'])) ? esc_url(wps_get_post_meta($store_id, 'waze')) : '';186 $store_city = sanitize_text_field( wps_get_post_meta( $store_id, 'city' ) ); 187 $store_direction = !empty( $atts['store_direction'] ) ? wp_kses_post( wps_get_post_meta( $store_id, 'address' ) ) : ''; 188 $store_phone = !empty( $atts['store_phone'] ) ? sanitize_text_field( wps_get_post_meta( $store_id, 'phone' ) ) : ''; 189 $store_description = !empty( $atts['store_description'] ) ? wp_kses_post( wps_get_post_meta( $store_id, 'description' ) ) : ''; 190 $store_waze_link = !empty( $atts['store_waze_link'] ) ? esc_url( wps_get_post_meta( $store_id, 'waze' ) ) : ''; 185 191 186 192 include $template_file; … … 191 197 </div> 192 198 <?php 193 endif; 194 195 $html = ob_get_contents(); 196 ob_end_clean(); 199 } 200 201 $html = ob_get_clean(); 197 202 return $html; 198 203 } -
wc-pickup-store/trunk/includes/integrations/class-widget-stores.php
r2679602 r3002003 32 32 } 33 33 34 // Creating widget front-end 34 /** 35 * Creating widget front-end 36 * 37 * @version 1.8.6 38 * @since 1.x 39 */ 35 40 public function widget( $args, $instance ) { 36 41 $title = apply_filters( 'widget_title', $instance['title'] ); 37 $per_page = (!empty($instance['per_page'])) ? $instance['per_page'] : 1;38 $image_size = explode( 'x', strtolower($instance['store_image_size']));42 $per_page = !empty( $instance['per_page'] ) ? $instance['per_page'] : 1; 43 $image_size = explode( 'x', strtolower( $instance['store_image_size'] ) ); 39 44 $attr = array(); 45 $bootstrap_version = WPS()->bootstrap_version; 40 46 41 foreach ( $this->wps_widget_fields(array('title', 'per_page', 'image_size')) as $key => $field) {42 $attr[$field] = (!empty($instance[$field])) ? $instance[$field] : '';47 foreach ( $this->wps_widget_fields( array( 'title', 'per_page', 'image_size' ) ) as $key => $field ) { 48 $attr[$field] = !empty($instance[$field] ) ? $instance[$field] : ''; 43 49 } 44 50 45 if (!empty($image_size[1])) {51 if ( !empty( $image_size[1] ) ) { 46 52 $store_image_size = $image_size; 47 53 } else { … … 50 56 51 57 $classes = array( 52 '1' => ( WPS()->bootstrap_version == 'version_3' ) ? 'col-xs-12' : 'col-12',53 '2' => ( WPS()->bootstrap_version == 'version_3' ) ? 'col-xs-6' : 'col-6',54 '3' => ( WPS()->bootstrap_version == 'version_3' ) ? 'col-sm-4 col-xs-6' : 'col-sm-4 col-6',55 '4' => ( WPS()->bootstrap_version == 'version_3' ) ? 'col-sm-3 col-xs-6' : 'col-sm-3 col-6'58 '1' => ( $bootstrap_version == 'version_3' ) ? 'col-xs-12' : 'col-12', 59 '2' => ( $bootstrap_version == 'version_3' ) ? 'col-xs-6' : 'col-6', 60 '3' => ( $bootstrap_version == 'version_3' ) ? 'col-sm-4 col-xs-6' : 'col-sm-4 col-6', 61 '4' => ( $bootstrap_version == 'version_3' ) ? 'col-sm-3 col-xs-6' : 'col-sm-3 col-6' 56 62 ); 57 63 … … 61 67 ); 62 68 63 if (!empty($attr['post_ids'])) {69 if ( !empty( $attr['post_ids'] ) ) { 64 70 $query_args['orderby'] = 'post__in'; 65 $query_args['post__in'] = explode( ',', $attr['post_ids']);71 $query_args['post__in'] = explode( ',', $attr['post_ids'] ); 66 72 } 67 73 68 74 // before and after widget arguments are defined by themes 69 75 echo $args['before_widget']; 70 if ( ! empty( $title ) ) 76 if ( ! empty( $title ) ) { 71 77 echo $args['before_title'] . $title . $args['after_title']; 78 } 72 79 73 $template_file = wps_locate_template( 'wrapper-store.php', false);80 $template_file = wps_locate_template( 'wrapper-store.php', false ); 74 81 75 if ( $template_file) {82 if ( $template_file ) { 76 83 echo '<div class="row">'; 77 $query = new WP_Query( $query_args);78 if ($query->have_posts() ) :84 $query = new WP_Query( apply_filters( 'wps_store_widget_query_args', $query_args ) ); 85 if ( $query->have_posts() ) { 79 86 while ( $query->have_posts() ) : $query->the_post(); 80 87 global $post; … … 92 99 endwhile; 93 100 wp_reset_postdata(); 94 endif;101 } 95 102 echo '</div>'; 96 103 } 97 98 104 99 105 echo $args['after_widget']; -
wc-pickup-store/trunk/includes/wps-functions.php
r2904913 r3002003 146 146 /** 147 147 * Remove cart shipping label 148 * 149 * @version 1.7.0 148 150 * @since 1.5.24 149 * @version 1.7.0150 151 */ 151 152 function wps_shipping_method_label( $label, $method ) { … … 177 178 * Get chosen shipping method 178 179 * 180 * @version 1.8.2 179 181 * @since 1.5.x 180 * @version 1.8.2181 182 * 182 183 * @return array Chosen shipping methods or empty array … … 236 237 /** 237 238 * Add store shipping cost to cart amount 239 * 240 * @version 1.7.0 238 241 * @since 1.5.21 239 * @version 1.7.0240 242 */ 241 243 function wps_add_store_shipping_to_cart( $cart ) { … … 292 294 /** 293 295 * Get email address from store 296 * 297 * @version 1.8.6 294 298 * @since 1.5.24 295 * @version 1.7.1 296 * @param object $order 297 * @param int $store_id Optional, if empty gets the store_id from order 298 * @param bool $get_first_email Check true to get the first email address added to the store 299 * 300 * @param WC_Order $order 301 * @param int $store_id Optional, if empty gets the store_id from order 302 * @param bool $get_first_email Check true to get the first email address added to the store 303 * 299 304 * @return mixed First email address, all email addresses or false if email address field is empty 300 305 */ 301 306 function wps_get_email_address( $order, $store_id = 0, $get_first_email = false ) { 302 $order_id = $order->get_id();303 304 307 if ( $store_id == 0 ) { 305 $store_name = wps_get_post_meta($order_id, '_shipping_pickup_stores'); // Get store title for this order308 $store_name = $order->get_meta( '_shipping_pickup_stores' ); // Get store title for this order 306 309 $store_id = wps_get_store_id_by_name( $store_name ); 307 310 } 308 311 309 $store_order_email = wps_get_post_meta( $store_id, 'store_order_email');310 $enable_order_email = wps_get_post_meta( $store_id, 'enable_order_email');312 $store_order_email = wps_get_post_meta( $store_id, 'store_order_email' ); 313 $enable_order_email = wps_get_post_meta( $store_id, 'enable_order_email' ); 311 314 312 315 if ( !empty( $store_order_email ) ) { … … 329 332 /** 330 333 * Get all stores or store_id with its custom fields 334 * 335 * @version 1.7.1 331 336 * @since 1.5.22 332 * @version 1.7.1337 * 333 338 * @param int $store_id Optional 339 * 334 340 * @return array Key value array with store(s) data 335 341 */ … … 378 384 /** 379 385 * Get WPS template 386 * 387 * @version 1.8.6 380 388 * @since 1.5.22 381 389 */ 382 function wps_locate_template( $template_name) {383 $template_name = ltrim( $template_name, '/');384 $template_file = trailingslashit( plugin_dir_path(__DIR__)) . 'templates/' . $template_name;385 386 if ( locate_template('template-parts/' . $template_name)) {387 $template_file = locate_template( 'template-parts/' . $template_name, false);388 } 389 390 if ( file_exists($template_file)) {390 function wps_locate_template( $template_name ) { 391 $template_name = ltrim( $template_name, '/' ); 392 $template_file = trailingslashit( plugin_dir_path( __DIR__ ) ) . 'templates/' . $template_name; 393 394 if ( locate_template( 'template-parts/' . $template_name ) ) { 395 $template_file = locate_template( 'template-parts/' . $template_name, false ); 396 } 397 398 if ( file_exists( $template_file ) ) { 391 399 return $template_file; 392 } else {393 return false;394 }400 } 401 402 return false; 395 403 } 396 404 397 405 /** 398 406 * Custom function to return post meta using a filter 399 * @since 1.5.24 400 */ 401 function wps_get_post_meta($post_id, $custom_field) { 402 return apply_filters('wps_get_post_meta', get_post_meta($post_id, $custom_field, true), $post_id, $custom_field); 407 * 408 * @version 1.5.24 409 */ 410 function wps_get_post_meta( $post_id, $custom_field ) { 411 return apply_filters( 'wps_get_post_meta', get_post_meta( $post_id, $custom_field, true ), $post_id, $custom_field ); 403 412 } 404 413 405 414 /** 406 415 * Set message on cart page 416 * 407 417 * @version 1.6.1 408 418 */ … … 427 437 * Get store ID by store name 428 438 * 439 * @version 1.8.5 429 440 * @since 1.6.3 430 * @version 1.8.5431 441 * 432 442 * @param string $store_name … … 478 488 /** 479 489 * Get tax status configured on settings page 490 * 480 491 * @version 1.7.0 492 * 481 493 * @return mixed Chosen tax status type or false if calc_taxes option is disabled 482 494 */ … … 491 503 /** 492 504 * Get tax status 505 * 493 506 * @version 1.7.0 494 507 */ … … 515 528 /** 516 529 * Formatting shipping address for wc_pickup_store method 517 * @version 1.7.1 530 * 531 * @version 1.8.6 532 * @since 1.7.1 533 * 518 534 * @return string Address with store information 519 535 */ 520 536 function wps_wc_order_get_formatted_shipping_address( $address, $raw_address, $order ) { 521 $order_id = $order->get_id(); 522 $store_name = wps_get_post_meta( $order_id, '_shipping_pickup_stores' ); // Get store title for this order 537 $store_name = $order->get_meta( '_shipping_pickup_stores' ); // Get store title for this order 523 538 $store_id = wps_get_store_id_by_name( $store_name ); 524 539 $store = wps_stores_fields( $store_id ); … … 526 541 if ( $store_id != 0 && $order->has_shipping_method( 'wc_pickup_store' ) ) { 527 542 $address = WC()->countries->get_formatted_address( array( 528 'company' => sprintf( '%1$s: %2$s', apply_filters( 'wps_store_checkout_label', WPS()->title), $store_name ),543 'company' => sprintf( '%1$s: %2$s', apply_filters( 'wps_store_checkout_label', WPS()->title), $store_name ), 529 544 'address_1' => isset( $store['address'] ) ? wp_strip_all_tags( $store['address'] ) : '', 530 545 'city' => $store['city'] ?? '', … … 535 550 536 551 if ( $store_email = wps_get_email_address( $order, $store_id, true ) ) { 537 $address .= '<br>' . sprintf( '%1$s: %2$s', __( 'Store email', 'wc-pickup-store'), $store_email );552 $address .= '<br>' . sprintf( '%1$s: %2$s', __( 'Store email', 'wc-pickup-store' ), $store_email ); 538 553 } 539 554 } -
wc-pickup-store/trunk/languages/wc-pickup-store.pot
r2608382 r3002003 1 # Copyright (C) 202 1Keylor Mendoza A.1 # Copyright (C) 2023 Keylor Mendoza A. 2 2 # This file is distributed under the same license as the WC Pickup Store plugin. 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: WC Pickup Store 1. 7.2\n"5 "Project-Id-Version: WC Pickup Store 1.8.6\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: 202 1-10-03T05:13:04+00:00\n"12 "POT-Creation-Date: 2023-11-27T05:27:58+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.4.0\n" … … 18 18 #: includes/admin/wps-admin.php:14 19 19 #: includes/integrations/class-vc_stores.php:22 20 #: includes/integrations/class-widget-stores.php:1 320 #: includes/integrations/class-widget-stores.php:17 21 21 msgid "WC Pickup Store" 22 22 msgstr "" … … 39 39 40 40 #: includes/admin/wps-admin.php:7 41 #: includes/admin/wps-settings.php:30 41 42 #: includes/wps-functions.php:42 42 43 msgid "Select a store" … … 48 49 49 50 #: includes/admin/wps-admin.php:12 50 #: includes/admin/wps-settings.php: 3351 #: includes/admin/wps-settings.php:16 251 #: includes/admin/wps-settings.php:40 52 #: includes/admin/wps-settings.php:169 52 53 msgid "None" 53 54 msgstr "" 54 55 55 56 #: includes/admin/wps-admin.php:17 56 #: includes/class-wps-init.php:1 0057 #: includes/class-wps-init.php:135 57 58 msgid "Default store" 58 59 msgstr "" 59 60 60 61 #: includes/admin/wps-admin.php:28 61 #: includes/cpt-store.php: 35762 #: includes/cpt-store.php: 37262 #: includes/cpt-store.php:463 63 #: includes/cpt-store.php:478 63 64 msgid "Stores" 64 65 msgstr "" … … 68 69 msgstr "" 69 70 70 #: includes/admin/wps-admin.php:1 0971 #: includes/admin/wps-admin.php:12 371 #: includes/admin/wps-admin.php:115 72 #: includes/admin/wps-admin.php:129 72 73 #: includes/integrations/class-vc_stores.php:33 73 74 #: includes/integrations/class-vc_stores.php:41 … … 79 80 msgstr "" 80 81 81 #: includes/admin/wps-admin.php:1 3582 #: includes/admin/wps-admin.php:144 82 83 msgid "You must either choose a store or use other shipping method" 83 84 msgstr "" 84 85 85 #: includes/admin/wps-admin.php:1 5786 #: includes/admin/wps-admin.php:170 86 87 #: includes/admin/wps-settings.php:23 87 #: includes/class-wps-init.php:1 2888 #: includes/class-wps-init.php:171 88 89 msgid "Pickup Store" 89 90 msgstr "" 90 91 91 #: includes/admin/wps-admin.php:1 8592 #: includes/admin/wps-admin.php:198 92 93 msgid "There are not available stores. Please choose another shipping method." 93 94 msgstr "" … … 99 100 #: includes/admin/wps-settings.php:6 100 101 #: includes/admin/wps-settings.php:14 101 #: includes/admin/wps-settings.php:5 0102 #: includes/admin/wps-settings.php:57 102 103 msgid "Enable" 103 104 msgstr "" … … 124 125 125 126 #: includes/admin/wps-settings.php:27 127 msgid "Select first option text" 128 msgstr "" 129 130 #: includes/admin/wps-settings.php:29 131 msgid "Text to be displayed as first option of the stores dropdown" 132 msgstr "" 133 134 #: includes/admin/wps-settings.php:34 126 135 msgid "Shipping Costs Type" 127 136 msgstr "" 128 137 129 #: includes/admin/wps-settings.php:3 0138 #: includes/admin/wps-settings.php:37 130 139 msgid "Choose a shipping costs type to calculate Pick up store costs. Use None to deactivate shipping store costs" 131 140 msgstr "" 132 141 133 #: includes/admin/wps-settings.php: 34142 #: includes/admin/wps-settings.php:41 134 143 msgid "Flat Rate" 135 144 msgstr "" 136 145 137 #: includes/admin/wps-settings.php: 35146 #: includes/admin/wps-settings.php:42 138 147 msgid "Percentage" 139 148 msgstr "" 140 149 141 #: includes/admin/wps-settings.php:4 0150 #: includes/admin/wps-settings.php:47 142 151 msgid "Shipping Costs" 143 152 msgstr "" 144 153 145 #: includes/admin/wps-settings.php:4 2154 #: includes/admin/wps-settings.php:49 146 155 msgid "Adds main shipping cost to store pickup" 147 156 msgstr "" 148 157 149 #: includes/admin/wps-settings.php: 48158 #: includes/admin/wps-settings.php:55 150 159 msgid "Enable costs per store" 151 160 msgstr "" 152 161 153 #: includes/admin/wps-settings.php:5 2162 #: includes/admin/wps-settings.php:59 154 163 msgid "Allows to add shipping costs by store that will override the main shipping cost." 155 164 msgstr "" 156 165 157 #: includes/admin/wps-settings.php: 56166 #: includes/admin/wps-settings.php:63 158 167 msgid "Order Stores by" 159 168 msgstr "" 160 169 161 #: includes/admin/wps-settings.php: 59162 #: includes/admin/wps-settings.php: 73170 #: includes/admin/wps-settings.php:66 171 #: includes/admin/wps-settings.php:80 163 172 msgid "Choose what order the stores will be shown" 164 173 msgstr "" 165 174 166 #: includes/admin/wps-settings.php:7 0175 #: includes/admin/wps-settings.php:77 167 176 msgid "Order" 168 177 msgstr "" 169 178 170 #: includes/admin/wps-settings.php: 83179 #: includes/admin/wps-settings.php:90 171 180 msgid "Choose a default store to Checkout" 172 181 msgstr "" 173 182 174 #: includes/admin/wps-settings.php: 87183 #: includes/admin/wps-settings.php:94 175 184 msgid "Checkout notification" 176 185 msgstr "" 177 186 178 #: includes/admin/wps-settings.php: 89187 #: includes/admin/wps-settings.php:96 179 188 msgid "Message that appears next to shipping options on the Checkout page" 180 189 msgstr "" 181 190 182 #: includes/admin/wps-settings.php: 94191 #: includes/admin/wps-settings.php:101 183 192 msgid "Hide store details on Checkout" 184 193 msgstr "" 185 194 186 #: includes/admin/wps-settings.php: 96195 #: includes/admin/wps-settings.php:103 187 196 msgid "Hide" 188 197 msgstr "" 189 198 190 #: includes/admin/wps-settings.php: 98199 #: includes/admin/wps-settings.php:105 191 200 msgid "Hide selected store details on the Checkout page." 192 201 msgstr "" 193 202 194 #: includes/admin/wps-settings.php:10 2203 #: includes/admin/wps-settings.php:109 195 204 msgid "Disable store filtering by Country" 196 205 msgstr "" 197 206 198 #: includes/admin/wps-settings.php:104 207 #: includes/admin/wps-settings.php:111 208 #: includes/admin/wps-settings.php:120 209 #: includes/admin/wps-settings.php:132 210 #: includes/admin/wps-settings.php:143 211 #: includes/admin/wps-settings.php:151 212 msgid "Disable" 213 msgstr "" 214 199 215 #: includes/admin/wps-settings.php:113 216 msgid "By default, stores will be filtered by country on the Checkout." 217 msgstr "" 218 219 #: includes/admin/wps-settings.php:121 220 #: includes/admin/wps-settings.php:122 221 #: includes/admin/wps-settings.php:133 222 #: includes/admin/wps-settings.php:134 223 msgid "Use version %s" 224 msgstr "" 225 200 226 #: includes/admin/wps-settings.php:125 201 #: includes/admin/wps-settings.php:136202 #: includes/admin/wps-settings.php:144203 msgid "Disable"204 msgstr ""205 206 #: includes/admin/wps-settings.php:106207 msgid "By default, stores will be filtered by country on the Checkout."208 msgstr ""209 210 #: includes/admin/wps-settings.php:114211 #: includes/admin/wps-settings.php:115212 #: includes/admin/wps-settings.php:126213 #: includes/admin/wps-settings.php:127214 msgid "Use version %s"215 msgstr ""216 217 #: includes/admin/wps-settings.php:118218 227 msgid "Choose for external Bootstrap library version. Use Disable to disable the library." 219 228 msgstr "" 220 229 221 #: includes/admin/wps-settings.php:13 0230 #: includes/admin/wps-settings.php:137 222 231 msgid "Choose for external Font Awesome library version. Use Disable to disable the library." 223 232 msgstr "" 224 233 225 #: includes/admin/wps-settings.php:1 34234 #: includes/admin/wps-settings.php:141 226 235 msgid "Disable local css" 227 236 msgstr "" 228 237 229 #: includes/admin/wps-settings.php:1 38238 #: includes/admin/wps-settings.php:145 230 239 msgid "Disable WC Pickup Store css library." 231 240 msgstr "" 232 241 233 #: includes/admin/wps-settings.php:14 2242 #: includes/admin/wps-settings.php:149 234 243 msgid "Disable select2 on Checkout" 235 244 msgstr "" 236 245 237 #: includes/admin/wps-settings.php:1 46246 #: includes/admin/wps-settings.php:153 238 247 msgid "Disable select2 library for stores dropdown on Checkout page." 239 248 msgstr "" 240 249 241 #: includes/admin/wps-settings.php:1 54250 #: includes/admin/wps-settings.php:161 242 251 msgid "Configure tax options" 243 252 msgstr "" 244 253 245 #: includes/admin/wps-settings.php:1 56254 #: includes/admin/wps-settings.php:163 246 255 msgid "Configure the usage for taxes based on shipping method or per stores" 247 256 msgstr "" 248 257 249 #: includes/admin/wps-settings.php:1 59258 #: includes/admin/wps-settings.php:166 250 259 msgid "Tax status" 251 260 msgstr "" 252 261 253 #: includes/admin/wps-settings.php:1 63262 #: includes/admin/wps-settings.php:170 254 263 msgid "Taxable" 255 264 msgstr "" 256 265 257 #: includes/admin/wps-settings.php:1 64266 #: includes/admin/wps-settings.php:171 258 267 msgid "Taxable per store" 259 268 msgstr "" 260 269 261 #: includes/admin/wps-settings.php:1 67270 #: includes/admin/wps-settings.php:174 262 271 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." 263 272 msgstr "" 264 273 265 #: includes/class-wps-init.php: 27274 #: includes/class-wps-init.php:51 266 275 msgid "Lets users to choose a store to pick up their products" 267 276 msgstr "" 268 277 269 #: includes/class-wps-init.php:1 03278 #: includes/class-wps-init.php:138 270 279 msgid "Find this option in <a href=\"%s\" target=\"_blank\">the Customizer</a>" 271 280 msgstr "" … … 275 284 msgstr "" 276 285 277 #: includes/cpt-store.php:3 1286 #: includes/cpt-store.php:35 278 287 msgid "Exclude in Checkout?" 279 288 msgstr "" 280 289 281 #: includes/cpt-store.php:3 1290 #: includes/cpt-store.php:35 282 291 msgid "Yes" 283 292 msgstr "" 284 293 285 #: includes/cpt-store.php:3 1294 #: includes/cpt-store.php:35 286 295 msgid "No" 287 296 msgstr "" 288 297 289 #: includes/cpt-store.php:3 3298 #: includes/cpt-store.php:37 290 299 msgid "Country:" 291 300 msgstr "" 292 301 293 #: includes/cpt-store.php: 46302 #: includes/cpt-store.php:50 294 303 msgid "Miscellaneous" 295 304 msgstr "" 296 305 297 #: includes/cpt-store.php: 47306 #: includes/cpt-store.php:51 298 307 msgid "Store Fields" 299 308 msgstr "" 300 309 301 #: includes/cpt-store.php: 67310 #: includes/cpt-store.php:79 302 311 msgid "Exclude store in checkout." 303 312 msgstr "" 304 313 305 #: includes/cpt-store.php: 75314 #: includes/cpt-store.php:87 306 315 msgid "Set this store as taxable." 307 316 msgstr "" 308 317 309 #: includes/cpt-store.php:1 11318 #: includes/cpt-store.php:136 310 319 msgid "Country" 311 320 msgstr "" 312 321 313 #: includes/cpt-store.php:1 14322 #: includes/cpt-store.php:139 314 323 msgid "Choose a country" 315 324 msgstr "" 316 325 317 #: includes/cpt-store.php:1 27326 #: includes/cpt-store.php:152 318 327 msgid "Store shipping cost" 319 328 msgstr "" 320 329 321 #: includes/cpt-store.php:1 30330 #: includes/cpt-store.php:155 322 331 msgid "Add shipping cost for this store." 323 332 msgstr "" 324 333 325 #: includes/cpt-store.php:1 35334 #: includes/cpt-store.php:160 326 335 #: templates/selected-store-details.php:4 327 336 msgid "City" 328 337 msgstr "" 329 338 330 #: includes/cpt-store.php:1 41339 #: includes/cpt-store.php:166 331 340 #: templates/selected-store-details.php:7 332 341 msgid "Phone" 333 342 msgstr "" 334 343 335 #: includes/cpt-store.php:1 47344 #: includes/cpt-store.php:172 336 345 msgid "Order Email Notification" 337 346 msgstr "" 338 347 339 #: includes/cpt-store.php:1 51348 #: includes/cpt-store.php:176 340 349 msgid "Enable order email notification" 341 350 msgstr "" 342 351 343 #: includes/cpt-store.php:1 53352 #: includes/cpt-store.php:178 344 353 msgid "Add email to be notified when this store is selected on an order. Comma separated for multiple email addresses." 345 354 msgstr "" 346 355 347 #: includes/cpt-store.php:1 60356 #: includes/cpt-store.php:185 348 357 msgid "Waze link" 349 358 msgstr "" 350 359 351 #: includes/cpt-store.php:1 64360 #: includes/cpt-store.php:189 352 361 msgid "Map URL" 353 362 msgstr "" 354 363 355 #: includes/cpt-store.php:1 67364 #: includes/cpt-store.php:192 356 365 msgid "Add map URL to be embedded. No iframe tag required." 357 366 msgstr "" 358 367 359 #: includes/cpt-store.php:1 71368 #: includes/cpt-store.php:196 360 369 msgid "Short description" 361 370 msgstr "" 362 371 363 #: includes/cpt-store.php: 180372 #: includes/cpt-store.php:205 364 373 #: templates/selected-store-details.php:10 365 374 msgid "Address" 366 375 msgstr "" 367 376 368 #: includes/cpt-store.php:339 377 #: includes/cpt-store.php:370 378 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." 379 msgstr "" 380 381 #: includes/cpt-store.php:404 369 382 msgid "Since version %1$s, a new Country validation was added to %2$s and all stores have been updated." 370 383 msgstr "" 371 384 372 #: includes/cpt-store.php: 355385 #: includes/cpt-store.php:461 373 386 msgctxt "Post Type General Name" 374 387 msgid "Stores" 375 388 msgstr "" 376 389 377 #: includes/cpt-store.php: 356390 #: includes/cpt-store.php:462 378 391 msgctxt "Post Type Singular Name" 379 392 msgid "Store" 380 393 msgstr "" 381 394 382 #: includes/cpt-store.php: 358383 #: includes/cpt-store.php: 371395 #: includes/cpt-store.php:464 396 #: includes/cpt-store.php:477 384 397 msgid "Store" 385 398 msgstr "" 386 399 387 #: includes/cpt-store.php: 359400 #: includes/cpt-store.php:465 388 401 msgid "Store Archives" 389 402 msgstr "" 390 403 391 #: includes/cpt-store.php: 360404 #: includes/cpt-store.php:466 392 405 msgid "All Stores" 393 406 msgstr "" 394 407 395 #: includes/cpt-store.php: 361396 #: includes/cpt-store.php: 362408 #: includes/cpt-store.php:467 409 #: includes/cpt-store.php:468 397 410 msgid "Add New Store" 398 411 msgstr "" 399 412 400 #: includes/cpt-store.php: 363413 #: includes/cpt-store.php:469 401 414 msgid "New Store" 402 415 msgstr "" 403 416 404 #: includes/cpt-store.php: 364417 #: includes/cpt-store.php:470 405 418 msgid "Edit Store" 406 419 msgstr "" 407 420 408 #: includes/cpt-store.php: 365421 #: includes/cpt-store.php:471 409 422 msgid "Update Store" 410 423 msgstr "" 411 424 412 #: includes/cpt-store.php: 366425 #: includes/cpt-store.php:472 413 426 msgid "View Store" 414 427 msgstr "" 415 428 416 #: includes/cpt-store.php: 367429 #: includes/cpt-store.php:473 417 430 msgid "View Stores" 418 431 msgstr "" 419 432 420 #: includes/cpt-store.php: 368433 #: includes/cpt-store.php:474 421 434 msgid "Search Store" 422 435 msgstr "" … … 431 444 432 445 #: includes/integrations/class-vc_stores.php:30 433 #: includes/integrations/class-widget-stores.php:1 10446 #: includes/integrations/class-widget-stores.php:120 434 447 msgid "Stores to show" 435 448 msgstr "" 436 449 437 450 #: includes/integrations/class-vc_stores.php:34 438 #: includes/integrations/class-widget-stores.php:1 12451 #: includes/integrations/class-widget-stores.php:122 439 452 msgid "Set -1 to show all stores." 440 453 msgstr "" 441 454 442 455 #: includes/integrations/class-vc_stores.php:38 443 #: includes/integrations/class-widget-stores.php:1 15456 #: includes/integrations/class-widget-stores.php:125 444 457 msgid "Set posts IDs" 445 458 msgstr "" 446 459 447 460 #: includes/integrations/class-vc_stores.php:42 448 #: includes/integrations/class-widget-stores.php:1 17461 #: includes/integrations/class-widget-stores.php:127 449 462 msgid "Add post IDs to show followed by a comma. Ex. 01,05." 450 463 msgstr "" … … 467 480 468 481 #: includes/integrations/class-vc_stores.php:68 469 #: includes/integrations/class-widget-stores.php:1 20482 #: includes/integrations/class-widget-stores.php:130 470 483 msgid "Show image?" 471 484 msgstr "" 472 485 473 486 #: includes/integrations/class-vc_stores.php:75 474 #: includes/integrations/class-widget-stores.php:1 25487 #: includes/integrations/class-widget-stores.php:135 475 488 msgid "Image size" 476 489 msgstr "" 477 490 478 491 #: includes/integrations/class-vc_stores.php:84 479 #: includes/integrations/class-widget-stores.php:1 41492 #: includes/integrations/class-widget-stores.php:151 480 493 msgid "Show store name?" 481 494 msgstr "" … … 486 499 #: includes/integrations/class-vc_stores.php:108 487 500 #: includes/integrations/class-vc_stores.php:115 488 #: includes/integrations/class-widget-stores.php:1 39501 #: includes/integrations/class-widget-stores.php:149 489 502 msgid "Fields" 490 503 msgstr "" 491 504 492 505 #: includes/integrations/class-vc_stores.php:91 493 #: includes/integrations/class-widget-stores.php:1 51506 #: includes/integrations/class-widget-stores.php:161 494 507 msgid "Show direction?" 495 508 msgstr "" 496 509 497 510 #: includes/integrations/class-vc_stores.php:98 498 #: includes/integrations/class-widget-stores.php:1 56511 #: includes/integrations/class-widget-stores.php:166 499 512 msgid "Show phone?" 500 513 msgstr "" 501 514 502 515 #: includes/integrations/class-vc_stores.php:105 503 #: includes/integrations/class-widget-stores.php:1 61516 #: includes/integrations/class-widget-stores.php:171 504 517 msgid "Show description?" 505 518 msgstr "" … … 521 534 msgstr "" 522 535 523 #: includes/integrations/class-widget-stores.php:1 5536 #: includes/integrations/class-widget-stores.php:19 524 537 msgid "Shows store details in a widget section" 525 538 msgstr "" 526 539 527 #: includes/integrations/class-widget-stores.php:1 06540 #: includes/integrations/class-widget-stores.php:116 528 541 msgid "Title" 529 542 msgstr "" 530 543 531 #: includes/integrations/class-widget-stores.php:1 30544 #: includes/integrations/class-widget-stores.php:140 532 545 msgid "Show in columns?" 533 546 msgstr "" 534 547 535 #: includes/integrations/class-widget-stores.php:1 46548 #: includes/integrations/class-widget-stores.php:156 536 549 msgid "Show city?" 537 550 msgstr "" 538 551 539 #: includes/integrations/class-widget-stores.php:1 66552 #: includes/integrations/class-widget-stores.php:176 540 553 msgid "Show waze?" 541 554 msgstr "" 542 555 543 #: includes/wps-functions.php:26 0556 #: includes/wps-functions.php:267 544 557 msgid "Ship to %s" 545 558 msgstr "" 546 559 547 #: includes/wps-functions.php:4 06560 #: includes/wps-functions.php:421 548 561 msgid "Choose a store for picking up your order on the Checkout page." 549 562 msgstr "" 550 563 551 #: includes/wps-functions.php: 496564 #: includes/wps-functions.php:552 552 565 msgid "Store email" 553 566 msgstr "" 554 567 555 #: wc-pickup-store.php: 47568 #: wc-pickup-store.php:54 556 569 msgid "%1$s requires %2$sWooCommerce%3$s to be active." 557 570 msgstr "" 558 559 #: wc-pickup-store.php:72560 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."561 msgstr "" -
wc-pickup-store/trunk/readme.txt
r2904913 r3002003 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. 2.07 Stable tag: 1.8. 56 Tested up to: 6.4.1 7 Stable tag: 1.8.6 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.6 = 125 * Update: Check for compatibility with WC HPOS in wps_show_store_in_admin, wc_reordering_order_item_totals, wps_get_email_address, wps_wc_order_get_formatted_shipping_address and wps_store_save_order_meta 126 * Improvement: Action woocommerce_checkout_update_order_meta replaced by woocommerce_checkout_create_order in wps_store_save_order_meta 127 * Update: Replace get_post_meta with native wps_get_post_meta in wps_store_id_column_content and wps_store_metabox_details_content 128 * Review: Code review in wps_locate_template 129 * New: Filter wps_store_widget_query_args for all the query args in widget display in class-widget-stores.php 130 * New: Filter wps_store_widget_query_args for all the query args in widget display for WPBakery in class-vc_stores.php 131 * Update: Check for compatibility WC & WP 132 124 133 = 1.8.5 = 125 134 * Update: Check for compatibility with WP y WC -
wc-pickup-store/trunk/wc-pickup-store.php
r2904913 r3002003 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. 56 * Version: 1.8.6 7 7 * Requires at least: 4.7 8 * Tested up to: 6. 28 * Tested up to: 6.4.1 9 9 * WC requires at least: 3.0 10 * WC tested up to: 7.6.110 * WC tested up to: 8.3.1 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. 5' );24 define( 'WPS_PLUGIN_VERSION', '1.8.6' ); 25 25 } 26 26 … … 36 36 * Admin Notices 37 37 * 38 * @version 1.8.2 38 39 * @since 1.0.0 39 * @version 1.8.240 40 */ 41 41 if ( ! in_array( 'woocommerce/woocommerce.php', get_option( 'active_plugins' ) ) ) { … … 66 66 67 67 /** 68 * WC HPOS Compatibility check 69 * 70 * @version 1.8.6 71 */ 72 add_action( 'before_woocommerce_init', function() { 73 if ( class_exists( \Automattic\WooCommerce\Utilities\FeaturesUtil::class ) ) { 74 \Automattic\WooCommerce\Utilities\FeaturesUtil::declare_compatibility( 'custom_order_tables', __FILE__, true ); 75 } 76 } ); 77 78 /** 68 79 * Plugin files 69 80 */
Note: See TracChangeset
for help on using the changeset viewer.