cancel
Showing results for 
Search instead for 
Did you mean: 

Add a "Select All" Option for Product Export Exclude Entity Attributes

Add a "Select All" Option for Product Export Exclude Entity Attributes

Feature request from surfer190, posted on GitHub Mar 10, 2017

Preconditions

Magento version: Magento 2.1.5

Steps to Reproduce

  1. System -> Export
  2. Select Product

Expected result

  1. Expect there to be a javascript function to select all of the attributes, so I can only uncheck price if I want to export just the product sku and price.

Actual result

  1. There is no select all option

No Select All

3 Comments
Established Member

Yes, was just about to make the same request after trying to exclude 100's of attributes with lots of manual clicks, only to be redirected to login again after session timeout because it took so long! :/

Established Member

Insert this javascript into console window and execute to select all the checkboxes... then you can unselect the ones you want Smiley Happy

 

var inputs = document.getElementsByTagName("input");
for(var i = 0; i < inputs.length; i++) {
    if(inputs[i].type == "checkbox") {
        inputs[i].checked = true; 
    }  
}
Occasional Visitor

Can we do it in program?