Skip to main content
I'm trying to build a Product Rule that auto-adds a product when another product is selected. As there are many variations I need to consider I'd like to make this as dynamic as possible. One of my approaches is to use a value that exists on both products. As an example, when Product A is selected, automatically add all Products that have Product A's Product Code populated in a field called "Parent Product Code".

 

I thought I might be able to use the Product Action's Value Field instead of setting an explict Filter Value but I can't seem to get it to work. So, I'm not sure if I'm using this functionality correctly.

 

Here is my setup. I have appropraite Product Options and Configuration Rules set.

 

Type: Enable & Add

 

Filter Field: Parent_Product_Code__c

 

Operator: Equals

 

Value Object: Product

 

Value Field: Product Code

 

If I keep everything the same except remove Value Object and Value Field and specify a particular Product Code in Filter Field I am able to add the expected Product successfuly. This approach, however, is difficult to scale.   

 

 
1 件の回答
  1. 2018年11月7日 8:24
    Hi Emily

     

    From the way I am reading this you are saying if the Parent_Product_Code__c is equal to the  Product Code on the current product which is being considered, which will not be the case. Generally product rules are iterating over each current selected option when the scope is product. In fact if you are trying achieve selecting every option in a bundle you could just create a product rule where the action is product code is not equal to ''. As long as you have a configuration rule on the product it would select every option. 

     

    I am wondering though if this is what you are really trying to achieve. Perhaps you could explain more?