dealertrend / wordpress-plugin-inventory-api

This is the new WordPress plugin for DealerTrend, Inc. It will interface with their Automotive Information System's API.
http://www.dealertrend.com
GNU General Public License v2.0
22 stars 6 forks source link

Add Was/Now price on list and detail page #9

Closed NetBizCoach closed 13 years ago

NetBizCoach commented 13 years ago

please review current logic and implement.

grok commented 13 years ago

Here's the logic as I understand it from Ruby. The order is important.

If we are not using "was/now", check to see if we have a sale price, then display it, otherwise use the asking price.

If the asking price is 0 - display the retail price. If the chosen price to display is 0 - display the default price text.

If we are using the "was/now" format, check to see if the "was" should have a strikethrough style applied to it. Then display the sale price and the asking price.

I do not see how I can determine if the retail price needs to be displayed or not. I would think that there is no reason to display it. Other than checking to see if I have a number for it or not.

I also do not have a sale expiration date.

grok commented 13 years ago

This is now done.

Simplified the logic.