wFirma · Attributes Query
Product page
Description
Provide product attribute lookup and write helpers used by the wFirma integration to update Magento catalog data by SKU.
For whom
For developers maintaining the mapping between integration values and Magento product attributes.
Features
- Resolve a product by SKU and look up an attribute by code.
- Insert or update an attribute value in its EAV storage table.
- Target the default scope or a specific store view when writing a varchar value.
Installation
This component is included in WFirma – Magento 2 integration. Follow the suite installation instructions.
Configuration
- Enable
Kowal_AttributesQueryfrom the wFirma distribution. Select an existing SKU and a product attribute with a known backend type. - For a short text field stored as varchar, pass the SKU, attribute code, value and intended store ID to the integration’s Varchar helper. Store ID 0 targets the default value.
Requirements / notes
The helper writes directly to Magento’s product attribute tables. For a store-specific change, verify the result in the same store view in Admin.
FAQ
Why was a short text value skipped?
The Varchar helper checks that the SKU exists and rejects values that PHP treats as empty, including the string “0”.
Verify the installation
bin/magento module:status Kowal_AttributesQuery
In staging, record the current value of a store-scoped text attribute on a test SKU. Apply a distinct nonempty value through the integration for one view. Reopen the product in that view and in the default scope to check where it was saved.