Local storage for selecting products
  • 29 Sep 2023
  • 1 Minuut om te lezen
  • Donker
    Licht
  • Pdf

Local storage for selecting products

  • Donker
    Licht
  • Pdf

The content is currently unavailable in Dutch. You are viewing the default Norwegian version.
Samenvatting van het artikel

Intro

Bulk editor har support for pre-selecting products using local storage key bulkeditor.selected_ids and value of comma separated pIDs. 

The feature lets you pre-select products in parts of the control panel and then being able to go to BulkEditor Actions with those products pre-selected.
The action page will look for bulkeditor.selected_ids in Local Storage, pick it up if it’s there and then remove the item from Local Storage.

Usecase

So what are the usecase?
Say you have a list of products that need a change. You could use bulk, filter and search but there will always be a change to get more, or less, products than you aimed for. 

If you have the products IDs of these products you can manually add a key/value via the inspector in local storage which will select those products then entering /5/#/bulk/products/actions

How to

  1. Go to a random page in the control panel
  2. Open the inspector in Chrome and go to
    1. Application
    2. Storage > Local Storage
    3. Find the storage for the site you're on
  3. Add a new key: bulkeditor.selected_ids
  4. Add a string of IDs, like this: [10, 12, 14, 16]
  5. Using the address bar in your browser go directly to /5/#/bulk/products/actions, skipping the default bulk editor landing page

You should now have the products pre-selected and can make necessary changes.



Was dit artikel nuttig?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, die het ontdekken van kennis vergemakkelijkt door middel van conversationele intelligentie