Shortcodes
Registered shortcodes include:
[awc_pricing_table]
[awc_cart]
[awc_cart_icon]
[awc_buy_button]
[awc_portal_orders]
[awc_portal_subscriptions]
[awc_portal_invoices]
[awc_portal_payment_methods]
[awc_portal_downloads]
[awc_portal_licenses]
[awc_recovery]
[awc_order_confirmation]
[awc_checkout]
[awc_account_portal]
[awc_product_purchase_options]
Pricing Table Examples
[awc_pricing_table]
[awc_pricing_table product="pro"]
[awc_pricing_table products="starter,pro,team"]
[awc_pricing_table category="plugins"]
[awc_pricing_table products="starter,pro,team" gateway="stripe" columns="3" show_search="true" show_sort="true"]
Buy Button Example
[awc_buy_button price="pro-monthly" label="Subscribe" gateway="stripe"]
Render from PHP:
echo do_shortcode('[awc_buy_button price="pro-monthly" label="Subscribe" gateway="stripe"]');
Checkout Examples
[awc_checkout]
[awc_checkout price="pro-monthly" gateway="stripe"]
[awc_checkout prices="starter-monthly,pro-monthly" gateway="stripe"]
Account Portal Examples
[awc_account_portal]
[awc_account_portal show_billing="true" show_downloads="true" show_licenses="true"]
[awc_portal_orders limit="20"]
[awc_portal_subscriptions show_actions="true"]
[awc_portal_invoices limit="50"]
[awc_portal_downloads limit="50" show_file_size="true"]
[awc_portal_licenses limit="50"]
Blocks
Shortcode-backed blocks:
awecommerce/pricing-table
awecommerce/cart
awecommerce/cart-icon
awecommerce/buy-button
awecommerce/portal-orders
awecommerce/portal-subscriptions
awecommerce/portal-invoices
awecommerce/portal-payment-methods
awecommerce/portal-downloads
awecommerce/portal-licenses
awecommerce/recovery
awecommerce/order-confirmation
awecommerce/checkout
awecommerce/account-portal
awecommerce/product-purchase-options
Native product and pricing blocks:
awecommerce/product-gallery
awecommerce/product-price
awecommerce/product-purchase-options
awecommerce/pricing-table
awecommerce/pricing-card
awecommerce/product-title
awecommerce/product-image
awecommerce/product-category-badge
awecommerce/product-description
awecommerce/product-pricing-options
awecommerce/product-buy-button
Pricing Table Block Markup
<!-- wp:awecommerce/pricing-table {"products":"starter,pro,team","gateway":"stripe","columns":3,"showSearch":true} /-->
Single Product Layout Example
<!-- wp:awecommerce/product-gallery /-->
<!-- wp:post-title /-->
<!-- wp:post-content /-->
<!-- wp:awecommerce/product-price /-->
<!-- wp:awecommerce/product-purchase-options {"gateway":"stripe"} /-->
Pricing Grid Template Example
<!-- wp:awecommerce/pricing-table {"products":"starter,pro,team","gateway":"stripe","columns":3} -->
<!-- wp:awecommerce/pricing-card -->
<!-- wp:awecommerce/product-image /-->
<!-- wp:awecommerce/product-title {"level":3} /-->
<!-- wp:awecommerce/product-description {"limit":30} /-->
<!-- wp:awecommerce/product-pricing-options /-->
<!-- wp:awecommerce/product-buy-button {"text":"Add to cart"} /-->
<!-- /wp:awecommerce/pricing-card -->
<!-- /wp:awecommerce/pricing-table -->
Editor Products Endpoint
The block editor preview endpoint:
GET /wp-json/awecommerce/v1/editor-products
It requires edit_posts.