Hidden Global Attributes
page last edited on 31 July 2019
Global attributes are the only product attributes that support the values of a hidden field type. Global attributes with a hidden field type of value are called hidden attributes. Such attributes are not displayed in the storefront and can hence be used for internal product management purposes, like creating product feeds for the Google Product Feed addon.
Creating Hidden Attributes
Unlike global attributes of any other type of value, hidden global attributes can be created in the Classes and Attributes section of a store Admin area only (Catalog -> Classes and Attributes).
To create a hidden attribute:
- In your store’s Admin area, go to the Classes & attributes section (Catalog > Classes & attributes).
- Click on the Edit attributes (N) link opposite the Global attributes title: This opens a page where you will be able to manage global attributes:
- On this page, click New attribute: A popup titled New attribute appears:
- Use the fields of the New attribute popup to provide information about a new hidden attribute. Specify the following information:
- Attribute: Attribute name.
- Attribute group: Select a group name from the drop-down if this is applicable.
Use the Adding Groups to Global Attributes guide to learn how to join attributes into groups.
- Type: For a hidden attribute the attribute field type must be Hidden field.
- Click Next. The attribute should be saved. Now the popup is expanded so you can edit attribute options:
- Click the New value button to configure the hidden attribute options. Add as many attribute options as you need.
- If you want some or all of the option(s) you added for this hidden global attribute to be assigned automatically to all NEW products in your store’s catalog, click the check-mark icon opposite the names of the related attribute options (the check-mark icons should turn green):
Enabling check-mark for a hidden attribute option will not affect the products that are present in the store by far. All exisiting products will preserve their current global attributes’ configuration.
Once you’re done editing the attribute options, save the changes using the Save changes button.
The attribute options(s) should be saved and added to the global attributes list:
Hidden attributes like any other global attributes are assigned to products automatically right after they have been created. However, for the hidden attributes to become available for internal products management a store admin must assign and configure hidden attribute options for existing products in the store.
Assigning Hidden Attributes to Products
Once hidden attributes have been created via the Classes & Attributes section of the store Admin area it’s necessary to assing the hidden attribute options to existing products in the store.
Unlike other product attributes hidden attribute options can be assigned either on a per-product basis using a product details page or for a group of products or all products in the store using the Bulk Editing feature.
Assigning Hidden Attribute Options via Bulk Editing
To assign hidden attribute options to products via the Bulk Editing feature:
- Open the product listing page of the store Admin area (Catalog -> Products):
In the products list locate the products you want to assign a hidden attribute option to.
You can either use the search bar to select a certain category of products or use the checkboxes opposite the products you want to edit directly on the product listing page:
Click Bulk edit all/selected -> Hidden attributes icon: You’ll be redirected to a page with the chosen products list and a list of hidden atributes configured in your store via the Classes & Attributes section:
On the page that opens choose the hidden attribute option you want to assign to products:
Click Save changes to apply the chosen hidden attribute option to the products in the list.
That’s it! The required hidden attribute option has been assigned:
Assigning Hidden Attribute Options via Product Details
If required a hidden attribute can be assigned on a per-product basis via a related product details page:
In your store’s Admin area, locate the product you need to assign a hidden attribute to, open the product details page and hover the cursor on the Attributes tab:
Choose Hidden attributes in the drop-down to access the subsection where you can assign hidden global attributes to this product:
On the page that opens, you can see the full list of your store’s hidden global attributes. The attributes for which the Attribute option field is empty are assigned but not configured for the product.
- For the attribute that needs to be configured:
- click inside the Attribute option field and type in the value you require, or:
- click on the down arrow button at the right of the Attribute option field and select one of previously configured attribute options from the drop-down list:
- Click Save changes.
Managing Hidden Attributes
Hidden attributes like any other global attributes are managed on the global attributes listing page in the Classes & Attributes section of the Admin area (Catalog -> Classes & Attributes). Here a store admin can create new hidden atributes, add existing hidden attributes to attribute groups, edit existing hidden attribute names and options and delete them if required. All changes applied to hidden attributes via the Classes & Attributes section are applied store-wide and affect all products with the corresponding hidden attributes assigned and configured.
To open global attributes listing it’s necessary to open the Classes & Attributes section of the Admin area (Catalog -> Classes & Attributes)and click on the link Edit attributes (N) opposite the Global attributes line (here N stands for a number of global attributes configured in the store):
Hidden attributes will have the Hidden field type in the global attributes list.
To learn how to manage hidden attributes please refer to the Managing Global Attributes via the “Classes & Attributes” section guide of our Knowledge Base.
Help make this document better
This guide, as well as the rest of our docs, are open-source and available on GitHub.