logo
Welcome to our new AbleCommerce forums. As a guest, you may view the information here. To post to this forum, you must have a registered account with us, either as a new user evaluating AbleCommerce or an existing user of the application. For all questions related to the older version of Gold and earlier, please go to AbleCommerce Gold forum. Please use your AbleCommerce username and password to Login. New Registrations are disabled.

Notification

Icon
Error

Options
Go to last post Go to first unread
judy at Web2Market  
#1 Posted : Tuesday, August 9, 2022 9:50:07 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
If the variant doesn't have an available date, 1/1/0001 12:00:00 AM shows in the box on the manage variants page.
Shouldn't that be blank, like it is if product doesn't have an available date?

Wanna join the discussion?! Login to your AbleCommerce Forums forum account. New Registrations are disabled.

nadeem  
#2 Posted : Wednesday, August 10, 2022 8:16:58 AM(UTC)
nadeem

Rank: Advanced Member

Groups: Administrators, Developers, Registered, HelpDesk, Authorized User, Admin, System
Joined: 10/11/2018(UTC)
Posts: 110

Thanks: 19 times
Was thanked: 18 time(s) in 18 post(s)
I am able to reproduce the issue in 9.0.6 and reported it to be fixed in a future version.

If you want to apply the code change, here is the code to do this:

Locate the following line inside LoadVariants method

Code:
Availability = variant.AvailabilityDate.ToString(),


and replace with

Code:
Availability = (!variant.AvailabilityDate.IsNullOrMin() ? variant.AvailabilityDate.ToString() : string.Empty),


thanks 1 user thanked nadeem for this useful post.
judy at Web2Market on 8/11/2022(UTC)
judy at Web2Market  
#3 Posted : Thursday, August 11, 2022 5:23:52 AM(UTC)
judy at Web2Market

Rank: Advanced Member

Groups: Developers
Joined: 11/7/2018(UTC)
Posts: 303

Thanks: 21 times
Was thanked: 5 time(s) in 5 post(s)
Thanks for the quick fix.
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.