From d169592a3019031ab732ef4a5b77f07dcd1df0fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 4 Apr 2025 00:37:39 +0200 Subject: [PATCH] Do not update Shopify product with empty product description Closes #13963 --- modules/web_shop_shopify/CHANGELOG | 1 + modules/web_shop_shopify/product.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/web_shop_shopify/CHANGELOG b/modules/web_shop_shopify/CHANGELOG index b165da8e5c..4e7deee98f 100644 --- a/modules/web_shop_shopify/CHANGELOG +++ b/modules/web_shop_shopify/CHANGELOG @@ -1,3 +1,4 @@ +* Do not update empty product description * Remove support for Python 3.8 * Add support for Python 3.13 diff --git a/modules/web_shop_shopify/product.py b/modules/web_shop_shopify/product.py index c2d9d660ec..ae1483d28b 100644 --- a/modules/web_shop_shopify/product.py +++ b/modules/web_shop_shopify/product.py @@ -106,7 +106,8 @@ class Template(IdentifiersMixin, metaclass=PoolMeta): if product is None: product = shopify.Product() product.title = self.name - product.body_html = self.web_shop_description + if self.web_shop_description: + product.body_html = self.web_shop_description options = [] for attribute in self.shopify_attributes: options.append({'name': attribute.string})