OnPrintShop Master Options icon

OnPrintShop Master Options

Manage OnPrintShop master options, attributes, formulas, rules, ranges, prices, tags, groups, and stock

Rule → Create, Update, or Delete

AI-generated

Summary

Create, update, or delete one OnPrintShop product option rule per input item. Supply its name and type, then configure source and hidden options, quantity or size conditions, textbox conditions, status, and admin settings as needed; set Rule ID for an existing rule, or set Delete to Yes to delete it.

Inputs

  • Rule Name (required) — Name of the rule.
  • Rule Type (required) — Choose Additional Option Based, Size-Additional Option Based, Size-Quantity-Additional Option Based, or Size-Quantity Based.
  • Rule ID — Rule identifier for an existing rule; defaults to 0.
  • Source Option IDs — Comma-separated option IDs, positionally paired with Source Attribute IDs.
  • Source Attribute IDs — Attribute IDs paired by position with Source Option IDs.
  • Hide Option IDs — Option IDs to hide under this rule.
  • Hide Option Attribute IDs — Option attribute IDs to hide under this rule.
  • Status — Enable or disable the rule; defaults to Yes.
  • Custom Parameter — Select Area, Height, Perimeter, Size, or Width for custom value bounds.
  • Quantity Selection — Apply to all quantities or a specific range; defaults to All Quantities.
  • Quantity From / Quantity To — Quantity bounds for the rule.
  • Custom Value From / Custom Value To — Bounds for the selected custom parameter.
  • Width From / Width To; Height From / Height To — Width and height bounds.
  • Sort Order — Sort order; defaults to 99999.
  • Hide Size IDs — Size IDs to hide.
  • Textbox Conditions — Optional conditions with an option key in optionId_attributeId format (use _0 for an entire option), comparison, and value bounds.
  • Condition — Combine textbox conditions with AND or OR; defaults to AND.
  • Disabled for Admin — Set to Yes to disable the rule for admins.
  • Delete — Set to Yes to request deletion; defaults to No.

Output shape

A list of items containing the OnPrintShop mutation result.

The node sends the single configured rule as the mutation input and returns the API result, including result, message, and id fields when provided. Errors stop execution unless Continue On Fail is enabled.

Examples

Example 1: Create a rule

Leave Rule ID at 0, provide the required Rule Name and Rule Type, configure applicable conditions, and leave Delete set to No.

Example 2: Update or delete a rule

Provide the existing Rule ID; to request deletion, set Delete to Yes.

Links

Discussion