Version 1.1 of Sale Ending/Special ending has just been posted with instructions on how to make the sale ending date the actual date which is displayed (instead of 1 day earlier).
Version 1.1 of Sale Ending/Special ending has just been posted with instructions on how to make the sale ending date the actual date which is displayed (instead of 1 day earlier).
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Works great, thank you for the update!
How can I change the date displayed format 21 April, 2011, to April 21, 2011 or 4/21/11?
Never mind. Of course I figured it out right after I posted the question. Here's how I changed it:
I modified \includes\functions\extra_functions\sale_special_ending.php
and changed the two instances of
if ($longdate) {
$date_str = zen_date_long($enddate);
} else {
$date_str = zen_date_short($enddate);
to
if ($shortdate) {
$date_str = zen_date_long($enddate);
} else {
$date_str = zen_date_short($enddate);
I just changed the word longdate to shortdate.
Amber
A better fix would be to modify the default value of the formal parameter $longdate in sale_special_ending() to false.
function sale_special_ending($id, $longdate = false, $one_day_back = false)
includes/functions/extra_functions/sale_special_ending.php.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Sale Ending/Special Ending is now Zen Cart 1.5.0 compatible. No other functional changes were made in version 1.2.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Hi swguy, I installed the mode and my specials expiration date is 11/01/12 so that the sale goes until 10/31 at midnight. If I leave $one_day_back = false) the date in the products description is 11/1. If I hange it to true, then the date in the product description is 10/30. Also, the date shows for example: Thursday 01 November, 2012. Is there a way to change the format so that it is Thursday, November 01, 2012?
Kevin Rosenzweig http://FluffyRump.com
<a href="http://fluffyrump.com">FluffyRump.com: Cloth diapers and green accessories for the family</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');
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Server's time.
That Software Guy. My Store: Zen Cart Modifications
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks