Home › Forums › WooCommerce Personalized Product Options Manager (PPOM) › Calendar select Delivery dates product
- This topic has 9 replies, 3 voices, and was last updated 5 years, 9 months ago by
Jane Brian.
-
AuthorPosts
-
June 27, 2018 at 3:46 pm #9036
Inc
ParticipantHi team. I need to set up a calendar that only allows to show delivery dates after 3 days from the purchase. I am not a website developer but I need help for my online store. Thanks.
-
This topic was modified 6 years, 7 months ago by
Inc.
June 29, 2018 at 1:19 pm #9046nmedia
KeymasterHi,
ok you nee to set delivery dates after 3 days and below all should be disable?
June 29, 2018 at 1:45 pm #9047Inc
ParticipantHi
I want to allow the purchase only from the third day, I need to disable the first 3 days from the current date in the calendar.
For example, if today is June 29, 2018, the days June 29- June 30- July 1st need to be disabled and only after on July 2nd will be enabled for all purchases and the following days too.
ThanksJune 30, 2018 at 5:56 am #9060nmedia
KeymasterHi,
Ok here is code you need to put inside your plugin following path:
js/ppom.inputs.js
near line number: 51 you will see following code: (line number can be change due to future changes)if( input.past_dates === 'on' ) { var date_today = new Date(); InputSelector.datepicker('option', 'minDate', date_today); }
Replace above code with
if( input.past_dates === 'on' ) { var date_today = new Date(); date_today.setDate(date_today.getDate() + 3); InputSelector.datepicker('option', 'minDate', date_today); }
That’s all.
July 2, 2018 at 1:36 pm #9074Inc
ParticipantHi,
I contacted my theme support and they recommended to ask you for help. I tried to insert the code myself but don’t works the functionality. Like I commented I am learning and I am afraid and I do not want to make any mistakes. Could you help me look inside the plugin via ftp?
Thanks
July 2, 2018 at 2:04 pm #9075nmedia
KeymasterHi,
well if you need us to make these please contact us via sales@najeebmedia.com
July 2, 2018 at 2:13 pm #9079Inc
ParticipantThanks for your offer but I want to do it myself. I just need you to tell me the steps to follow via ftp, at this moment I am in wp-content – Plugins – PPOM Pro- from here I dont know where go???
http://prntscr.com/k1mshbThanks for your understanding and help.
July 2, 2018 at 3:05 pm #9080Inc
ParticipantHi,
I just paste the code but I don’t see the changes in the store (show available the calendar from today), maybe I am missing something?
Here the screenshots:
Thanks
July 3, 2018 at 3:17 am #9083nmedia
KeymasterWell code seems to be ok from screenshot, please send me product page URL.
April 25, 2019 at 1:52 pm #11782Jane Brian
KeymasterHI
It has been a long while for this topic, so we are closing this. -
This topic was modified 6 years, 7 months ago by
-
AuthorPosts
- The topic ‘Calendar select Delivery dates product’ is closed to new replies.