Create a pricing table on a page or post to compare products and give shoppers a way to add them to their cart.
Before you start
↑ Back to topActivate Storefront or a compatible Storefront child theme and install and activate Storefront Pricing Tables. Have the IDs of the products you want to compare ready.
Usage
↑ Back to topAdd a pricing table
↑ Back to top- Open the page or post where you want the table, then add a Shortcode block.
- Copy the full example into the block, including the opening and closing
pricing_tabletags. - Replace
123and456with the IDs of the products you want to display. Set the column titles and features, then preview the page.
[pricing_table columns="2" alignment="left"]
[pricing_column id="123" title="Standard" features="One feature|Another feature" image="false"]
[pricing_column id="456" title="Plus" features="All standard features|An extra feature" image="false" highlight="true"]
[/pricing_table]
Keep all pricing_column shortcodes between the opening and closing pricing_table tags. Set columns to match the number of columns in the table, and separate features with a pipe (|). Omit title to use the product name. Set image to true for the product image, false to hide the image, or enter an image URL. Use highlight="true" to give a column a different heading style.
In the preview, check that both columns appear and the purchase buttons point to the intended products. If a column is missing, check its product ID. If the page displays the shortcode as text, check that Storefront Pricing Tables and a compatible theme are active and that the example is in a Shortcode block.
In the Classic Editor, the Pricing Tables button in the Visual tab can insert the wrapper and the individual columns. Insert each column between the opening and closing wrapper tags.
Customize the table appearance
↑ Back to topGo to Appearance > Customize > Pricing Tables to set default alignment and column count and choose heading background and text colors for standard and highlighted columns. A table’s alignment and columns attributes override the corresponding Customizer defaults.
Questions and support
↑ Back to topSomething missing from this documentation? Still have questions and need assistance?
- If you have a question about a specific extension or theme you’d like to purchase, contact us to get answers.
- If you already purchased this product and need some assistance, get in touch with a Happiness Engineer via our support page and select this product’s name from the Product dropdown.