Post by dorakart » Tue Apr 02, 2019 2:25 am

Hi,

I am using OC 2.2.0.0.

In my openkart store, I am using the product option feature.

In that Product option, i am able to select a previous date(date.png) also.

could you help on this regards.

Thanks in advance.

Attachments

date.png

date.png (921.37 KiB) Viewed 966 times


New member

Posts

Joined
Fri Nov 17, 2017 1:48 am

Post by dorakart » Wed Apr 03, 2019 3:49 pm

Could you please,
Response someone.

New member

Posts

Joined
Fri Nov 17, 2017 1:48 am

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by dorakart » Thu Apr 04, 2019 12:25 am

Hi,

Thank you for your reply.

I am new to java script.

where i need to add following code.

Code: Select all

$('.date').datepicker({
minDate: 0,
dateFormat: 'dd-mm-yy',
});
In that product.tpl, lot of code is there.
Please find my product.tpl file.

New member

Posts

Joined
Fri Nov 17, 2017 1:48 am

Post by dorakart » Sun Apr 07, 2019 4:17 pm

Could you please reply to this, if anyone has an idea.

New member

Posts

Joined
Fri Nov 17, 2017 1:48 am

Post by cyclops12 » Mon Apr 08, 2019 4:44 am

at the bottom of your product.tpl file find

Code: Select all

$('.date').datetimepicker({
	pickTime: false
});
And change it to

Code: Select all

$('.date').datetimepicker({
	minDate: moment(),
	pickTime: false
});
Refresh in modifications after

Expert Member

Posts

Joined
Sun Sep 27, 2015 1:10 am

Post by LokoPoco » Mon Apr 08, 2019 9:16 pm

Did you succeed? Do I need more help? O0

Newbie

Posts

Joined
Tue Mar 05, 2019 12:32 am

Post by dorakart » Sat Apr 13, 2019 3:17 pm

Sorry for the late response!

yes its working.

Thank you for your support.

New member

Posts

Joined
Fri Nov 17, 2017 1:48 am
Who is online

Users browsing this forum: No registered users and 23 guests