Hello,

I'm using CSS to format price fields (I prefer it to labed rows). But if you use
text-decoration:line-through;

for not-discounted price, when discount is disabled (or any products has no discount), you MUST edit again .css files

I think it could be useful if a user could set some css code, and it was gracefully ignored if no discounts are applied.

For a reference, the styles I'm using at touchemoa.com are:

/*
 * Specials
 */

.rrp-total{
  text-decoration:line-through;
}

.webprice-total{
  color:red;
}

.commerce-price-rrp-your-price tr.even, .commerce-price-rrp-your-price tr.odd{
  background: none;
  border-bottom: none;
}

.views-field-commerce-price table.commerce-price-rrp-your-price{
  margin: 0 auto;
}

Regards

Comments

ikos’s picture

Status: Active » Needs review

Hi,

Thanks for the feedback.

I like this default styling and have included it in the next dev build. Of course people will probably need to override it for their own purposes but most sites we've built using this module use the strike out style so it makes sense to add it as a default.

Please give the latest dev and test and let me know how you get on.

kind regards

Richard

avpaderno’s picture

Issue summary: View changes
Issue tags: -CSS, -discounts, -Commerce, -specials +Discount