skip to Main Content

Deleting Specific Product Option Using Shopify API

Using the Python ShopifyAPI library, version 12.3.0 I want to delete a specific product option. def remove_product_option(self, product_id): product = self.get_product_by_id(product_id) option_name = self.config['option_to_delete'] for i, option in enumerate(product.options): if option.name == option_name: product.options.pop(i) product.save() This code is not working.…

VIEW QUESTION
Back To Top
Search