I have a view created which has a column 'Price'. I also I have another column 'Special Price' in the same view, but 'exclude from display' is selected.
In views, click the price field > rewrite results > Rewrite the output of this field > I added the below:
I would like to display the special price only if the special price field has a value. If the special price field has no value, I only want to display the price field value. I am not sure how I can modify it ?
I am new to drupal. Sorry if I am not clear. In the views, I would like to put price and special price in the same column. I will add some css to special price. If I un-selected exclude from display for special price, then special price will be in another column which I do not want to do.
Please visit the page and see the price column.