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
- In your Shopify admin, open Online Store, then Themes, and select Customize.
- Open a page, for example the home page, a collection page, a landing page or a product page.
- Select Add block (or Add section, then Apps) and choose FlipBox.
- Under Box product, pick which box to show. Leave it empty to use the product of the page.
- Save your theme.
Recommended box template
- Create a product template for boxes.
- Keep the theme’s variant picker (Standard, Wooden and so on).
- Add the FlipBox block. Customers add boxes with the FlipBox button.
- 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.
| Setting | What it does |
|---|---|
Box product box_product | Which box to show. Leave it empty to use the product of the page. |
Packaging options packaging_picker | Follow 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 heading | The heading above the box builder. |
| Show discount steps | A checkbox. Shows the discount steps as chips. |
Button label button_label | The text on the Add box to cart button. |
Show a Buy now button show_buy_now | A checkbox, on by default. The Buy now button adds the box and goes straight to checkout. |
Buy now button label buy_now_label | The text on the Buy now button. Default Buy now. |
Replace the theme’s Add to cart and Buy now buttons replace_theme_buttons | A 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_selectors | Comma-separated selectors for other buttons a theme shows. |
Hide the theme’s price on this page hide_theme_price | A 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_source | The 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_source | A 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_desktop | 2, 3, 4 or 5 columns of products. Default 4. |
Columns on mobile columns_mobile | 1 or 2 columns of products. Default 2. |
Card style card_style | Outlined, filled or plain. Default outlined. |
Image shape image_ratio | Square, portrait or landscape. Default square. |
Corner radius corner_radius | 0 to 24 px. Default 8. |
Accent colour accent_color | Leave 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.
| Variable | What it controls |
|---|---|
--flipbox-accent | The accent colour. |
--flipbox-radius | The corner radius. |
--flipbox-gap | The space between cards. |
--flipbox-card-bg | The card background. |
--flipbox-border | The card border. |
--flipbox-columns | The number of columns on desktop. |
--flipbox-columns-mobile | The number of columns on mobile. |
--flipbox-text-muted | The 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
- Discount step chips that show the discount for each box size.
- On boxes set to “Each product only once”, a Select button instead of a quantity.
- A Personalise button on products you marked as personalisable. The shopper types a short text of up to 60 characters. It is saved on the cart line and shown in the cart, at checkout and on the order.
- With Personalisation field set (for example
custom.customization), each product follows its own setting: text, image, text or image, or both. A shopper’s photo (JPG, PNG or WEBP, up to 10 MB) is saved on the cart line and shows on the order. With Personalisation required field set (for examplecustom.personalized_buy_now_only), the box cannot be added until that product is personalised. - Images for the packaging options.
- One merged, discounted line in the cart and at checkout.
- Clear messages when a combination is not allowed.
Where you set these in the app
Open FlipBox in your Shopify admin and edit the box in the Box form:
- Box size and discount steps.
- Each product can only be picked once.
- The products for each packaging option, and Customer can personalise for each product.
- An image for each packaging option.
- Combinations not allowed.
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.