下拉菜单不再更改Shopify产品图像?发生了什么?

时间:2018-10-06 02:26:30

标签: javascript drop-down-menu shopify shopify-template

当您单击我们商店中的某个商品时,它不再更改产品图像或更新价格...而想到它,当您选择某个特定的无货商品时,该商店不再说“无货”要么...就像下拉菜单中的任何内容都不再在我的商店中起作用...发生了什么事?我们似乎无法弄清楚...

产品页面:https://kingofthepin.com/collections/enamel-pins/products/animehub-enamel-pin

1 个答案:

答案 0 :(得分:0)

您在https://cdn.shopify.com/s/assets/themes_support/option_selection-ea4f4a242e299f2227b2b8038152223f741e90780c0c766883939e8902542bda.js中遇到了一个未捕获的JS错误:

Uncaught TypeError: Cannot read property 'length' of null
    at new Shopify.SingleOptionSelector (option_selection-ea4f4a242e299f2227b2b8038152223f741e90780c0c766883939e8902542bda.js:1)
    at Shopify.OptionSelectors.buildSelectors (option_selection-ea4f4a242e299f2227b2b8038152223f741e90780c0c766883939e8902542bda.js:1)
    at Shopify.OptionSelectors.replaceSelector (option_selection-ea4f4a242e299f2227b2b8038152223f741e90780c0c766883939e8902542bda.js:1)
    at new Shopify.OptionSelectors (option_selection-ea4f4a242e299f2227b2b8038152223f741e90780c0c766883939e8902542bda.js:1)
    at HTMLFormElement.<anonymous> (theme.js?13924364935478740494:793)
    at Function.each (jquery.min.js:2)
    at n.fn.init.each (jquery.min.js:2)
    at new Product (theme.js?13924364935478740494:792)
    at Sections._createInstance (theme.js?13924364935478740494:538)
    at Sections.<anonymous> (theme.js?13924364935478740494:616)

好像您正在使用某些Bold Product Options应用程序。这可能会干扰您主题的JS期望。

解决该问题将需要更多信息,最有可能访问Shopify商店的主题文件,以尝试诊断问题出在哪里。但是,至少这回答了“为什么X不能再工作了”的问题。