Skip to content

Commit

Permalink
Merge pull request #7 from gcandal/gc/fix-bug
Browse files Browse the repository at this point in the history
Fix metafield value type
  • Loading branch information
joamag committed May 18, 2020
2 parents 87851a4 + 3d2400a commit 857047d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shopify/product.py
Expand Up @@ -98,7 +98,7 @@ def metafields_product(self, id, *args, **kwargs):
)
return contents["metafields"]

def create_metafield_product(self, id, key, value, type = "string", namespace = "global"):
def create_metafield_product(self, id, key, value, value_type = "string", namespace = "global"):
url = self.base_url + "admin/products/%d/metafields.json" % id
contents = self.post(
url,
Expand All @@ -107,7 +107,7 @@ def create_metafield_product(self, id, key, value, type = "string", namespace =
namespace = namespace,
key = key,
value = value,
value_type = type
value_type = value_type
)
)
)
Expand Down

0 comments on commit 857047d

Please sign in to comment.