Zen Cart Logo
Forums / All Other Contributions/Addons / Sale Ending/Special Ending Support thread

Sale Ending/Special Ending Support thread

Views: 10,016

Results 1 to 20 of 27
2 Jun 2010, 12:46 PM
#1
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Sale Ending/Special Ending Support thread

My Sale Ending/Special Ending contribution is now available from the downloads area here:

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1662

Sale Ending/Special Ending was inspired by a Twitter post from e-Commerce expert Jason Billingsley, who suggested

"When putting items on sale, express the sale end date to add urgency."

The Sale Ending/Special Ending contribution shows the end date of the sale or special (as long as the End Date or Expiry Date has been set for that sale or special) on the product info page. Installation instructions are provided in the readme file.

28 Jun 2010, 5:42 PM
#2
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

hello, thank you for this mod, i use it for my specials,
i set the special expiry date jun 20 from admin, the special ends on jun 19 (this is zencart default setting, i dont know how to change), and it displays special expries on jun 20 on product info page.
so the real expiry date is one day earlier than the expiry date displays on product info page. what do i fix this?

29 Jun 2010, 1:26 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Sale Ending/Special Ending Support thread

June 20th starts at Midnight June 20th which is 1 minute after June 19th 11:59pm ...

Did you want the special to end June 20th at midnight or really June 21st at Midnight which is 1 minute after June 20th 11:59pm? :unsure:

15 Jul 2010, 6:27 PM
#4
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

I've always thought it would be helpful to display the ending date of a sale or special. Thanks for the mod!.

I also find the expiration date misleading. If the sale expires "today", it should be available until "today" ends. Customers will easily be confused if the site says sales ends June 20th and they return on the 20th to find the sale is over.

Any way to change the way this works?

Also, I'd like to change the way the date is displayed. Instead of 'Special expires Friday 16 July, 2010' I'd like 'Special expires Friday, July 16, 2010'

Thanks!

15 Jul 2010, 6:40 PM
#5
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

In the add-on code I found zen_date_long and changed it to zen_date_short. It now displays 7/16/2010. What other date options/commands are available?

4 Nov 2010, 2:49 PM
#6
caroleas avatar

caroleas

Totally Zenned

Join Date:
Feb 2009
Posts:
896
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

Has there been any coding so that if the sale ends TODAY, it is still available TODAY? so if it says sale until Dec 31, it will be available ALSO on Dec 31?

I would LOVE to install that mod, but without confusing the customers (i am confused enough myself when setting the sale dates!)

12 Jan 2011, 5:01 AM
#7
ken_joy avatar

ken_joy

New Zenner

Join Date:
May 2006
Posts:
62
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

Hi Software Guy,

Thanks for all of your great contributions!

I just installed your sale ending/special ending module into my 1.3.9h install, however, the sale end date is not appearing on products on sale or on special. I double-checked to make sure all was uploaded to my root directoy (where index.php is located) made sure to change the name of "custom" to the name of my template, but no luck. I manually merged your tpl_product_info_display.php (using WinMerge) with my existing version, as it has been modified to show that items are "in stock" instead of showing the quantity of product on hand. Would that have anything to do with the sale end dates not appearing on products? Or, is there something I'm missing?

Thanks, in advance, for your help!
Ken

website is https://www.houseofjoypublishing.com

3 Feb 2011, 10:18 AM
#8
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Sale Ending/Special Ending Support thread

Enough folks have asked the question CaroleAs and jeking asked that I have made this an option. If you want your sale to end on June 20 at midnight, set the end date in Salemaker to June 21 and set this option in Sale Ending, and it will show June 20th. This option will be available in the next release of Sale Ending in March.

3 Feb 2011, 10:52 AM
#9
caroleas avatar

caroleas

Totally Zenned

Join Date:
Feb 2009
Posts:
896
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

Not to want to seem picky, but IF you could also incorporate some code so there is an indication of "Last day of the sale" when it happens to be the last day (like June 20th in this example), it would be cool (even easier for the customer). But maybe i am just dreaming an idea.

3 Feb 2011, 2:35 PM
#10
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

swguy:

Enough folks have asked the question CaroleAs and jeking asked that I have made this an option. If you want your sale to end on June 20 at midnight, set the end date in Salemaker to June 21 and set this option in Sale Ending, and it will show June 20th. This option will be available in the next release of Sale Ending in March.

Fabulous Scott. Very much appreciated!

1 Mar 2011, 11:28 AM
#11
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Sale Ending/Special Ending Support thread

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).

1 Mar 2011, 3:48 PM
#12
maac2 avatar

maac2

New Zenner

Join Date:
Jan 2011
Posts:
70
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

Works great, thank you for the update!

20 Apr 2011, 10:04 PM
#13
ddandlamber avatar

ddandlamber

New Zenner

Join Date:
Apr 2011
Posts:
15
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

How can I change the date displayed format 21 April, 2011, to April 21, 2011 or 4/21/11?

20 Apr 2011, 10:11 PM
#14
ddandlamber avatar

ddandlamber

New Zenner

Join Date:
Apr 2011
Posts:
15
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

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

21 Apr 2011, 10:40 AM
#15
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Sale Ending/Special Ending Support thread

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.

12 Nov 2011, 2:04 AM
#16
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Sale Ending/Special Ending Support thread

Sale Ending/Special Ending is now Zen Cart 1.5.0 compatible. No other functional changes were made in version 1.2.

22 Oct 2012, 7:54 PM
#17
kwrosenzweig avatar

kwrosenzweig

New Zenner

Join Date:
Jun 2011
Posts:
20
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

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?

27 Oct 2012, 1:08 AM
#18
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Sale Ending/Special Ending Support thread

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');

31 Mar 2013, 6:07 PM
#19
mikebr avatar

mikebr

Zen Follower

Join Date:
May 2007
Posts:
124
Plugin Contributions:
0

Re: Sale Ending/Special Ending Support thread

Ajeh:

June 20th starts at Midnight June 20th which is 1 minute after June 19th 11:59pm ...

Did you want the special to end June 20th at midnight or really June 21st at Midnight which is 1 minute after June 20th 11:59pm? :unsure:

12:00 Midnight is the customer's Time or the Server's Time?

31 Mar 2013, 11:38 PM
#20
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,708
Plugin Contributions:
56

Re: Sale Ending/Special Ending Support thread

Server's time.