Skip to content

Override excluded days #3

Description

@imacoder

Not really a bug, but I'm new to this repository thing and couldnt find how to share my update.
I have been developing an ecommerce site that you can choose your delivery date. Most of the year they don't do deliveries on a Sunday but on specific Sundays they do. So these are the mods I made (line numbers reffer to packed code):

line 52: insert non_selec_override: [],
line 73: add &&(this.indexFor(this.non_selec_override,this.dateToString(date))===false) to the end of the isHoliday function

Usage: non_selec_override: ["YYYY-mm-dd"] - just like the non_selectable array

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions