Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2013
    Location
    Lakewood, California, United States
    Posts
    66
    Plugin Contributions
    0

    Idea or Suggestion Global sale function (Change the order of sale/save placement)

    I could not find a link or any information on this, but think it could be a benefit to all, and would appreciate knowing where to amend the code to make the sale prices appear below the "save 10%" across the whole site, rather than above it. I think it presents more sensibly there. How can I amend the code to make the save 10% appear between the original crossed out price and the adjusted price.

    My apologies if this is listed or asked and answered, but it makes so much sense, I have to ask...

    Many thanks,

    Marc
    reasonablerigging.com

    Name:  Screen shot 2013-12-18 at 10.58.08 AM.png
Views: 118
Size:  40.1 KB

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,571
    Plugin Contributions
    88

    Default Re: Global sale function (Change the order of sale/save placement)

    It looks like it would be a relatively simple change to (a core file, so make sure that you have a backup) /includes/functions/functions_prices.php's zen_get_products_display_price function. For v1.5.1, this code fragment starts at line 261:
    Code:
        if ($display_normal_price == 0) {
          // don't show the $0.00
          $final_display_price = $show_special_price . $show_sale_price . $show_sale_discount;
        } else {
          $final_display_price = $show_normal_price . $show_special_price . $show_sale_price . $show_sale_discount;
        }
    You'd want to change it to the following (I think) to effect your desired display:
    Code:
        if ($display_normal_price == 0) {
          // don't show the $0.00
          $final_display_price = $show_special_price . $show_sale_discount . $show_sale_price;  // Swapped sale_discount and sale_price
        } else {
          $final_display_price = $show_normal_price . $show_special_price . $show_sale_discount . $show_sale_price;  // Swapped sale_discount and sale_price
        }

  3. #3
    Join Date
    Jul 2013
    Location
    Lakewood, California, United States
    Posts
    66
    Plugin Contributions
    0

    Default Re: Global sale function (Change the order of sale/save placement)

    Brilliant. Bless you! I really think this display is better and makes more sense. Truly, my thanks.

 

 

Similar Threads

  1. Case Sale - Buy 4 Items save another 10%
    By jeff768 in forum Discounts/Coupons, Gift Certificates, Newsletters, Ads
    Replies: 5
    Last Post: 29 Jul 2012, 11:41 PM
  2. v139h how to turn off Sale graphic and % display on sale items?
    By jjj0923 in forum Setting Up Categories, Products, Attributes
    Replies: 4
    Last Post: 5 Feb 2012, 01:55 PM
  3. Change the Sale Text
    By Wallymau in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 19 Nov 2011, 08:32 PM
  4. Replies: 2
    Last Post: 8 Mar 2011, 11:26 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR