How can i show FROM price on configurable products
Magento 2 displays base price set on configurable product as price on Category pages and on product view page before attribute is selected. I would like to display either price range or show 'From' in front of the price, so it doesn't look like misleading, because the price changes when attribute is selected e.g. different price for different size.
Solved! Go to Solution.
The simpliest way to add a label (e.g. "FROM") before a price is to use the CSS rule ::before with setting the content property:
How to apply a CSS rule on a frontend product view page to the configurable products only: https://mage2.pro/t/819
Very useful, thanks Dmitry.
Any idea how to do a similar exercise on a category page, I can't see any specific css class that identifies configurable products.
For the category page you could add the type of product to each product item as a class, this will require amending the product listing template. You can get the type ID via: