Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Product customAttributes no longer working #849

Open
wigz opened this issue Aug 17, 2023 · 0 comments
Open

Product customAttributes no longer working #849

wigz opened this issue Aug 17, 2023 · 0 comments

Comments

@wigz
Copy link

wigz commented Aug 17, 2023

Hello-

I used to be able to add customAttributes to a product like:

const product = {
id: this.shopifyId,
node: this.$refs.shopifyTarget,
customAttributes: [
{ key: zip_attr_name, value: null },
{ key: promo_attr_name, value: promo_url === undefined ? '' : promo_url },
],
moneyFormat: '${{amount_no_decimals}}',
options: product_options,
}

return this.$shopifyBuyUI.createComponent('product', product)

Then reference them in a template like:

{{#data.customAttributes.0}}
{{value}}
{{/data.customAttributes.0}}

This appears to no longer be working. Was this feature removed? Is there a new alternative? Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant