You can now choose to hide the clone icon for a specific cart line item. If you select the Hide Copy Action check box at , it hides the clone icon for all the line items in the cart. For a Line Item Object there is a new field - Hide Copy Action of type Boolean which enables you to hide the clone icon for a particular line item.
Scenario: Suppose you have configured two products A and B and you want to hide the clone icon whenever the user selects a product with an attribute of color Red. Create a workflow rule with a criteria Line Item: Color equals Red and the workflow action as Field Update on the Line Item Object and the Field to Update as Line Item: Hide Copy Action and set the new field value as True.
Following are the values that you can set in the Hide Copy Action check box with the subsequent results:
|Hide Copy Action System Property||Workflow Rule Field Update Value||Result at the Line Item|
|True||True||Clone icon hidden|
|True||False||Clone icon hidden|
|False||True||Clone icon hidden|
|False||False||Clone icon displayed.|
To hide the clone icon for a cart line item
- To hide all the line items, navigate to , and select the Hide Copy Action check box.
- Create a workflow rule for a Line Item Object with an appropriate rule criteria.
- Set the Workflow action as Field Update and set the field to update on Line Item Object and the Field to Update as Line Item: Hide Copy Action and set the new field value to True.
The clone icon is hidden for a cart line item based on the Hide Copy Action value in System Properties and the Workflow Rule Action.