Product Icon

Google for WooCommerce

Promote your products across Google - from Search to YouTube and beyond. So you can reach the right customers to make the most of your peak season.

Checking if a custom field is NULL before setting it as a value

Hey, if you currently try to for e.g. set multiple “individual fields”(Image.1 – srXVCJ.jpg) or regular attributes as the value / data source of the target attribute (img.3 – CjLgMJ.jpg) the newest or latest one overwrites the older upper-one even if it has already a value set. This is causing the problem, that if I set “attribute.1” as the first value and some products don’t have a value assigned with this “attribute.1” some products will hold the value “NULL”. Now if I try to assign another regular attribute or “individual field” as the second value of the old “target attribute”, the new value will overwrite all the already set values, with its own values even if they are “NULL”. But the value before that was the correct one which wasn’t a “NULL” value.

Sorry if this is a bad explanation.

For a better understanding please read this support ticket: “https://wordpress.org/support/topic/individual-product-fields-cant-be-set-as-the-datasource-of-target-attribute/#post-17282249” (the better explanation beginns at a lower point)

Thank you for your Support.

Screenshots

Author

admjo211116

Current Status

Open

Last updated: December 17, 2023

0 comments

Log in to comment on this feature request.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.