Complete Shortcodes Catalog

Shortcodes in Multi Location Product & Inventory Management for WooCommerce make it simple to add dynamic features like store selectors, product filters, and location details anywhere on your site. They are easy to use, customizable, and help improve customer experience by showing relevant store and product information.

What is a Shortcode?

A shortcode in WordPress is a simple text snippet wrapped in square brackets (e.g., [example_shortcode]). Shortcodes let you add dynamic content or plugin features into posts, pages, or widgets without writing code.

For example:

[mulopimfwc_location_info]

This shortcode will display store location details with maps and contact info.


How to Use Shortcodes

You can place shortcodes in different areas of your site:

  1. Shop Page Header/Footer
    • Go to your shop page.
    • Click Customize.
    • Go to the header/footer section.
    • Add a widget named Shortcode.
    • Paste the shortcode you want to use.
  2. Custom Page
    • Open the page editor.
    • Search for the Shortcode widget.
    • Place it anywhere depending on your layout needs.
  3. Elementor Page Builder
    • Open the page in Elementor.
    • Search for the Shortcode widget.
    • Paste the shortcode you want to apply.

Shortcodes Overview of This Plugin

The Multi Location Product & Inventory Management for WooCommerce plugin provides six main shortcodes:

  1. Store Location Selector – Dropdown for visitors to select their desired store.
  2. Location Selector for Specific Product – Show available locations for a single product.
  3. Location Status Badge – Display open/closed badge for a store location.
  4. Store Locator Information – Show store info like address, contact details, and maps.
  5. AJAX Product Filter – Add AJAX-powered product filters by location and stock status.
  6. Location Recommendations – Display location‑wise product recommendations based on popularity and customer insights.

1. Store Location Selector

Shortcode: [mulopimfwc_store_location_selector]
Purpose: Creates a dropdown box that can be placed anywhere. Visitors can select their desired location or store from the dropdown.

Parameters:

ParameterValuesDescriptionExample
titleTextCustom selector titletitle="Choose Store Location"
show_titleon / offDisplay or hide the titleshow_title="on"
use_select2on / offEnable enhanced dropdown with searchuse_select2="on"
herichicalon / off / separatelyShow hierarchical location structureherichical="on"
show_counton / offShow product count per locationshow_count="on"
classTextAdd custom CSS class for stylingclass="location-selector-custom"
enable_user_locationson / offAllow users to save preferred locationsenable_user_locations="on"
max_widthNumber (px)Set maximum width of dropdownmax_width="300"
multi_lineon / offDisplay selector in multiple linesmulti_line="on"

Explore the Store Location Selector Shortcode Guide for detailed usage and styling options.


2. Location Selector for Specific Product

Shortcode: [mulopimfwc_location_selector]
Purpose: Allows you to show locations for a single product. Especially helpful when you want to show available locations for a product on a landing page.

Parameters:

ParameterValuesDescriptionExample
product_idProduct ID (number)Shows locations for a specific product. If not provided, auto-detects current product.product_id="123"
layoutlist / buttons / selectChoose how the selector is displayedlayout="buttons"
labelTextCustom label displayed above the selectorlabel="Choose Store:"

Check out the Location Selector for Specific Product Guide to learn how to highlight product availability across branches.


3. Location Status Badge

Shortcode: [mulopimfwc_location_status]
Purpose: Displays a badge for the location showing if it is open or closed.

Parameters:

ParameterValuesDescriptionExample
idLocation term IDTarget a location by its numeric IDid="123"
slugLocation term slugTarget a location by its slug (recommended)slug="new-york"

Read the Location Status Badge Guide to see how to add live store status to headers, sidebars, or footers.


4. Store Locator Information

Shortcode: [mulopimfwc_location_info]
Purpose: Makes visible your store’s info such as address, contact details, and maps.

Parameters:

ParameterValuesDescriptionExample
idNumeric IDsShow specific location(s) by IDid="123" or id="123,456,789"
slugSlug namesShow location(s) by slugslug="downtown,uptown"
layoutauto, tabs, compact, gridChoose display stylelayout="tabs"
searchyes / noEnable search barsearch="yes"
compactyes / noCompact view for single locationcompact="yes"
limitNumberLimit number of locations shownlimit="5"
orderbyname, id, countSort locationsorderby="name"
orderASC / DESCSort orderorder="ASC"

Visit the Store Locator Information Shortcode Guide for layout examples and troubleshooting tips.


5. AJAX Product Filter

Shortcode: [mulopimfwc_product_filter]
Purpose: Allows you to add AJAX-powered product filters by location and stock status.

Parameters:

ParameterValuesDescriptionExample
locationyes / noShow location filter dropdownlocation="yes"
stockyes / noShow stock status filter dropdownstock="yes"

See the AJAX Product Filter Shortcode Guide to learn how to enable automatic display or place filters manually.


6. Location Recommendations for Products

Shortcode: [mulopimfwc_location_recommendations]
Purpose: Displays product recommendations location‑wise based on popularity and customer insights.

Parameters:

ParameterValuesDescriptionExample
limitNumberHow many products to displaylimit="8"
columnsNumberGrid layout columnscolumns="4"
titleText (supports {location})Section titletitle="Popular at {location}"
show_titleyes / noShow or hide the section titleshow_title="yes"
show_badgeyes / noDisplay popularity badge on productsshow_badge="yes"
orderbypopularitySort products by popularityorderby="popularity"

Explore the Location Recommendations Guide to personalize shopping experiences with trending products per branch.


Quick Summary

Shortcodes in Multi Location Product & Inventory Management for WooCommerce allow you to add dynamic features such as store selectors, product filters, and location details anywhere on your site. Each shortcode comes with parameters for customization, and you can place them in headers, footers, or custom pages using WordPress widgets or Elementor.