Can an empty source field clear a Magento 2 product description?

2 min read

Two product sheets on clipboards, one with an empty description box

A manual copy can replace a local description with empty text. For a first check, follow one source-to-target mapping for a single field such as short_description. Write down both products and Store Views, then check Use Default Value on the source. Adobe's guidance on product scope.

Check which value is put on the destination

For a local mapping, Product Attribute Copy 1.1.4 reads the attribute on the loaded source product and sets it on the target. An allowed attribute also passes "" or null to the save call. If the loaded source product contains inherited default text, that is the value the module passes. Module documentation.

Compare three cases before saving

A local test used source view 3 and captured the data the module passed to the product repository for destination view 7. The table shows the values sent to save. Reload the product in the same view to verify the result saved by Magento.

Trial for short_description
Value read at sourceValue sent to saveTarget view
"" · Empty string""7
null · Missing value after loadingnull7
LINEN-DEFAULT · Inherited textLINEN-DEFAULT7

Confirm the result on a test product

Note the target's current text and Use Default Value setting. Keep just the trial attribute under Allowed Attributes and switch off automatic copying and gallery copying. Select Copy Now for one mapping, reopen the target product in the same view and compare its field and inheritance setting. Take the attribute off the allowed list if the local team edits that description separately.

For a handover to a local team, follow the guide to disconnecting content synchronisation.

Previous Next

KOWAL.BLOG

Choose your language

Available versions open the corresponding page. More languages are being prepared.

English (UK) Français Deutsch Español Italiano Português Nederlands Svenska Dansk Norsk Suomi Lietuvių Latviešu Eesti Čeština Slovenčina Magyar Română Български Ελληνικά Slovenščina Hrvatski Polski English (US)