Introduction
Managing product visibility and pricing on Shopify can become a significant challenge for stores with extensive or frequently updated catalogues. Whether you're adhering to Minimum Advertised Price (MAP) policies, running a B2B wholesale operation, or offering premium products that require an inquiry, manually assigning price hiding to individual products is often unsustainable. This is where automated **shopify price hiding rules AND OR logic** become indispensable.
For Shopify developers and app builders, understanding how to construct these rules is key to delivering powerful, scalable solutions for merchants. Peekaboo Pricing offers robust assignment rule capabilities, allowing you to define precise conditions for automatic price hiding.
The Power of Automated Price Hiding on Shopify
Automating price hiding isn't just about saving time; it's about enforcing business policies consistently and efficiently across your Shopify store. For many merchants, the ability to control when and to whom prices are displayed is crucial for various reasons.
Consider scenarios like MAP compliance, where certain brands prohibit public price display below a set threshold. Or B2B models, where wholesale pricing is only revealed to logged-in partners. Automated rules ensure that these complex requirements are met without constant manual intervention, reducing errors and freeing up valuable resources.
Introducing Peekaboo Pricing's Assignment Rules
Peekaboo Pricing's assignment rules allow merchants to define criteria that, when met by a product, automatically apply a specific "hide price type." These types dictate how the hidden price appears—whether it's replaced by an enquiry form, a content-only message, or a login prompt. The magic lies in the ability to combine various conditions using powerful AND/OR logic.
Rules are evaluated in a priority order, meaning the first matching rule dictates the product's price visibility. This hierarchical structure provides predictability and allows for the creation of exception-based logic. You can set a broad rule and then create higher-priority exclusion rules to carve out specific products or collections.
Understanding Shopify Price Hiding Rules: AND/OR Logic Explained
The core of building effective automation lies in understanding how assignment rules process conditions. Peekaboo Pricing uses a combination of AND logic within a single condition group and OR logic between multiple condition groups. This flexibility enables highly granular control over which products trigger a price hiding action.
AND Logic within a Condition Group
When you add multiple conditions within the same group for an assignment rule, they are evaluated using AND logic. This means that all conditions within that specific group must be true for the rule to apply to a product. Think of it as a checklist: if every item on the checklist is ticked, the rule takes effect.
- Example: You want to hide prices for products that are from the "Sony" AND have the product tag "MAP_Restricted". Both conditions must be met simultaneously for the rule to apply.
OR Logic Between Condition Groups
Peekaboo Pricing allows you to create multiple distinct condition groups within a single assignment rule. These groups are evaluated using OR logic. This means if a product matches any one of the defined condition groups, the rule applies. This is incredibly powerful for covering diverse scenarios under a single rule.
- Example: You want to hide prices for products that are from the "Sony" vendor OR products that have the tag "Luxury_Item". If a product matches either condition group, the rule is triggered.
Available Conditions for Rule Building
Peekaboo Pricing offers a comprehensive set of conditions that can be combined using AND/OR logic:
- Vendor: Target products from specific manufacturers or suppliers.
- Product Tags: Use custom tags to categorize products for price hiding. This is often the most flexible method for shopify product tag rules.
- Product Type: Apply rules based on Shopify's product type field (e.g., "Electronics," "Apparel").
- Collection: Assign rules to products belonging to specific collections.
- Price Range: Hide prices for products above or below a certain price point.
- Customer Login Status: Crucial for B2B or members-only pricing, allowing you to hide prices if the customer is not logged in. This condition is evaluated in the storefront, showing as "Conditional" in the admin bulk editor.
Building Complex Rules: Practical Examples
Let's dive into some real-world scenarios to illustrate how to construct sophisticated price hiding rules using Peekaboo Pricing's AND/OR logic. These examples will demonstrate how to achieve automatic hide price shopify behaviour for various business needs.
Example 1: Vendor + Product Tag (AND Logic)
Scenario: You are an authorised dealer for "BrandX," and certain products from this vendor are under MAP restrictions. You need to hide prices for all "BrandX" products that are also specifically tagged as "MAP_Product."
Rule Construction:
- Create a new assignment rule.
- Set its priority.
- In the first (and only) condition group, add two conditions:
- Condition 1: "Vendor is equal to BrandX"
- Condition 2: "Product Tags contains MAP_Product"
- Select your desired "hide price type" (e.g., "Request Information" with reveal links).
Outcome: Only products meeting both the "BrandX" vendor criterion AND the "MAP_Product" tag will have their price hidden. This is a classic example of shopify price hiding rules for compliance.
Example 2: Multiple Product Tags (OR Logic Between Groups)
Scenario: You have premium items that require an inquiry, identified by the tag "Premium_Collection," and also items that are only sold in-store, identified by the tag "In_Store_Only." You want to apply different hide price types based on these distinctions, but for simplicity, let's assume one hide price type for both.
Rule Construction (Single Hide Price Type):
- Create a new assignment rule.
- Set its priority.
- Condition Group 1:
- Condition 1: "Product Tags contains Premium_Collection"
- Add a New Condition Group.
- Condition Group 2:
- Condition 1: "Product Tags contains In_Store_Only"
- Select your desired "hide price type" (e.g., "Enquiry Form" for premium, "Visit Store" for in-store). Note: If you need *different* hide price types, you'd create two separate rules at the same priority, ensuring the desired one applies first via priority or more specific conditions.
Outcome: Any product tagged "Premium_Collection" OR any product tagged "In_Store_Only" will have its price hidden. This effectively uses OR logic between the two groups to catch products matching either tag.
Example 3: Combining AND/OR for B2B/MAP (Complex Rule)
Scenario: You operate a mixed B2C/B2B store. For B2C, prices are public. For B2B, you have two conditions for price hiding: 1. All products from "WholesaleCo" vendor must hide prices if the customer is not logged in. 2. All products from "ProGear" vendor that are tagged "Dealer_Only" must always hide prices (even for logged-in users, requiring a special reveal process).
Rule Construction:
- Create a new assignment rule.
- Set its priority (e.g., 1).
- Condition Group 1 (WholesaleCo + Not Logged In):
- Condition 1 (AND): "Vendor is equal to WholesaleCo"
- Condition 2 (AND): "Customer Login Status is Not Logged In"
- Add a New Condition Group.
- Condition Group 2 (ProGear + Dealer_Only):
- Condition 1 (AND): "Vendor is equal to ProGear"
- Condition 2 (AND): "Product Tags contains Dealer_Only"
- Select your desired "hide price type" (e.g., a "Login Required" type for Group 1 and a "Dealer Enquiry" type with reveal links for Group 2).
Outcome: This single rule covers two distinct scenarios: * Products from "WholesaleCo" will hide prices *only if* the customer is not logged in. * Products from "ProGear" *and* tagged "Dealer_Only" will hide prices regardless of login status. This demonstrates powerful shopify product tag rules combined with vendor price hiding shopify features.
Example 4: Exclusion Rules for Specific Overrides
Scenario: You have a general rule to hide prices for all "PremiumBrand" products. However, specific "clearance" items from "PremiumBrand" should always show their price to encourage quick sales.
Rule Construction:
- Rule 1 (Higher Priority - Exclusion):
- Set priority to 1.
- Action: "Show Price" (this is the key for an exclusion rule).
- Condition Group 1:
- Condition 1 (AND): "Vendor is equal to PremiumBrand"
- Condition 2 (AND): "Product Tags contains clearance"
- Rule 2 (Lower Priority - General Hide):
- Set priority to 2.
- Action: Select your desired "hide price type" (e.g., "Request Info").
- Condition Group 1:
- Condition 1: "Vendor is equal to PremiumBrand"
Outcome: Any "PremiumBrand" product tagged "clearance" will have its price shown due to Rule 1 (higher priority). All other "PremiumBrand" products (not tagged "clearance") will fall through to Rule 2 and have their price hidden. This demonstrates how assignment rules shopify can be meticulously controlled.
Key Benefits for Shopify Developers and App Builders
For those building or managing Shopify stores, leveraging Peekaboo Pricing's advanced assignment rules offers significant advantages:
- Efficiency and Automation: Eliminate the need for manual price hiding adjustments. New products matching criteria are automatically handled, making it an ideal automatic hide price shopify solution.
- Flexibility for Diverse Business Models: Easily adapt to complex B2B, B2C, or hybrid models, MAP compliance, and varied product strategies.
- Scalability: Manage thousands of products with intricate price visibility requirements without a performance hit. This is crucial for large catalogues.
- Reduced Error Rates: Automated rules are consistent, drastically lowering the chance of human error in price display.
- Predictable Behaviour: The priority-based system with clear AND/OR logic ensures that the outcome of any rule is easily understood and debugged.
- Client Satisfaction: Deliver robust, low-maintenance solutions that simplify merchant operations and enhance their control over product pricing.
Implementing and Managing Rules Effectively
While powerful, effective rule management requires thoughtful implementation:
- Prioritize Carefully: Always consider the order of your rules. More specific rules or exclusion rules should generally have higher priority than broader, more general rules.
- Test Thoroughly: After creating or modifying rules, test them on a variety of products to ensure they behave as expected. Peekaboo Pricing's bulk editor shows an "Assigned by Rules" column, providing real-time feedback on which rule would apply.
- Use Meaningful Tags: Implement a clear product tagging strategy. Well-defined tags (e.g., "MAP_BrandX," "Wholesale_Only") make rule creation intuitive and maintainable.
- Document Your Rules: Especially for complex setups, keep a record of your rules and their intended purpose. This aids future maintenance and onboarding.
- Leverage Product Overrides: For truly unique cases that defy rule logic, use the "Product Override" feature. This manual assignment at the product level will always take precedence over any assignment rules.
Related Articles
Continue your learning with these related resources:
- How to Hide Prices on Shopify: The Complete Implementation Guide (Comprehensive Guide)
- How to Track Who Clicks Your Price Reveal Links on Shopify
- Your First Hidden Price Setup on Shopify in Under 10 Minutes
- The 3 Display Modes for Hidden Prices on Shopify Explained
- Hyper Theme Price Hiding: A Complete Setup Guide for Shopify Stores
- How to Add a Price Request Form to a Shopify Product Page
Conclusion
Building complex **shopify price hiding rules AND OR logic** is a cornerstone of effective e-commerce management for many Shopify stores. It transforms what could be a manual, error-prone task into a streamlined, automated process. Peekaboo Pricing provides the robust framework for Shopify developers and app builders to implement these sophisticated assignment rules with ease, offering unparalleled control over product price visibility.
By mastering the combination of vendor, tags, type, collection, price, and customer login status conditions, coupled with the priority system and exclusion capabilities, you can create a highly efficient and compliant price hiding strategy that scales with any Shopify merchant's needs.





