Skip to content

Instantly share code, notes, and snippets.

@jfrux
Last active April 30, 2017 21:38
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jfrux/31689706eba8d0c15a1b to your computer and use it in GitHub Desktop.
Save jfrux/31689706eba8d0c15a1b to your computer and use it in GitHub Desktop.
Full Charter Cruise Ship Booking Plugin Requirements

###Full Charter Cruise Ship Booking Plugin

####Terminology Variable Product (parent) -> "Room Type" Product Variation (child) -> "Max Occupancy, location on ship, etc."

####Custom Price Fields on Variable Product General Tab 5 static price points (custom fields) assigned to parent variable product “Interior”, “Oceanview”, etc.

  • Single Per Guest Price: $999 (prices may vary depending on the room type, but always sold per guest)
  • Double Per Guest Price: $499
  • Triple Per Guest Price: $449
  • Quad Per Guest Price: $399
  • Quint Per Guest Price: $349

####Variants of room

  • Stock is managed at the variant level so we know how many of that size room are available.
  • Each variant of the room have different maximum occupancies but should not be limited in the default way variants are normally limited. Note: prices of variations don’t matter, there is only one pricing structure as listed above so the pricing shown and used in the cart should be taken from the fields above regardless of the variation chosen.

Custom Variant Query Needed

  • Fit # of guests requested in to a variation that fits that many guests. (first and foremost).
  • If we run out of that size variation, we need it to allow them to book a different variation of a higher guest count (at same parent product price tree (single, double, triple, quad, quint). (i.e. when it selects the top most available variation, it should be in order of max occupancy ASCENDING.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment