admin管理员组文章数量:1122846
I create my own way of displaying the list of available variants on the product page. I display individual variants on the main page of the store so that when the customer goes to the product page, he already has the selected variant automatically selected.
The standard JS mechanism works fine here, but I don't know how to give the appropriate CSS class depending on the variant indicated in the URL? How to universally retrieve the variant information from the URL and give the corresponding option the class "selected"?
I mean the parameters from the address: /?attribute_color=blue
本文标签: pluginsHow to get selected variation from URL
版权声明:本文标题:plugins - How to get selected variation from URL? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736306129a1932843.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论