Calendar JQuery Datapicker with disable 3 days

This topic has 12 replies, 2 voices, and was last updated 6 years, 6 months ago ago by Rose Tyler

  • Avatar: Luz Maxwell
    Luz Maxwell
    Participant
    June 29, 2018 at 14:04

    Hi,

    I bought this beautiful theme for the store. Also ask for additional options to add to the products And On. In the support chat suggested PPOM, and I bought and installed it. I have added different options that I like and work ok including the calendar (with datepicker), but the products of my store need a minimum 3 days to be processed. I have to deactivate the first 3 days of the calendar. I need to be able to add this urgently because without it the store can not work and we are losing sales.
    Law that Datepicker JQuery offers the codes (minDate: +3) … for this I need but I am not a developer and I need your help urgently.
    Thank you.

    Please, contact administrator
    for this information.
    11 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2018 at 14:14

    Hello,

    Your question relates to functionality of the plugin. I would recommend you to contact authors of the plugin.

    Regards

    Avatar: Luz Maxwell
    Luz Maxwell
    Participant
    June 29, 2018 at 14:33

    Hi Rose,

    Thanks for your answer.
    I understand then that there will be no problem in integrating this function into my XTORE theme if the plugin developer provides the code.

    Yesterday I contacted them and I am waiting for an answer.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 29, 2018 at 14:39

    Hello,

    Ok. Let us know the answer.

    Regards

    Avatar: Luz Maxwell
    Luz Maxwell
    Participant
    June 30, 2018 at 13:31

    Hi,
    This is the info that sent me for add the functionality. Thanks!

    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);
    }

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 2, 2018 at 08:29

    Hello,

    Have you tried to do these changes via FTP?
    Because changes relate to the plugin, you need to check if this works with our theme and with Storefront too. In case, all works fine with the default WC theme but don’t work correctly with our theme, provide us with temporary FTP access.

    Regards

    Avatar: Luz Maxwell
    Luz Maxwell
    Participant
    July 2, 2018 at 13:21

    Hi Rose,

    Yes, I have tried but as I said before I am not an experienced web developer and therefore I ask for your help so I do not make mistakes. This functionality is very important for the store. I attached required information.

    Thank you so much!

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 2, 2018 at 14:20

    Dear @Luz Maxwell,

    We are theme support, so we can’t help you with editing files of the 3rd part plugin, sorry.
    As I said before, we can try to help you only in case if something works fine with Storefront and doesn’t work with XStore.
    If you do not want to edit files of the plugin by yourself, I would recommend you to contact the plugin support.

    Regards

    Avatar: Luz Maxwell
    Luz Maxwell
    Participant
    July 2, 2018 at 14:29

    Hi,

    Was the plugin support that provided the code but I need you guide me with the steps to go inside the Theme and website for insert the right way.

    I appreciate your help.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 2, 2018 at 14:50

    Hello,

    As I can see, the code should be changed inside the plugin http://prntscr.com/k1meij
    maybe it will work great without additional changes in theme.
    To check if some changes are required from our side, you need to check if the code that was provided by the plugin works in the way you expected.

    Regards

    Avatar: Luz Maxwell
    Luz Maxwell
    Participant
    July 2, 2018 at 15:07

    Thanks for your reply.

    Attached mor info.

    Regards

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    July 2, 2018 at 15:33

    Please see screenshot – https://prnt.sc/k1n254

    Regards

  • Viewing 12 results - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.