Forums / General Questions / Product Date Available changes to null when editing a product already available

Product Date Available changes to null when editing a product already available

Locked

Views: 1,554

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
30 Sep 2010, 2:57 PM
#1
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Product Date Available changes to null when editing a product already available

Hi,

I can't find the answer to this anywhere in the forums, and I don't know if it's because there isn't one or because I don't know how to phrase the question.

I run an e-book storefront. If I try to edit a product that's already available, the "Date Available" or products_date_available field reverts to NULL even if I enter in the release date (in the past). This means if I update all my current releases, there is nothing listed on my New Products page.

To fix this, I've had to go into the database itself and re-enter in all the release dates for the products I've edited.

Is there some way to do this in Zen-Cart and not have to actually go into the MySql database to make this change? Is it a glitch with the program? I don't know.

If you have any suggestions, I'd appreciate it. Thanks!

30 Sep 2010, 6:26 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Product Date Available changes to null when editing a product already available

products_date_available is used for not-yet-in-stock handling, and that information is used to populate the "Upcoming Products" centerbox.

The products_date_added is the date on which the product was added to your store, and is the date that's shown to customers at the bottom of your product page (if you've got that display enabled).

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

30 Sep 2010, 8:55 PM
#3
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Product Date Available changes to null when editing a product already available

Well, the products display in my New Products module in the order in which they were released, not in the order in which I added them to the site. However, if I edit them AFTER they're released, they disappear from the New Products module. Logging into MySql shows the product expected date field has been reset to null.

Basically I'm wondering if there's a way to avoid this so they will still show in the New Products field after I edit them once they're put on sale. It's a pain to go into MySql and edit every single release for the past month or so just because I had to change something on the product's page.

30 Sep 2010, 10:23 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Product Date Available changes to null when editing a product already available

But ... the New Products module works on date-added, not date-available.

Did you change how the new-products module works for some reason?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.