In my site (Drupal 6.16, Ubercart 6.x-2.2, Aquia Prosper 6.x-1.0-beta 4), some items in the products' list have sell prices less than the list prices and some prices are the same (no discount). It seems that there is no logic yet to decide which list price to have line-through and which ones to leave as is.
The result is that all list prices are strikedout.

Comments

icymetal’s picture

StatusFileSize
new3.4 KB
stephthegeek’s picture

Title: Sell price strikeout even when same price as sell price » Check if sell price is lower than list price before applying strikethrough
Project: Acquia Prosper » Fusion
Version: 6.x-1.0-beta4 » 6.x-1.x-dev
Category: bug » feature

Actually the strikethrough is *always* on the list price field. If you want to get fancier than that, you'll need to do some additional coding to actually check the value of the prices in these fields. We'd consider this as a feature for Fusion if someone wants to write a patch :)

In the meantime, you can also override the following CSS to remove the strikethrough:

.uc-price-list_price, .uc-price-list {
  text-decoration: line-through;
}
icymetal’s picture

Thanks for the quick reply.

I like the strikethrough feature. I saw that css in the style.css of fusion but as you said, I'll need a code to check the values. I didn't write code within Drupal yet (it maybe a good time to start). Another option is to raise the list price a bit to show discount (or lower the sell price). This is doable in my case.

stephthegeek’s picture

Status: Active » Closed (won't fix)

I think we're going to leave this as an exercise to the themer if you'd like to do actual field value checking.