Skip to main content

Shortcodes

Render the Simpler Checkout button anywhere in your custom pages using shortcodes

If you are an advanced user, you can use shortcodes to control button placement in a more flexible way. Simpler provides two shortcodes :

[simpler-product-checkout]

This shortcode will render a checkout button that will open up Simpler Checkout for the product in the current context. If there is no product in the context (for example in a static page), you can use the product_id attribute to hardcode a product.

[simpler-cart-checkout]

This shortcode will render a checkout button that will open up a Simpler Checkout for the current cart. It is useful for checkout pages, where customers may have added multiple products to their carts.