• Resolved socialpanda

    (@socialpanda)


    Hello,

    I am adding a custom date for date of birth. It appears nicely in checkout and also in my account which is exactly what I was after.

    the issue is that the date picker does not seem to include the year (even though I have ‘Year selector’ set to ‘add’) and it also will not move months backwards or forwards.

    I would also like to ensure that only a date of birth over 18 is added. Would I do that by saying Max date: -6570 ?
    What would I use in Year Selector syntax to stop birth dates under 18 it being selected also?

    Thank you,

    Kelly.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Algoritmika

    (@algoritmika)

    Hi @socialpanda,

    Generally, I think you are on a right track, except for one note – did you leave the “Min date” option empty? If that’s the case – please set it to some value, e.g. -99999.

    Please give it a try and let me know if that helps.

    Thread Starter socialpanda

    (@socialpanda)

    Hi @algoritmika

    Thanks for that! The date picker is now moving month by month, but there is still no year selection.

    I have year selector set to Add and -200:-18. Is this correct for making the year selector appear?

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @socialpanda,

    No, I don’t think it’s correct. Try setting it to -200:+200 instead. It will still be limited by “Min date” and “Max date” options as well, so I believe it should work as you need it to.

    Please let me know if that helps.

    Thread Starter socialpanda

    (@socialpanda)

    Hi @algoritmika

    Thank you, I set it to -200:+200 but it still doesn’t give the option to choose the year in the drop down. It still only has month and day to choose from.
    I have hard refreshed the page so it is not cashe.
    https://innercitywinemakers.com.au/checkout

    What do you think?

    Plugin Author Algoritmika

    (@algoritmika)

    Hi @socialpanda,

    Hmm… Let me check it on your server. How do I add anything to the cart – I’ve tried e.g. https://innercitywinemakers.com.au/wines/red-wines/2020-smoking-gum-shiraz, but I don’t see the “add to cart” button?

    Thread Starter socialpanda

    (@socialpanda)

    Hi @algoritmika

    That would be great, thank you!

    The shop is not live yet, and this is the only product you can add for now… https://innercitywinemakers.com.au/product/wine-club-newcastle

    If you need more info, let me know!

    Plugin Author Algoritmika

    (@algoritmika)

    @socialpanda,

    Thanks. I’ve checked your checkout, but unfortunately, I’m still not sure why the year selector is not displayed. I can see that the custom field is duplicated 3 times in each section, i.e. billing, shipping, and account – how did you manage to do it? Could you please temporarily disable this feature, so it would be only displayed in one section, as it normally does? Not sure if this will help, but I suggest we start from this.

    Thread Starter socialpanda

    (@socialpanda)

    Hi @algoritmika

    okay, I did it with your settings with:
    Section: Account
    Priority 20 (to make it appear under name)

    So now I changed Priority to 200 and it now only appears in the billing details.
    Also when I changed the section to “billing”, the position is the same on screen.
    For both of the above there is still no year in the drop down.

    Maybe its conflicting with another setting? do you want temporary access to the site so you can see the settings? or i can send you a screen shot – I cant seem to add an image here though.

    Plugin Author Algoritmika

    (@algoritmika)

    @socialpanda, yes, please contact me directly at [email protected].

    Plugin Author Algoritmika

    (@algoritmika)

    If anyone else is interested – it looks like this was a compatibility issue with the “Mailchimp” plugin. For some reason, it has a CSS code that hides datepicker’s year selector. It can be solved by adding this custom CSS to your site (e.g. via “Customize > Additional CSS”):

    #ui-datepicker-div .ui-datepicker-year {
        display: inline-block;
    }
    

    P.S. Regarding duplicated fields issue (unrelated to the main question of this thread) – this is fixed in the latest plugin v1.6.4.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Custom Date’ is closed to new replies.