FlipBox

Customise the FlipBox box on your store

How to add the FlipBox block to your theme, what each setting does, and how to restyle it with CSS.

Add the block to your store

  1. In your Shopify admin, open Online Store, then Themes, and select Customize.
  2. Open a page, for example the home page, a collection page, a landing page or a product page.
  3. Select Add block (or Add section, then Apps) and choose FlipBox.
  4. Under Box product, pick which box to show. Leave it empty to use the product of the page.
  5. Save your theme.

Recommended box template

  1. Create a product template for boxes.
  2. Keep the theme’s variant picker (Standard, Wooden and so on).
  3. Add the FlipBox block. Customers add boxes with the FlipBox button.
  4. Assign the box product to that template.

Why: the theme’s own Add to cart would sell the empty packaging. A box bought without its products is stopped at checkout. With Replace the theme’s Add to cart and Buy now buttons on (the default), the block hides the theme’s Add to cart, Buy now and quantity, so you no longer need to remove the theme’s quantity, Add to cart and Buy now blocks. Remove them in the theme editor only for a theme where the buttons still show, or add their selectors to Extra CSS selectors to hide (advanced).

How the packaging choice works

When your product page shows the theme’s variant picker, the box products list changes when the shopper changes the variant, and the block shows no second picker. If the page has no theme variant picker, for example a home page or another box product chosen with Box product, the block shows its own packaging buttons automatically.

Block settings

These settings are in the theme editor, on the FlipBox block.

FlipBox block settings in the theme editor
SettingWhat it does
Box product box_productWhich box to show. Leave it empty to use the product of the page.
Packaging options packaging_pickerFollow the theme’s variant picker (default), or Show packaging buttons in this block. The first changes the box products list with the theme’s variant picker. The second shows the block’s own packaging buttons.
Heading headingThe heading above the box builder.
Show discount stepsA checkbox. Shows the discount steps as chips.
Button label button_labelThe text on the Add box to cart button.
Show a Buy now button show_buy_nowA checkbox, on by default. The Buy now button adds the box and goes straight to checkout.
Buy now button label buy_now_labelThe text on the Buy now button. Default Buy now.
Replace the theme’s Add to cart and Buy now buttons replace_theme_buttonsA checkbox, on by default. Hides the theme’s own Add to cart, Buy now and quantity on the page, so shoppers see only the box buttons.
Extra CSS selectors to hide (advanced) extra_hide_selectorsComma-separated selectors for other buttons a theme shows.
Hide the theme’s price on this page hide_theme_priceA checkbox, on by default. The box price is shown in the summary below the products, so the theme’s own price (often 0) is hidden. It only applies when the block shows the page’s own product, and it never hides prices inside the block, on product cards or in the cart.
Personalisation field (advanced) personalise_sourceThe variant metafield that holds each product’s personalisation settings, for example custom.customization. With it set, each product follows its own setting: text, image, text or image, or both. Leave it empty to use only the products you tick as Customer can personalise in the FlipBox app.
Personalisation required field (advanced) personalise_required_sourceA variant metafield (true or false) that makes personalisation required before the box can be added, for example custom.personalized_buy_now_only. Optional.
Columns on desktop columns_desktop2, 3, 4 or 5 columns of products. Default 4.
Columns on mobile columns_mobile1 or 2 columns of products. Default 2.
Card style card_styleOutlined, filled or plain. Default outlined.
Image shape image_ratioSquare, portrait or landscape. Default square.
Corner radius corner_radius0 to 24 px. Default 8.
Accent colour accent_colorLeave it empty to use your theme’s text colour.

Restyle with CSS

If a setting is not enough, set the CSS variables below. Add the CSS in the theme editor under Custom CSS, or in your theme’s stylesheet, and scope it to .flipbox.

FlipBox CSS variables
VariableWhat it controls
--flipbox-accentThe accent colour.
--flipbox-radiusThe corner radius.
--flipbox-gapThe space between cards.
--flipbox-card-bgThe card background.
--flipbox-borderThe card border.
--flipbox-columnsThe number of columns on desktop.
--flipbox-columns-mobileThe number of columns on mobile.
--flipbox-text-mutedThe colour of secondary text.

Round cards and a dark accent

.flipbox {
  --flipbox-radius: 24px;
  --flipbox-accent: #141716;
}

Three columns on desktop, one on mobile

.flipbox {
  --flipbox-columns: 3;
  --flipbox-columns-mobile: 1;
}

A muted card background

.flipbox {
  --flipbox-card-bg: #F1F1F1;
}

What shoppers see

Where you set these in the app

Open FlipBox in your Shopify admin and edit the box in the Box form:

Troubleshooting

The block does not show

The product has no FlipBox settings yet. Open it in the FlipBox app and select Save. Also check that your theme is an Online Store 2.0 theme.

Checkout says the box is incomplete

Another box or checkout rule app may be installed and conflict with FlipBox. Remove the old rule in Settings, Checkout.

I see two packaging selectors

The block is set to Show packaging buttons in this block while your theme also shows its variant picker. Set Packaging options to Follow the theme’s variant picker.

I still see the theme’s Add to cart

Turn on Replace the theme’s Add to cart and Buy now buttons, or add the button’s selector to Extra CSS selectors to hide (advanced), or remove the theme’s buy button blocks in the theme editor.

My theme styles override the block

Set the CSS variables above, scoped to .flipbox.

Need help?

See the support page or email info@fletten.com.