Advanced Coupons for WooCommerce comes with powerful shortcodes that allow you to display coupons, coupon categories, and store credit balances anywhere on your site. By using these shortcodes, you can create flexible promotional displays and give customers quick access to their coupons or store credit information.
In this guide, we’ll walk you through all the available shortcodes and how to use them.
Shortcodes Overview
Here are the shortcodes included in Advanced Coupons:
acfw_coupon_by_categories
– Display a grid of coupons from selected categories.acfw_single_coupon
– Show a single coupon by ID.acfw_coupons_by_customer
– Display coupons or virtual coupons assigned to the logged-in customer.acfw_customer_store_credit_balance
– Show the logged-in customer’s store credit balance.acfw_store_credit_my_account_page_content
– Render the full Store Credits UI.
acfw_coupon_by_categories
This shortcode displays a grid of coupons from one or more selected coupon categories (shop_coupon_cat
).
[acfw_coupon_by_categories categories="12,34" columns="3"]
Attributes:
categories
– (Required) Comma-separated list of coupon category IDs.columns
– (Optional) Number of columns for the grid. Default:3
.
acfw_single_coupon
Use this shortcode to display a single coupon by ID or code, with optional details.
[acfw_single_coupon coupon_id="3954"]
Attributes:
coupon_id
– (Required) The coupon ID.show_description
– (Optional)yes
orno
. Default:yes
.show_expiry
– (Optional)yes
orno
. Default:yes
.
acfw_coupons_by_customer
This shortcode displays a list of coupons or virtual coupons assigned to the currently logged-in customer.
[acfw_coupons_by_customer display_type="both" columns="3" count="10" order_by="date/desc"]
Attributes:
display_type
– (Required) Options:both
,coupons_only
,virtual_only
.columns
– (Optional) Number of columns for display.count
– (Optional) Maximum number of coupons to show.order_by
– (Optional) Sorting option, e.g.date/desc
.
🔒 Only visible to logged-in customers and requires Advanced Coupons Free + Premium active.
acfw_customer_store_credit_balance
Show the store credit balance of the logged-in customer.
[acfw_customer_store_credit_balance]
💡 Ideal for adding to the “My Account” page or dashboard area.
acfw_store_credit_my_account_page_content
Render the full Store Credits interface, including balance, history, and related actions.
[acfw_store_credit_my_account_page_content show_login_message="yes"]
Attributes:
show_login_message
–yes
orno
. If set toyes
, non-logged-in users will see a login prompt.
Summary
Advanced Coupons shortcodes let you:
- Showcase coupon categories for seasonal or promotional campaigns.
- Display a single coupon with its details.
- Allow customers to view their store credits and assigned coupons directly from their account page.
By adding these shortcodes to your pages, posts, or widgets, you can give customers an engaging and user-friendly coupon experience.
Help & Support
We have a dedicated support team for Advanced Coupons who know our products, WooCommerce, and the industry very well. You’re welcome to make use of their expertise at any time, worldwide.
If you are an existing customer, please go to the support ticket request form and send us a message.
If you are a free plugin user, please send us a support request on the forum, we actively monitor the WordPress.org support forums for the free plugin and help our users there as best as we can.