-
Notifications
You must be signed in to change notification settings - Fork 3
2.3_Usage Advanced
Additional features and customization options for Markup-by-Attribute.
When viewing attribute terms (Products → Attributes → click an attribute name), Markup-by-Attribute adds a Markup column that displays the markup value for each term.
[TODO: screenshot - markup-column.png] (Click to enlarge, use [Back] to return).
The column is sortable—click the header to sort terms by their markup value. This makes it easy to see all terms that have markups assigned.
The price breakdown added to variation descriptions is wrapped in <span id="mbainfo"> tags, allowing you to style it with CSS.
After using Set regular price, variations with markups will have a description like this:
<span id="mbainfo">Product price $39.95
Add $2.00 for Blue
Subtract $1.00 for X-Small
</span>Add the following to your theme's CSS or the Additional CSS in Appearance → Customize:
#mbainfo {
color: salmon;
}The result:
(Click to enlarge, use [Back] to return).
You can use any CSS properties to customize the appearance—font size, background color, borders, etc.
Markup by Attribute for WooCommerce © 2018-present Mark Tomlinson