Add custom CSS to a deal and style one deal bar

Use Custom Styles in the deal editor to change the widget with CSS, for all deals or one deal, and target one bar with data-deal-bar-id.

On this page

Custom Styles let you change the look of the widget with your own CSS, when the deal's style settings do not have the option you need.

Add custom CSS

  1. Open the deal and open the Style section.
  2. Turn on Custom Styles.
  3. Choose a tab:
  • All deals: the CSS applies to every deal that has Custom Styles on.
  • This deal: the CSS applies to this deal only.
  1. Write your CSS in the editor, then save the deal.

The app limits your CSS to the deal's widget, so it does not change the rest of your product page. You do not need <style> tags: the app removes them.

Build a box pages have their own custom CSS: in the Build a box editor, open Style.

Classes and attributes you can target

ElementSelector
Every deal bar.kaching-bundles__bar
The selected bar.kaching-bundles__bar--selected
One bar.kaching-bundles__bar[data-deal-bar-id="..."]
A free gift[data-free-gift-id="..."]
An upsell[data-upsell-id="..."]
The crossed-out price of a bar.kaching-bundles__bar-full-price

There is no class for the position of a bar (first, second). Use the bar's ID.

Style one deal bar

  1. Open your product page on your store.
  2. Right-click the bar and click Inspect.
  3. Find the element with the class kaching-bundles__bar and copy the value of its data-deal-bar-id.
  4. Use it in This deal, for example:
css
.kaching-bundles__bar[data-deal-bar-id="paste-the-id-here"] {
  border-width: 3px;
}

The bar keeps its ID when you edit the deal. A bar that you delete and add again gets a new ID.

Hiding parts of a bar

Before you hide something with CSS, check the deal settings. These options show content only for the bar the customer selected:

  • Show products only when selected on Bundle and Mix & Match bars
  • Show highlights only when selected
  • Visible only when bar is selected on bar upsells
  • Show product options only when selected on upsells

There is no setting to hide the other bars when the customer selects one.


Need help? Drop us a message in the live chat, and we'll sort it out together.