Public Ticket #3831651

Tiered Pricing Table design

Closed
Comments
21 Tickets 12
Bob Hufkens started the conversation 2 years ago on March 4, 2025 at 11:19am

Hello,

I'm looking at the docs on https://b2bkingplugin.com/docs/b2bking-tiered-pricing-setup-auto-generated-tiered-pricing-table/. It says "The table design adapts to each theme seamlessly".

However I am seeing inline styles with !imporant rules applied. For example:

table.b2bking_tiered_price_table tbody td.b2bking_has_color { background: #3ab1e4 !important; background-color: #3ab1e4 !important; }

How can I make the design adapt to the theme? Our theme is a classic theme built with ACF & Timber.

Thank you.

8 Tickets
Sarah replied 2 years ago on March 5, 2025 at 2:18pm

I'd like to add to this in terms of customising the design of any table related display on the front end including the subaccounts list etc

2,762
KingsPlugins replied 2 years ago on March 6, 2025 at 6:19pm

Hi there,

What that docs article refers to is that we use the 'shop_table' class, which many or most themes use to style tables. In many cases it works well, but not always, depending on each theme. For example, with Storefront theme:

4190683692.png

Woodmart theme:

5188751897.png

Salient theme:

6312116408.png

 

However not all themes style that shop_table class. I am not that familiar with Timber - I assume they are not adding that kind of styling.

 

-> Regarding why we add those 'important' tags, I understand how this might seem like a strange choice. Unfortunately in some cases we've seen problems where various themes add styling where for example the table would appear black and completely unreadable. These are just some things we've learned from experience and in some cases we've added important tags to prevent these issues by default.

 

To add a custom style for these tables on your site, the only option may be through custom CSS. Even when there are important tags used, we can still overwrite the styling by using a high degree of CSS specificity. 

If you can share a URL to your site with us, to a page where we can view that table, I'd be happy to try and work on some styling that works with your theme.

 

Kind regards,

Stefan

 

 

Sign In