製品の価格が 0 の場合に、要求に応じて価格を表示する「簡単な」方法が必要です。私はこの方法を使用しましたが、どういうわけかうまくいきません:(私のjsパスは正しいです) http://www.designersandbox.com/magento/magento-hide-the-price-for-a-free-product-using- jquery/
私の情報源:
<span class="price">€ 0,00</span>
js:
jQuery(document).ready(function() {
jQuery("span").each(function(i, e) {
if ( (jQuery(e).attr('class') == "price") && (jQuery(e).text() == "€ 0,00") ) {
jQuery(e).text("Price on request");
}
})
})
何が間違っているのかわかりません。