WC Pickup Store

Description

WC Pickup Store is a shipping method that lets you to set up a custom post type “store” to manage stores in WooCommerce and activate them for shipping method “Local Pickup” in checkout page. It also includes several options to show content by Widget or a WPBakery Page Builder component. Configuration of shipping costs are also available globally or per stores. More about documentation and filter usage coming soon on my website keylormendoza.com

Features And Options:

  • Shipping costs globally or per stores.
  • Compatible with WPBakery Page Builder with its own addon.
  • Widget option.
  • Dropdown of stores on the Checkout page.
  • Local pickup details in thankyou page, order details and emails.
  • Archive template is now available.
  • All templates from /wc-pickup-store/templates/ can be overridden in your custom themes.
  • Filters and actions are available throughout the code to manage your own custom options.
  • Font Awesome and Bootstrap CSS libraries are included in the plugin. You can disable them from the plugin configuration page
  • Shipping email notification to stores in the store admin page
  • Order and orderby options (v1.5.19)
  • Shipping costs by flat rate or percentage, by method or per stores (v1.5.21)
  • Filter wps_settings_data to edit shipping title and other settings (v1.5.22)
  • Store details on Checkout page. Includes filters, template and JS trigger pickup_store_selected (v1.5.22)
  • Multicountry stores are available. Just choose a country per store and they will be filtered on the Checkout page.

Some Useful Hooks

These are some useful filters and actions that you might need to extend the plugin functionalities

wps_store_query_args to edit the query of stores
wps_no_stores_availables_message message to show when no stores are available to display in the Checkout
wps_first_store choose the first selected store
wps_store_pickup_cost_label label for store pickup costs
wps_shipping_costs override method shipping costs
wps_order_shipping_item_label method title with instructions
wps_subtotal_for_store_cost subtotal to calculate percentage shipping costs
woocommerce_shipping_wc_pickup_store_is_available check for shipping method availability
wps_settings_data to edit the plugin settings including the shipping title
wps_get_store_custom_fields to choose the custom fields to be returned in wps_stores_fields function
wps_stores_fields all custom information by store

Screenshots

  • WC Pickup Store shipping configurations.
  • Default Store.
  • Checkout page.
  • Order details.
  • VC element.
  • VC element Result.
  • Widget Element.
  • Widget Element Result.
  • Published store validation.
  • WC error after store validation.
  • Email notification
  • Shipping cost by shipping method
  • Shipping cost per stores
  • Order Email Notification
  • Order and Orderby options
  • Store details on Checkout page
  • Filtering stores by Country

Installation

Requires WooCommerce

  1. Upload the plugin files to the /wp-content/plugins/wc-pickup-store directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Go to settings page from Menu > Stores > Settings or the shipping methods page in WC to activate WC Pickup Store shipping method.
  4. Done.

FAQ

How to setup?

Just activate the plugin, go to settings page and enable the shipping method. Customize the shipping method title, default store and checkout notification message.

How to manage stores?

Go to Menu > Stores > All Stores > Add New

Can I edit the store templates?

Yes, you can override all the templates. Just copy from /plugins/wc-pickup-store/templates/ to /theme/template-parts/. Single store and archive page might be overriden in /theme/ directory as WordPress does.

How do I replace or remove waze icon?

Simply use filters wps_store_get_waze_icon or wps_store_get_vc_waze_icon to manage waze icon

Can I set a default store in checkout?

Yes, just go to Menu > Appearance > Customize > WC Pickup Store > Default Store. Also you can use the filter wps_first_store to do that

Can I set custom page without using WPBakery Page Builder?

The shortcode functionality had been removed since previous versions but since version 1.5.13 you can use the archive-store.php located in the plugin templates directory

Is there a way to add a price for the shipping method?

Fortunately since version 1.5.13 the option to set custom costs by shipping method or per stores is available. Hope you enjoy it! Update 1.5.21 let you calculate shipping costs by flat rate or percentage

Can I send an email to the store with the order details, is that possible?

Sure, now you can add an email address into the store admin page and it will be notified on order sent to this store.

Can I translate the shipping method title?

You can use the filter wps_settings_data with the key title to create a custom valid translation for the title. Available since version 1.5.22

How does the multicountry stores work?

First, this functionality will work if your Shop is enabled to sell to specific countries, if not, you must to update all the stores to the default Shop country using the link on the notice about this feature (available since version 1.5.24). Then, you just have to choose a country for each store on the store settings page.

Reviews

Yes

20 Novambra 2019
Thanks, this plugin is useful. I'm adding translation into Czech language 🙂
02 Janoary 2019
Thanks a lot! It was exactly what i needed. Only hope you can add a price field for the shipping method and/or perhaps for each store. Thanks for sharing your knowledge. 🙂
Read all 6 reviews

Contributors & Developers

“WC Pickup Store” is open source software. The following people have contributed to this plugin.

