我目前正在本地(Wampserver)上测试产品付款,但在确认付款时总是出现“域抓取失败”错误,我无法解决。
https://i.stack.imgur.com/HVxjd.png
https://i.stack.imgur.com/iU0zJ.png
我已将 'localhost' 设置为 snipcart 上的默认域,并且还放置了子域:
https://i.stack.imgur.com/AhouQ.png
我的带有购买按钮的产品在页面中:“http://localhost/Site/boutique”。这是代码:
<ul id="Product-List">
<li class="product-item shown">
<img src="assets/word.png">
<div class="product-description">
<h1>Word Guide Complet</h1>
</div>
<div class="product-pay">
<h2>39,99 €</h2>
<button class="buy-button snipcart-add-item"
data-item-id="word"
data-item-price="39.99"
data-item-url="http://localhost/Site/boutique"
data-item-description="Le guide complet de Word"
data-item-image="assets/word.png"
data-item-name="Word Guide Complet">
Ajouter au panier
</button>
</div>
</li>
<li class="product-item shown">
<img src="assets/excel.png">
<div class="product-description">
<h1>Excel Guide Complet</h1>
</div>
<div class="product-pay">
<h2>39,99 €</h2>
<button class="buy-button snipcart-add-item"
data-item-id="excel"
data-item-price="39.99"
data-item-url="http://localhost/Site/boutique"
data-item-description="Le guide complet de Excel"
data-item-image="assets/excel.png"
data-item-name="Excel Guide Complet">
Ajouter au panier
</button>
</div>
</li>
<li class="product-item shown">
<img src="assets/powerpoint.png">
<div class="product-description">
<h1>Powerpoint Guide Complet</h1>
</div>
<div class="product-pay">
<h2>39,99 €</h2>
<button class="buy-button snipcart-add-item"
data-item-id="powerpoint"
data-item-price="39.99"
data-item-url="http://localhost/Site/boutique"
data-item-description="Le guide complet de Powerpoint"
data-item-image="assets/powerpoint.png"
data-item-name="Powerpoint Guide Complet">
Ajouter au panier
</button>
</div>
</li>
</ul>