0

我们正在尝试配置一个 magento 扩展来工作,这需要“DOM 路径(例如:“.product-shop .add-to-box .btn-cart”)”

由于我们使用的是 magento 模板,这些路径是不同的,我已经查看并尝试了各种组合,但我似乎无法让它们正确并希望有人可以看看。

我们需要它们用于产品页面上的可用性文本和添加到购物车文本。

代码如下,但是查看网页可能更容易(如果我错过了一些代码!): http: //foscam-uk.com/indoor-cameras/mjpeg/foscam-fi8916w-白色无线 ip-camera.html

<div class="product-option">
            <div class="alert-price">

    <p class="availability in-stock">Availability: <span>In stock</span></p>



    <div class="price-box">
                                                            <span class="regular-price" id="product-price-217">
                    <span class="price">£71.99</span>                </span>

        </div>


    <ul class="tier-prices product-pricing">
                    <li>

                                                            Buy 2 for <span class="price">£64.99</span> each                                    

                                    and&nbsp;<strong class="benefit">save&nbsp;10%
            </strong>

                    <span class="msrp-price-hide-message">
                            </span>


        </li>

        </ul>
                            </div>



                            <div class="product-options" id="product-options-wrapper">

    <dl>

<dt><label class="required"><em>*</em>Power Supply</label></dt>
<dd class="last">
    <div class="input-box">
        <ul id="options-21-list" class="options-list"><li><input type="radio" class="radio  validate-one-required-by-name product-custom-option" onclick="opConfig.reloadPrice()" name="options[21]" id="options_21_2" value="41"  price="0" /><span class="label"><label for="options_21_2">United Kingdom (3 Pin Plug) </label></span><script type="text/javascript">$('options_21_2').advaiceContainer = 'options-21-container';$('options_21_2').callbackFunction = 'validateOptionsCallback';</script></li><li><input type="radio" class="radio  validate-one-required-by-name product-custom-option" onclick="opConfig.reloadPrice()" name="options[21]" id="options_21_3" value="42"  price="0" /><span class="label"><label for="options_21_3">Europe (2 Pin Plug) </label></span><script type="text/javascript">$('options_21_3').advaiceContainer = 'options-21-container';$('options_21_3').callbackFunction = 'validateOptionsCallback';</script></li></ul>                                    <span id="options-21-container"></span>
                        </div>
</dd>
        </dl>


            <p class="required">* Required Fields</p>
    </div>
<script type="text/javascript">decorateGeneric($$('#product-options-wrapper dl'), ['last']);</script>
<div class="product-options-bottom">



    <div class="price-box">
                                                            <span class="regular-price" id="product-price-217_clone">
                    <span class="price">£71.99</span>                </span>

        </div>

    <div class="add-to-cart">
                <label for="qty">Qty:</label>
        <input type="text" name="qty" id="qty" maxlength="12" value="0" title="Qty" class="input-text qty" />
                <button type="button" title="Add to Basket" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span>Add to Basket</span></span></button>
            </div>


<ul class="add-to-links">

</ul>
</div>

                    </div>
4

0 回答 0