1

私は式エンジンにかなり慣れていないので、この質問が明らかな場合はご容赦ください。exp:ressoストアタグをテンプルに統合する際に少し問題があります。何らかの理由で、すべてのコードをexp:ressoの{store}タグの下に適用します私のブラウザには表示されません。以下のコードは、EE タグをどのように構成したかを示しています。間違っている場合は修正してください...

{exp:channel:entries channel="products" limit="6" paginate="bottom"}
    {exp:store:product entry_id="1" return="cart"}
    <ul class="inventory">
        <li class="item2"> {p_productimage}<a href="#"><img class="itemImg" alt="" src="{p_productimage_image}"/></a>{/p_productimage}
        <div class="product-fam1">
            <h3>{p_title}</h3>
            <a class="viewItem" href="#"><img src="iamnatesmithen.com/fluotics/css/images/viewItem.jpg";</a>
        </div>
        </li>
    </ul>
    {/exp:store:product}
{/exp:channel:entries}

ExpressionEngine テスト サイト: http://www.iamnatesmithen.com/ExpressionEngine2/index.php/inventory

現在の静的サイト: http://iamnatesmithen.com/fluotics/products.html

4

1 に答える 1

1

商品のエントリ ID を {exp:store:product} に正しく渡していないようです。これを試しましたか?注 {exp:store:product entry_id=" {entry_id} "...

{exp:channel:entries channel="products" limit="6" paginate="bottom"}
    {exp:store:product entry_id="{entry_id}" return="cart"}
     <!-- snip -->
    {/exp:store:product}
{/exp:channel:entries}
于 2012-05-01T19:39:22.683 に答える