小部件宽度差异价格(Shopify)

发布于 2025-02-11 07:10:43 字数 560 浏览 0 评论 0 原文

我将要在我的Shopify网站上集成桑坦德小部件,但是我需要用价格变量替换数据量: https://www.dropbox.com/s/cf025mnb5lr8j9m/satander_widget.jpg?dl = 0

我试图使用 data-amount =“ {{{ current_variant.price}}}“> ,但发生了变化。

知道为什么它不起作用吗?我正在使用current_variant.price其他位置在产品页面上

I’m about to integrate a Santander widget on my Shopify site, but I need to replace data-amount with price variable: https://www.dropbox.com/s/cf025mnb5lr8j9m/satander_widget.jpg?dl=0

I have tried to use data-amount="{{current_variant.price}}"> but nofthing happens.
https://www.dropbox.com/s/oibwr7qrb20xk33/27.06.2022_19.32.43_REC.png?dl=0

Any idea why it do not works? I'm using current_variant.price others places on the product page

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九局 2025-02-18 07:10:43

current_variant 不是Shopify的默认变量。这是主题设置在某个地方设置的典型性。

您只需要确保自己在该变量的范围内即可。

搜索 current_variant = ,您会找到设置的位置,通常这是值

{% - nistion current_variant = product.selected_or_first_available_variant-%}

current_variant is not a default variable of Shopify. It is something that typicall the theme is setting, somewhere.

You just need to be sure that you're inside the scope of that variable.

Search for current_variant = and you will find where is set, normally this is the value

{%- assign current_variant = product.selected_or_first_available_variant -%}

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文