Bulk Actions

Using Sales Layer

 

In Sales Layer it’s possible to perform bulk actions on several products at the same time. However, unless you want to apply the action to all of your products, you should first select the products you want to modify. Everything that we learnt before in the previous sections on the search bar and tags can be used to do this. We can filter our content by applying tags, performing searches  or even just selecting items individually using the green tick boxes.

 Searching for products which have the word “Red” in their colour field
 Searching for products which have the word “Red” in their colour field

We could for example search for those products which contain “Red” in their colour field. From here, we can limit the selection of items to perform the bulk action or by ticking just those desired items.

Once this is done, we go to Actions and click on Modify in bulk

The Modify in Bulk action from the Actions menu
The Modify in Bulk action from the Actions menu

From here we are able to make two different types of modification: 

  • Value: to directly change the value of any field belonging to the selected products.
  • Formula: Modify the value of a field using a formula.
The pop-up box for performing bulk modifications on products
The pop-up box for performing bulk modifications on products

Formulas are useful for performing more complex operations and are commonly used when working with connectors, in the connectors section we will look at some of the more common ways of using them. To give an example, below you can see how we can use a formula to increase the value of three specific product’s price field by 10%.

The pop-up box for performing bulk modifications on products.
Using a formula on the price field to update three items at once

As you can see, the bulk action we performed was only done to three products because we first used the search bar to filter our products. If we had performed the same action without previously doing so then the action would have been performed on all of our products.