Multi Product Checkout Shortcode: [plugincy_one_page_checkout]

Shortcodes Reference
Updated Nov 8, 20264 min read

[plugincy_one_page_checkout] PRO shows several products and the checkout form on one page. This guide lists every option, with examples you can copy. If you prefer a settings panel, the Multi Product One Page Checkout block and widget do the same job.

Quick start

  1. Find your product IDs: go to Products > All Products and hover over a product. The ID shows under its name.
  2. Edit a page and add a Shortcode block.
  3. Paste this, with your own IDs, then preview the page:
[plugincy_one_page_checkout product_ids="152,153,154" template="product-table"]

Always list your products. With no products listed on a normal page, the shortcode loads up to 100 of your latest products, and Add to Cart on Page Load adds them all to the cart. On a product page, an empty shortcode uses that product.

Choose the products

OptionWhat to enterExample
product_idsProduct IDs with commas. This wins over the options below.product_ids="152,153"
categoryCategory slugs with commas.category="mens-shoes"
tagsTag slugs with commas.tags="summer,sale"
attributeThe attribute’s name, without pa_. Use it with terms.attribute="color"
termsAttribute value slugs with commas.terms="red,blue"

If you use several of category, tags and attribute, a product must match all of them. Up to 100 products are shown. Use IDs when you want an exact list, and categories or tags when you want the page to follow your catalogue.

Choose the template

The default is product-table. A value the plugin does not know falls back to pricing-table, so check the spelling.

Product Table

[plugincy_one_page_checkout product_ids="152,153,154" template="product-table"]
Product Table template with a WooCommerce checkout on one page

Product List

Shoppers tick a box to add a product, one of each.

[plugincy_one_page_checkout product_ids="152,153,154" template="product-list"]

Product Single

Shows each product’s full details, one after another.

[plugincy_one_page_checkout product_ids="152,153" template="product-single"]

Product Slider

[plugincy_one_page_checkout category="watches" template="product-slider"]

Product Accordion

[plugincy_one_page_checkout product_ids="152,153,154" template="product-accordion"]

Product Tabs

[plugincy_one_page_checkout product_ids="152,153,154" template="product-tabs"]

Pricing Table

[plugincy_one_page_checkout product_ids="152,153,154" template="pricing-table"]

Product Selection

Shows a choice inside the checkout form. Choosing a product replaces the one in the cart, with a quantity of one.

[plugincy_one_page_checkout product_ids="152,153,154" template="product-selection" show_images="yes" product_layout="cards" product_label="Choose Your Plan"]

Options for Product Selection only

These options have no effect on the other seven templates, which always print before the checkout form.

OptionWhat it doesValuesDefault
positionWhere the choice sits.after_description, before_order_notes, after_checkoutafter_description
template_positionThe same as position, and wins over it.SameEmpty
product_labelLabel for the product choice.Your wordsProduct
variation_labelLabel for the variation choice.Your wordsChoose an option
updating_selection_textMessage while the cart updates.Your wordsUpdating selection…
show_imagesShows pictures.yes or nono
product_layoutHow the choice looks. Needs show_images="yes".select_dropdown, card_dropdown, cardsselect_dropdown
primary_colorMain colour, as a hex code.#8f233c#8f233c
secondary_colorSecond colour, as a hex code.#6f6b64#6f6b64
border_radiusCorner roundness. A plain number from 0 to 50, with no “px”.124
spacingSpace between parts. A plain number from 0 to 60, with no “px”.2010
button_styleButton look.filled, outlined, textfilled

More examples

A landing page for one category:

[plugincy_one_page_checkout category="hoodies" template="product-tabs"]

Products by colour:

[plugincy_one_page_checkout attribute="color" terms="red,blue" template="product-list"]

Three plans chosen inside the form, with your brand colour:

[plugincy_one_page_checkout product_ids="201,202,203" template="product-selection" position="before_order_notes" primary_color="#1e40af" border_radius="8" spacing="16" button_style="outlined"]

If something goes wrong

  • “Please provide product IDs”: no product was found. Check IDs and slugs, and that the products are published.
  • A filter by attribute finds nothing: write attribute="color", not attribute="pa_color".
  • The wrong template shows: check for typing mistakes or a space inside the quotes.
  • Colours or images are ignored: these options work only with product-selection, and border_radius and spacing must not include “px”.
  • Too many products in the cart: Add to Cart on Page Load adds every listed product. Turn it off under Onpage Checkout > One Page Checkout.
  • A second form is blank: a page can have only one checkout form.