All sections
A shortcode is a short piece of text in square brackets. When you paste one into a page, WordPress replaces it with a feature of the plugin. This plugin has three main shortcodes for checkout and cart, and this page helps you choose between them.
| Shortcode | What it shows | Version |
|---|---|---|
[plugincy_one_page_checkout] | Several products plus the checkout form. | PRO |
[onepaquc_checkout] | The checkout form, with one product added to the cart. | PRO |
[plugincy_cart] | A cart button and slide-in drawer. | Free and Pro |
In the free plugin, the two Pro shortcodes print nothing on the page, and there is no error message. Two other shortcodes exist: [onepaquc_button] for a Buy Now button, and [plugincy_quick_view] PRO for a Quick View button.
Which one do you need?
Several products on one page
Use the multi product shortcode for landing pages and price plans, as on this Product Tabs demo.
[plugincy_one_page_checkout product_ids="152,153,154" template="product-table"]
One product and its checkout form
Use the single product shortcode when a page sells one thing, as in this checkout form demo.
[onepaquc_checkout product_id="123" clear_cart="yes"]
A cart people can open from anywhere
Use the cart drawer shortcode as on this cart drawer demo. If you only want the cart on every page, you do not need a shortcode. Turn on the floating cart instead.
[plugincy_cart drawer="right" cart_icon="cart"]
Where to paste a shortcode
- Block editor: add a Shortcode block and paste it there.
- Elementor: add the Shortcode widget.
- Other page builders: use their shortcode element or text module.
The plugin also has blocks and Elementor widgets that do the same job with a settings panel, which is easier if you do not like typing code: Multi Product One Page Checkout, One-Page Checkout and Floating Cart.
Things to remember
- One checkout form per page. A second form on the same page prints nothing.
- Use slugs for categories and tags. A slug is the short web name, such as
mens-shoesfor “Men’s Shoes”. - Always name the products. A multi product shortcode with no products listed loads up to 100 of your latest products.
- Cache: the plugin tells caching tools not to store pages with checkout forms, but check your CDN if a form looks out of date.
If a shortcode shows nothing, go through our shortcode troubleshooting guide.