Contributors

“WC Pickup Store” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “WC Pickup Store” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.5.28

  • Fix: Default country in admin store page from previous version in includes/post_type-store.php

1.5.27

  • Remove: esc_attr from wps_stores_fields in includes/wps-functions.php
  • Update: Country data in products listing in includes/post_type-store.php
  • New: show_in_rest parameter for Custom Post Type
  • Remove: Unused template file wrapper-store.php added to includes/ directory
  • New: return array with keys in wps_store_get_store_admin in includes/wps-admin.php

1.5.26

  • Fix: Shipping rate cost on Checkout using store shipping cost in calculate_shipping in includes/wps-init.php
  • Update: Concat country code and name on stores page
  • Remove: Customer notification for store notification in wps_cc_email_headers, only new_order is available in includes/wps-functions.php

1.5.25

  • Fix: From previous 1.5.24 version
  • New: Country filter for stores admin and stores on Checkout
  • New: Country dropdown in stores admin page if Shop sells to specific countries in includes/post_type-store.php
  • New: Option to update all stores without Country wps_update_stores_without_country in includes/post_type-store.php

1.5.24

  • Fix: Apply filter position in validation of wps_shipping_method_label in includes/wps-functions.php
  • New: Filter wps_store_checkout_label in title of store dropdown options in includes/wps-functions.php
  • New: Filter wps_store_calculated_costs in includes/wps-init.php
  • Update: Improvement to accept multiple email addresses separated by comma in wps_get_email_address in includes/wps-functions.php
  • Update: Validation of WC email types to add the store admin email in wps_cc_email_headers in includes/wps-functions.php
  • New: Filter wps_cc_on_email_types for accepted email types in includes/wps-functions.php
  • New: Function and filter wps_get_post_meta to return all custom meta using filter in includes/wps-functions.php
  • New: Stores dropdown loads using select2 library and option might be disable from plugin settings in includes/wps-init.php and stores.js
  • New: Functions wps_check_countries_count and wps_stores_filtering_by_country to allow multicountries stores and Country filter on the stores dropdown in includes/post_type-store.php
  • Update: Param meta_query updated to use relation AND instead of OR on custom stores query in includes/wps-admin.php

1.5.23

  • Fix: Function wps_locate_template to load local templates with locate_template
  • Fix: Unnecessary parameter $store_id removed in filter wps_stores_fields
  • New: Setting hide_store_details to hide/show store details in the Checkout page
  • Update: Template validation if exists in stores.js

1.5.22

  • Fix: Option none in Shipping costs type to invalidate shipping costs calculation in includes/wps-init.php
  • New: Filter wps_settings_data to edit the plugin settings including the shipping title, in includes/wps-init.php
  • New: wp_localize_script wps_ajax.stores to get all custom fields from stores with wps_stores_fields function and filter in includes/wps-functions.php
  • New: Filter wps_get_store_custom_fields to choose the custom fields to be returned in wps_stores_fields function, in includes/wps-functions.php
  • New: Function wps_locate_template to get the template file path from plugin or custom theme
  • New: Store details in the Checkout page
  • New: Template file selected-store-details.php to show store details on Checkout page

1.5.21

  • Fix WPBakery store component
  • Fixed span elements added to item label in includes/wps-init.php
  • Obsolete file removed in includes/wrapper-store.php
  • New percentage or flat rate shipping costs calculation, per store or shipping method

1.5.20

  • Fix filter wps_order_shipping_item_label parameter

1.5.19

  • Update textdomain as a global variable
  • New filter wps_order_shipping_item_label wrapping the shipping order/checkout label
  • New order and orderby options are added to the configuration page

1.5.18

  • Fix BS+4 conflict with .col class in includes/vc_stores.php

1.5.17

  • Fix FA+5 icon in VC template

1.5.16

  • Fixing issue with local and external libraries validation

1.5.15

  • Validation for local and external libraries
  • Function to return main instance for WC_PICKUP_STORE
  • New admin fields store_order_email and enable_order_email

1.5.14

  • Change of wp_enqueue_style instead of using wp_register_style with bootstrap and font awesome libraries

1.5.13

  • New shipping method custom price
  • New adding shipping method price per store
  • Fix in VC element initialization
  • Fix in image custom size validation used in VC custom element
  • New Archive Template
  • New .pot file
  • Font Awesome and Bootstrap css have been included

1.5.12

  • Logo waze svg
  • Filters wps_store_get_waze_icon and wps_store_get_vc_waze_icon to manage waze icon

1.5.11

  • Single store template
  • Filter wps_store_query_args for store query args
  • Fix esc_html to print content in template
  • VC element and widget from template

1.5.10

  • Validate whether all stores are published, otherwise, shipping method is not applicable
  • Fix selected store notification in emails
  • Notification was added in admin panel
  • Editor field was added to stores

1.5.9

  • Latest stable version