Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

Units on SRP and VDP pages can be targeted by Manufacturer specific CSS rules. This is commonly used to strike out or hide pricing data for units made by certain manufacturers. This code should be put in the page’s main CSS file.

The example below applies a strike-through text effect to the pricing values of “Alliance RV” units.

.unit .detailsContainer[data-mfg="Alliance RV"] .sale-price-text,
.unit .detailsContainer[data-mfg="Alliance RV"] .reg-price-text,
.unit .detailsContainer[data-mfg="Alliance RV"] .you-save-text,
.unit-detail-v2[data-mfg="Alliance RV"] .sale-price-text,
.unit-detail-v2[data-mfg="Alliance RV"] .reg-price-text,
.unit-detail-v2[data-mfg="Alliance RV"] .you-save-text {text-decoration: line-through;}

SRP and Unit Lists can be selected by .unit .detailsContainer[data-mfg="Manufacturer Name"]. VDP units can be selected by .unit-detail-v2[data-mfg="Manufacturer Name"]

  • No labels