Logic for Group Selection, Hidden Products and Multiple Products

SUMMARY

A group is decided for each product in the cart, and the settings of the group with the smallest priority number are used by the widget. Hidden products are excluded from the group decision.

RULES

G-1  Product → group is decided in this order: (1) variant specification (tag::SKU) (2) the product link (Products Management / product tag) (3) Group 1.
G-2  Hidden products are excluded from the group decision.
G-3  If even one conditional group (weight / total price / stock) is satisfied, the satisfied group with the smallest priority number becomes the base.
     Products linked to groups other than conditional groups are replaced by the base group.
G-4  If no conditional group is satisfied, products linked to conditional groups become Group 1.
G-5  Finally, the settings of the group with the smallest priority number among the groups the cart's products belong to are applied.
G-6  "When items from multiple groups are added to the cart, use the shipping date settings for the multiple groups." ON:
     the selectable dates are the intersection of each group. Everything other than the delivery date (labels, time options) is from the group of G-5.
G-7  When G-6 gives zero common dates, "No available delivery dates message" is shown above the delivery date input.
G-8  "Hidden has priority" ON: if even one hidden product is in the cart, the widget is not shown.
G-9  "Hidden has priority" OFF: the widget is hidden only when the cart is made up of hidden products only.
G-10 When hidden, the date and time already entered are not kept on the order (they are sent empty).
G-11 When hidden, a "product note" can be shown instead.

Decision table: hiding

Hidden has priorityIn the cartWidget
ONone or more hidden productsnot shown
OFFonly hidden productsnot shown
OFFone or more products that are shownshown

QA

  • Q: Product A is 3 days, product B is 6 days. What if they are bought together? A: The group with the smaller priority number is applied (G-5). To use the longer one, make that group’s priority 1. To allow only the common dates, turn ON G-6.
  • Q: Do the holidays of Group 1 also apply to Group 2? A: No. Set them per group (C-2).
  • Q: I set it with tags but it is not reflected. A: Check in order: (1) the product tag setting is ON (2) the tag name matches exactly (3) that a setting linked directly in Products Management is not taking priority (G-1).
  • Q: I do not want fresh products to ask for a delivery date. A: Set them as hidden in Products Management. To hide it also when they are in the cart with other products, turn ON “Hidden has priority” (G-8).
  • Q: When hidden and normal products are put in together, the widget appears / does not appear. A: It is decided by the “Hidden has priority” setting (G-8, G-9).
  • Q: I want customers to choose a different delivery date per product. A: Not possible (R7).

ESCALATE

SituationInformation to request
The expected group is not appliedURLs of all products in the cart, product tags, a screenshot of the group priorities
A message appears for a combinationThe G-6 setting, the message, the combination of products
The widget does not appear right after adding to the cartProduct URL, products in the cart, browser, theme name

SEE

Install