Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Product date available is today, shows as expected product

Product date available is today, shows as expected product

Locked

Views: 2,332

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
15 Mar 2007, 10:33 PM
#1
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Product date available is today, shows as expected product

Noticed on a couple of my items that I marked with an available date of today (which agreed with Zen's today date) that they get entered as an expected product and not an available one.

Quick fix was to change it to yesterday but can't believe I'll have to do that with all new products.

Whass' up with that?

16 Mar 2007, 1:12 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: Product date available is today, shows as expected product

I cannot reproduce this error in Zen Cart v1.3.7 ...

Are you using a Clean install or an Upgrade?

How did you install or upgrade your site?

If you go to your site with a fresh browser window in IE, suggested test by clicking your nice big blue E icon to open a clean browser session as it could be a cache/configuration issue so this appears to be happening, does it still happen?

Have you an URL where we can see this?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Mar 2007, 1:16 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Product date available is today, shows as expected product

Well ... umm ... er ... isn't that poopie ... I think I just reproduced it ... umm ... let me do a few more tests here ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Mar 2007, 1:32 AM
#4
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Product date available is today, shows as expected product

You mean I might actually help in a roundabout way...that would be a switch!

16 Mar 2007, 1:35 AM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Product date available is today, shows as expected product

accidents do happen ... :cool:

Let me hunt this little fellow down and see if I cannot come up with a quick temporary fix ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Mar 2007, 1:36 AM
#6
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Product date available is today, shows as expected product

Thanks as always Linda. Of course on my end I can just make sure I always back date my new items since I'm working in a Filemaker database. Not elegant but easy.

I'll stay tuned.

16 Mar 2007, 2:44 AM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Product date available is today, shows as expected product

Try editting the file:
/includes/functions/functions_lookup.php

And change the line, approximately 934, in the function zen_get_upcoming_date_range from:

    $new_range = ' and p.products_date_available >=' . $zc_new_date;

to read:

    $new_range = ' and date_format(p.products_date_available, \'%Y%m%d\') >' . $zc_new_date;

See if this doesn't allow the date to be anything with whatever time ... which was the issue as 2007-03-15 00:00:01 is greater than 20070315 ... :lamo:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

16 Mar 2007, 7:06 PM
#8
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Product date available is today, shows as expected product

Ha! Just tried it but, of course, I can't try it for real unless I do it at 00:00:01. Although I don't remember the original problem happening around that time I may have just caught it the next day during review.

I'll make the change anyway and keep a note for myself in case something comes up due to the change though from the look of it it wont effect anything badly.

Still having some issues with dates that I'm forcing right now. Can't seem to edit the format correctly. I wanted to have some specials going until I don't want them to (without thinking about it every year) so wanted to set 1/1/3000 but Zen sees them as 1/1/2030. Of course this works but can't figure out where (Zen, Zen file, Filemaker database) to change formats to get it working right. Seems like it is a specials issue only since product available date works fine with, for example, 3/16/2007.

At least my problems are becoming real as apposed to stricltly newbie stuff. That's progress......right?

As always, I'm in your debt.

17 Mar 2007, 2:51 AM
#9
ajeh avatar

ajeh

Oba-san

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

Re: Product date available is today, shows as expected product

Many programs scripts have limitations ...

Perhaps 23 years is good enough to run the special before you have to update it? :smartass:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

17 Mar 2007, 4:04 AM
#10
jeffey avatar

jeffey

Zen Follower

Join Date:
Aug 2006
Posts:
252
Plugin Contributions:
0

Re: Product date available is today, shows as expected product

Ha Ha! I'm anal retentive that's for sure but I even finally convinced myself that was true! It was more about finding out what I was doing wrong about the date formats. Came up with other stuff too that had purchase dates in the 90's so it was part of a bigger problem.

PLUS....I'm generous, my specials will run 1000 years! Better hurry!

Right now I'm taking the stance that if it functions I'm cool and I'll fine tune when I get some knowledge under my belt.

Working for anyone else but me tonight??!! Ask button is great! Fine tuning as we speak, it solved more than one issue for me. Next work day I'm going to pour through the add ons again, already using a bunch.