Sale Ending Zen Cart

Sale Ending/Special Ending

Sale Ending/Special Ending is a Zen Cart™ contribution which displays the end date of a sale or special. The end date is shown if an Expiry Date is set on the special (Admin->Catalog->Specials) or an End Date is set on a sale (Admin->Catalog->Salemaker).

Donate! Show your appreciation by supporting my efforts.

Relevance: Zen Cart™ 1.3.8, 1.3.9, 1.5.x

Current Version: 1.2

Support Thread: Sale Ending/Special Ending Support Thread

Cost: The basic show end date on the product info page is free, but a donation is appreciated.

The extension which shows the sale / special ending on listing pages is $20. Buy Now!

The extension which shows the sale / special ending on centerboxes is $20. Buy Now!

Installation Instructions: click here

Installation Difficulty: Moderate (Some file merging)

Location: Zen Cart Downloads page, under Marketing Tools.

Download: Sale Ending/Special Ending on the Zen Cart Downloads Page

FAQ: click here


Overview:

This contribution shows the date when a sale or special ends.

E-Commerce expert Jason Billingsley sent out this tweet a while ago:

tweet from Jason


The Sale Ending/Special Ending mod enables you to do this on the product info page. The default display without the Sale Ending/Special Ending mod is as follows:

Example without Sale Ending/Special Ending


With the Sale Ending/Special Ending mod, the end date is shown if an Expiry Date is set on the special (Admin->Catalog->Specials) or an End Date is set on a sale (Admin->Catalog->Salemaker).

Example with Sale Ending/Special Ending


Installation Instructions:

This mod assumes your template name is "custom." If you have used another template name, use that name when installing this mod instead of custom.
  1. Back up everything! Try this in a test environment prior to installing it on a live shop.
  2. Unzip the file you have received.
  3. Copy the contents of "common_files" to the root directory of your shop.
  4. Use zc138, zc139 or zc150, depending on which version of Zen Cart you have. Merge the files in with what you have in your cart. NOTE that these files assume your template name is "custom," so any file with "custom" in its name will need to be renamed if you are using a different template name.
  5. Donate! Show your appreciation by supporting my efforts.
Note: The way Zen Cart handles expiry dates is that a sale or special with an end date of X actually ends at midnight the day before X. For instance, a sale which has an enddate of July 12th actually ends at midnight on July 11th, but the sale ending date shows July 12th. Some people don't like this. If you want the sale to end at midnight on July 12th and show this date in sale ending/special ending, set the end date to July 13th in Zen Cart (as usual), and do the following:
  1. Edit the file includes/functions/extra_functions/sale_special_ending.php.
  2. Change the last parameter in the function sale_special_ending to true, i.e.
    function sale_special_ending($id, $longdate = true, $one_day_back = true)
    

Like Sale Ending/Special Ending?

I have lots of other cool software for the rest of your Zen Cart. Please consider supporting my work by buying software or making a donation.


Showing Sale Ending/Special Ending on Listing Pages

Sale Ending/Special Ending on Category Listing page


Sale Ending/Special Ending on New Product Listing page


Sale Ending / Special Ending on listing pages is only $20.00! It shows the Sale Ending / Special Ending text on the All Products, New Products, Featured Products, Search Results and manufacturer and category listing pages.


Showing Sale Ending/Special Ending in Centerboxes

Sale Ending/Special Ending on Centerboxes

Sale Ending / Special Ending on Centerboxes is only $20.00! It shows the Sale Ending/Special Ending text in the centerboxes for New Products, Featured Products and Specials.


I charge a fee of $20 for the Sale Ending/Specials Ending on Listing Pages extension, and $20 for the Sale Ending/Specials Ending on Centerboxes extension.
The fee covers software only; installation is extra if you require help.





Major Versions

  • 1.2 11/06/2011 - Updated for 1.5.0
  • 1.1 03/01/2011 - Update to allow people to quote the date as 1 day before the Zen expiry date.
  • 1.0 06/01/2010 - First Release

FAQ

Q: How can I modify the styling of the Sale Ending/Special Ending text?
A: There is a css file called
includes/templates/YOUR_TEMPLATE/css/stylesheet_sale_special_ending.css
Simply modify the class ".ssblock" in this file.

Q: How can I show Sale Ending/Special Ending text on listing pages?
A: Buy the "Sale Ending/Special Ending on Listing Pages extension from me for $20.00. It shows the Sale Ending / Special Ending text on the All Products, New Products, Featured Products, Search Results and manufacturer and category listing pages.

Q: How can I show Sale Ending/Special Ending text in the Centerboxes on my home page and other pages?
A: Buy the "Sale Ending/Special Ending on Centerboxes extension from me for $20.00. It shows the Sale Ending/Special Ending text in the centerboxes for New Products, Featured Products and Specials.

Q: How can I change the long expiry date from "Friday 26 October, 2012" to "Friday October 26, 2012"?
A: The longdate within this plugin uses the settings for zen_date_long, which is set in includes/languages/english.php. Override this by copying it to includes/languages/YOUR_TEMPLATE/english.php, and change
define('DATE_FORMAT_LONG', '%A %d %B, %Y');
to
define('DATE_FORMAT_LONG', '%A %B %d, %Y');