Page 1 of 1

Able to Select Back date also in product page

Posted: Tue Apr 02, 2019 2:25 am
by dorakart
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.

Re: Able to Select Back date also in product page

Posted: Wed Apr 03, 2019 3:49 pm
by dorakart
Could you please,
Response someone.

Re: Able to Select Back date also in product page

Posted: Wed Apr 03, 2019 5:27 pm
by xxvirusxx

Re: Able to Select Back date also in product page

Posted: Thu Apr 04, 2019 12:25 am
by dorakart
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.

Re: Able to Select Back date also in product page

Posted: Sun Apr 07, 2019 4:17 pm
by dorakart
Could you please reply to this, if anyone has an idea.

Re: Able to Select Back date also in product page

Posted: Mon Apr 08, 2019 4:44 am
by cyclops12
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

Re: Able to Select Back date also in product page

Posted: Mon Apr 08, 2019 9:16 pm
by LokoPoco
Did you succeed? Do I need more help? O0

Re: Able to Select Back date also in product page

Posted: Sat Apr 13, 2019 3:17 pm
by dorakart
Sorry for the late response!

yes its working.

Thank you for your support.