Skip to main content

Shortcode Reference

StoreEngine ships a full set of storefront shortcodes covering product listings, single-product parts, cart, checkout, order confirmation, account/login, and the customer dashboard. They are registered on load by StoreEngine\Shortcode::init()dispatch_shortcode(), with one class per tag under includes/shortcode/.

Most shortcodes are attribute-less region markers that render a templates/shortcode/* template; a handful (products, add-to-cart, login) take attributes documented below. Every shortcode is also available as an editor block — see Blocks.

All shortcodes

TagPurpose
storeengine_productsProduct grid, filterable by ids, category, tag, price type.
storeengine_products_sidebarSidebar filter widget for the products archive.
storeengine_products_archiveThe full products archive layout.
storeengine_archive_header_filterSort/filter header bar for the archive.
storeengine_single_productComplete single-product layout.
storeengine_single_product_galleryProduct image gallery only.
storeengine_single_product_summaryProduct summary (title, price, add-to-cart).
storeengine_single_product_descriptionLong product description.
storeengine_single_product_commentsProduct comments block.
storeengine_single_product_reviewsProduct reviews block.
storeengine_single_product_cart_notice"Added to cart" notice on the product page.
storeengine_product_descriptionStandalone product description by id.
storeengine_add_to_cartAdd-to-cart / direct-checkout button for a product.
storeengine_mini_cartHeader mini-cart widget.
storeengine_cart_list_tableCart line-items table.
storeengine_cart_sub_total_tableCart totals (subtotal, shipping, total).
storeengine_apply_coupon_formCoupon-code input + apply button.
storeengine_proceed_to_checkout"Proceed to checkout" button.
storeengine_continue_shopping"Continue shopping" link.
storeengine_checkout_formThe full checkout form.
storeengine_order_summaryOrder summary panel on checkout.
storeengine_order_detailsOrder details, read from the order_hash query var.
storeengine_order_downloadsDownloadable files for an order.
storeengine_order_billing_addressOrder billing address block.
storeengine_order_shipping_addressOrder shipping address block.
storeengine_thankyou_order_infoOrder-received (thank-you) summary.
storeengine_thankyou_payment_instructionsGateway payment instructions on the thank-you page.
storeengine_login_formFront-end login form.
storeengine_dashboardCustomer account dashboard.

[storeengine_products]

Renders a paginated product grid. Query attributes accept comma-separated term/post IDs.

AttributeDefaultDescription
ids''Comma-separated product IDs to include (post__in).
exclude_ids''Comma-separated product IDs to exclude.
category''Category term IDs to include.
cat_not_in''Category term IDs to exclude.
tag''Tag term IDs to include.
tag_not_in''Tag term IDs to exclude.
course_level''Filter by course level (integration-specific).
price_type''Filter by price type.
orderbysettingdate, title, modified (falls back to ID).
orderDESCASC or DESC.
count12Products per page (defaults to the archive setting when set).
column_per_row3Grid columns on desktop.
has_paginationfalseWhether to render pagination.
[storeengine_products category="12,15" count="8" column_per_row="4" orderby="title"]

The query is filterable via storeengine_products_shortcode_args.

[storeengine_add_to_cart]

Renders an add-to-cart or direct-checkout button for a specific product. product_id is required; an invalid variation_id returns an error string.

AttributeDefaultDescription
product_idnullRequired. The product to add.
price_idnullSpecific price/plan ID.
variation_id0Variation ID (validated against the product).
label''Custom button label.
direct_checkout'true'If truthy, skip cart and go straight to checkout.
quantity1Initial quantity.
show_quantity'false'Show a quantity input.
disabled'false'Render the button disabled.
price_display'radio'How multiple prices are shown (radio, etc.).
button_display'yes'Whether to show the button.
icon''Icon class to render on the button.
icon_position'left'left or right.
dummyfalseRender a non-functional preview (editor use).
[storeengine_add_to_cart product_id="42" price_id="7" show_quantity="true" label="Buy now"]

[storeengine_login_form]

Front-end login form. All labels are translatable and overridable per instance. It routes registration to StoreEngine's in-dashboard register endpoint rather than wp-login.php.

AttributeDefaultDescription
form_titleLog In into your AccountHeading above the form.
username_labelUsername or Email AddressUsername field label.
username_placeholderUsername or Email AddressUsername field placeholder.
password_labelPasswordPassword field label.
password_placeholderPasswordPassword field placeholder.
remember_labelRemember meRemember-me checkbox label.
login_button_labelLog in NowSubmit button label.
reset_password_labelReset passwordLost-password link label.
show_logged_in_messagetrueShow a message instead of the form when already logged in.
register_urlregister endpointWhere the "register" link points.
login_redirect_urldashboard pageRedirect after successful login.
logout_redirect_urlcurrent pageRedirect after logout.

[storeengine_order_details]

Renders the details of an order. It reads the order key from the order_hash query string; when there is no matching order (direct visit, preview, or editor render) it falls back to sample content.

AttributeDefaultDescription
dummyfalseForce sample/preview content regardless of order_hash.
[storeengine_order_details]

[storeengine_order_downloads] accepts the same single dummy attribute.

[storeengine_apply_coupon_form]

Renders the coupon input and apply button.

AttributeDefaultDescription
placeholderCoupon CodeInput placeholder.
button_labelApplyApply button label.

[storeengine_single_product_summary]

Renders the summary block (title, price, add-to-cart) for a product.

AttributeDefaultDescription
product_id0Product to render. Falls back to the current post ID (get_the_ID()).

Attribute-less shortcodes

The remaining tags — storeengine_checkout_form, storeengine_order_summary, storeengine_cart_list_table, storeengine_cart_sub_total_table, storeengine_mini_cart, storeengine_proceed_to_checkout, storeengine_continue_shopping, storeengine_thankyou_order_info, storeengine_thankyou_payment_instructions, storeengine_order_billing_address, storeengine_order_shipping_address, storeengine_dashboard, and the single-product part tags — take no attributes. They render their corresponding templates/shortcode/* file using the current cart/order/product context. Override their markup by copying the template into your theme.

Using shortcodes as blocks

Every shortcode above is registered as an editor block descriptor and can be inserted through the generic storeengine/shortcode block with full editor controls — no raw [shortcode] typing required. See Blocks for the bridge and for registering your own shortcode as a block.

See also

  • Templates — override what a shortcode renders.
  • Blocks — the shortcode → block bridge.