If this is your first visit, check our documentation. To post, register or login.
Forums / Zen Cart Code Suggestions / Sales/specials price display change.

Sales/specials price display change.

Started by rodg on 2 Sep 2015, 10:57 PM · Views: 67

Results 1 to 1 of 1
2 Sep 2015, 10:57 PM
#1
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Sales/specials price display change.

Scenario:

Product has a 'normal' price of $39.95, which is then sold as a Special with an 80% discount, showing a sales price of $7.99.

The Store owner then decides to have a 50% off storewide sale, and selects the "If Price is Special" = "Ignore Specials Price - Apply to Product Price and Replace Special"

The 'new' price of the product is now $19.98 - No problem there, BUT, what the customer sees onscreen is

  1. The original price $39.95 - crossed out
  2. The Specials Price $7.99 - crossed out
  3. The current Sales Price - $19.98

In other words, the pricing is correct according to the settings applied, but to the customer (in the words of my client - "It looks like the current sale is a bit of a rip-off as the final cost is more than the previous special"

The fix I've applied for this is to change line#128 of /includes/functions/functions_prices.php (V1.5.4)

From

 if ($display_special_price) {  

To

 if ($display_special_price > $display_sale_price) {

Here's a screenshot of before and after changes. I think it could be worth applying this change to the default code.

Attachment 15572

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.