Zen Cart Logo
Forums / Setting Up Specials and SaleMaker / Salemaker won't assign start, end dates

Salemaker won't assign start, end dates

Views: 8,362

Results 1 to 20 of 38
27 Oct 2011, 4:03 AM
#1
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Salemaker won't assign start, end dates

Hello, I've got a problem with Salemaker, in that it won't accept the start and end dates of a sale (I'm using mm/dd/yyyy).

If I am trying to set up a new sale and fill in the start/end fields, the dates default to immediately/never regardless of what I've entered.

I have a couple of old expired sales, which display proper start and end dates as I set them up, but if I try to edit those dates they too revert to immediately start and never end.

I've got version 1.3.9h. Only modifications I've made lately were related to Facebook like buttons on product pages.

Grateful for suggestions where to start troubleshooting,

thanks,
s

27 Oct 2011, 4:23 AM
#2
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

My problem is not just a SaleMaker problem it turns out. If I try to edit a special, those no longer accept start and end dates. I don't use SaleMaker much but I do run specials and haven't encountered this before.

27 Oct 2011, 6:13 PM
#3
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

Let me rephrase the question a little: I have made some modification to my store recently which seems to have broken SaleMaker and Specials. I can make sales and specials but cannot set dates for them (they revert to running instantly and ending never).

Files I have modified recently, which I suspect must contain an error:

includes/templates/common/html_header.php
includes/modules/meta_tags.php
includes/templates/template_default/common/tpl_main_page.php
includes/templates/template_default/templates/tpl_product_display.php

Can someone help me zero in a little better?

27 Oct 2011, 10:19 PM
#4
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

I'll add:

I can edit the starting and ending dates of a sale through my database, but not from the admin panel.

27 Oct 2011, 10:31 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

What are the settings in your english.php for these:

setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
27 Oct 2011, 10:38 PM
#6
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

those settings:

@setlocale(LC_TIME, 'en_US.ISO_8859-1');
  define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
  define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
  define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
  define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
27 Oct 2011, 10:53 PM
#7
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

Thank you for assisting me; I have to be out of town for about four hours now but will return to the topic. I notice it looks like I may be missing a couple of lines from that code........(somehow)

28 Oct 2011, 12:51 AM
#8
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

Look in the english.php file for the Admin in the:
/your_secret_admin/includes/languages/english.php

28 Oct 2011, 4:09 AM
#9
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

that code:

setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
28 Oct 2011, 5:32 AM
#10
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

Can you give an example of the dates you are trying to set?

For Example if the Sale runs from October 30, 2011 thru October 31, 2011 ...

The Start Date would be: 10/30/2011 (Midnight)

End Date would be: 11/1/2011 (Midnight)

as the times starts and stops at Midnight ...

NOTE: these dates are based on Server Time ...

28 Oct 2011, 5:34 AM
#11
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

Also note that the Categories that are marked for the Sale are based on the Products master_categories_id ...

If you do not use Linked Products, then this should not be a problem ... unless you import Products and then you do not have master_categories_id on most import tools ...

Plus, if you import you will want to ensure that you have products_price_sorter ...

NOTE: These can easily be fixed if you do import and do NOT use Linked Products ...

28 Oct 2011, 4:05 PM
#12
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

Dates I intended to use:

11/28/2011
11/29/2011

No linked products, no imported data.

28 Oct 2011, 4:18 PM
#13
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

Does this happen if you manually type in the dates or just if you use the calendars to set the date?

28 Oct 2011, 5:11 PM
#14
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

(I think we're zeroing in on it now)

As a matter of fact, if I try to use the calendars, they don't seem to cooperate, so I've been entering the dates manually.

28 Oct 2011, 5:25 PM
#15
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

Could you reload, from a clean Zen Cart v1.3.9h, via FTP, to your server all the files for:
/your_secret_admin/includes/javascript/

28 Oct 2011, 5:28 PM
#16
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

sure, will get on it, thank you, will let you know (local demands for my attention might take an hour).

28 Oct 2011, 6:26 PM
#17
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

Unfortunately, having uploaded new /your_secret_admin/includes/javascript/, there was no new result.

The calendars do pop up for me, I can scroll through them, but can't select dates (however that is accomplished).

28 Oct 2011, 6:43 PM
#18
ajeh avatar

ajeh

Oba-san

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

Re: Salemaker won't assign start, end dates

Could you check the file, on the server, for the:
/your_secret_admin/includes/languages/english.php

and ensure those settings are the same as what you posted earlier? :unsure:

28 Oct 2011, 7:09 PM
#19
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

yes, they are (now):

setlocale(LC_TIME, 'en_US.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%m/%d/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('PHP_DATE_TIME_FORMAT', 'm/d/Y H:i:s'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
define('DATE_FORMAT_SPIFFYCAL', 'MM/dd/yyyy');  //Use only 'dd', 'MM' and 'yyyy' here in any order
28 Oct 2011, 7:27 PM
#20
saintsteven avatar

saintsteven

New Zenner

Join Date:
Mar 2010
Posts:
83
Plugin Contributions:
0

Re: Salemaker won't assign start, end dates

If it helps, to the best of my recollection, the only recent modifications I've made to the cart were these:

https://www.facebook.com/note.php?note_id=471724284352