This Alfred workflow can help you guide users to navigate the WooCommerce configuration option by pasting the path to the frontmost app on your Mac. It is useful if your work includes sending instructions on accessing various WooCommerce features and configuration options 🙂
Setup
- Download WooCommerce Navigation.alfredworkflow
- Install the workflow on your device
- Search for navigation paths by
wn YOUR_QUERY
Usage
wn YOUR_QUERY
- By default, the keyword is set to
wn
for stock configuration options - Eg: If you want to search for the configuration path for
Hold Stock
, launch alfred and typewn hold stock
: - Output would be: WooCommerce > Settings > Products > Inventory > Hold stock (minutes) > Define – Hold Stock in minutes
wnb YOUR_QUERY
- Same as
wn
. Only difference is that the output would be bold (markdown) - Eg: The same query above, using
wnb
results in: **WooCommerce > Settings > Products > Inventory > Hold stock (minutes) > Define – Hold Stock in minutes**
wns YOUR_QUERY
- Same as
wn
. Output is bold (HTML). - Eg: The same query above, using
wns
results in: <strong>WooCommerce > Settings > Products > Inventory > Hold stock (minutes) > Define – Hold Stock in minutes**</strong>
wnca NAME|PATH
- This would add a new, custom navigation path to a separate db table
- Make sure that the custom path does not have the same name as any of the existing stock names. This is because the workflow only searches the custom database if there are no results found for your query in stock database
- Custom path is saved in a different table so that if there’s an update to this workflow in the future, your custom paths are not lost
wncr NAME
or wncr PATH
- Removes the custom name|path combination that you’ve added
- This is irreversible as there’s no backup of custom table anywhere outside of your device
- Please also note that there is no warning prior to removing a custom item
Is there a way to add WP Admin
prefix to the navigation path?
Use wpn YOUR_QUERY
instead of wn YOUR_QUERY
and the results would include WP Admin >
appended to the start. You can also use wpnb YOUR_QUERY
and wpns YOUR_QUERY
to obtain the results in bold format as Markdown or HTML respectively
What about the upcoming changes in WooCommerce navigation?
Use wnn YOUR_QUERY
instead of wn YOUR_QUERY
and the results would be in the new WooCommerce Navigation format. You can also use wnnb YOUR_QUERY
and wnns YOUR_QUERY
to obtain the results in bold format as Markdown or HTML respectively
How to update?
- If you don’t have any custom navigation paths added: just delete the existing workflow, and install the new one
- If you have custom navigation paths added:
- Right-click on workflow and open the folder in the finder
- Copy the custom.db file to a different folder
- Delete the workflow
- Install the latest version of the workflow
- Open the workflow folder in finder, and replace the custom.db file with the one you copied in step 2.
- All your custom paths should now be retained.
Feel free to share your thoughts in the comment below. If you find an issue/bug though, please report it as an issue in the repo.