You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am encountering a challenge with my online store which is integrated with Google Merchant Center. Upon importing product data, I've noticed that the product descriptions include unnecessary HTML, CSS tags, and comments, which cause the descriptions to be unreadable in Google Merchant Center. It appears that these tags are coming directly from the content editor (Elementor) and they are unwanted in the context of product descriptions for Google Merchant.
I have already tried filtering the product descriptions before displaying them and before saving them to the database using the strip_tags() and preg_replace() functions in PHP, but I still haven't achieved the desired results.
Has anyone else encountered a similar issue and found an effective solution? Is there a proven method to clean up these descriptions, perhaps some specific hooks in WooCommerce that I could use? Can you recommend any plugins or tools that could automatically process this data in a more efficient way?
Any tips or code examples would be immensely helpful. Thank you for any time spent helping me resolve this issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello community,
I am encountering a challenge with my online store which is integrated with Google Merchant Center. Upon importing product data, I've noticed that the product descriptions include unnecessary HTML, CSS tags, and comments, which cause the descriptions to be unreadable in Google Merchant Center. It appears that these tags are coming directly from the content editor (Elementor) and they are unwanted in the context of product descriptions for Google Merchant.
I have already tried filtering the product descriptions before displaying them and before saving them to the database using the strip_tags() and preg_replace() functions in PHP, but I still haven't achieved the desired results.
Has anyone else encountered a similar issue and found an effective solution? Is there a proven method to clean up these descriptions, perhaps some specific hooks in WooCommerce that I could use? Can you recommend any plugins or tools that could automatically process this data in a more efficient way?
Any tips or code examples would be immensely helpful. Thank you for any time spent helping me resolve this issue.
Beta Was this translation helpful? Give feedback.
All reactions