0

私はここで初心者なので、誰かが助けてくれることを願っています。私は simplecart を使用していますが、カートの画像を表示できないようです。カートの画像は未定義として表示されます。ここで見つけた提案された回避策をすべて試しましたが、喜びはありません。

私のhtmlマークアップ:

<div class="simpleCart_shelfItem">
    <img src="images/clothingmens/1001.jpg" class="item-thumb">
    <p class="item_name"> Oneill Hoody</p><span class="item_price">&pound;59.00</span>
    <p><select class="item_size">
        <option value="0">Select Size</option>
        <option value="Small"> Small </option>
        <option value="Medium"> Medium </option>
        <option value="Large"> Large </option>
        </select></br>
    <a class="item_add" href="javascript:;"> Add to Cart </a></p>
                            </div>

私のJavascript:

            settings = {
                checkout                : { type: "PayPal", email: "removed" },
                currency                : "GBP",
                language                : "english",
                cartStyle               : "table",
                cartColumns         : [
                    {view:'image' , attr:'thumb', label: false},
                    { attr: "name", label: "Name" },
                    { attr: "price", label: "Price", view: 'currency' },
                    { attr: "size", label: "Size" },
                    { attr: "quantity", label: "Qty" },
                    { attr: "total", label: "SubTotal", view: 'currency' },
                    { view: "remove", text: "Remove", label: false }                
                ],



                shippingFlatRate        : 0,
                shippingQuantityRate    : 0,
                shippingTotalRate       : 0,
                shippingCustom      : null,

                taxRate             : 0,

                taxShipping         : false,

                data                : {}

            },

ありがとうございます

4

1 に答える 1

0

わかった。笑。だからあなたのイメージタグで

<img src="images/clothingmens/1001.jpg" class="item-thumb">

クラスに「item_image」を追加します。

<img src="images/clothingmens/1001.jpg" class="item-thumb item_image">

それはそれを修正する必要があります。幸運を!

また、よくわかりませんが、「親指タグ」を追加する必要があるかもしれません

<img src="images/clothingmens/1001.jpg" class="item-thumb item_image" thumb="images/clothingmens/1001.jpg">

お役に立てれば!

于 2016-08-27T00:44:33.110 に答える