0

I’m new to expression engine and also the expresso plugin, so excuse me if this question comes across naive…I’m trying to integrate a custom template using some of the exp:resso tags however, i’m am failing to get this to work correctly. Below is an example of the static version of what i’m trying to achieve. http://iamnatesmithen.com/fluotics/products.html

Thus far in my channel fields created a channel field titled “products” > within my groups i have created 4 group IDs’ {p_details} which is linked to the field type Store Product Details, presume this enables me to enter in all products details such as price, product ID etc, I also have created another field for images {p_productimage} which is linked to the filed type “matrix”.

At the moment when i go into the publish section on ee, exp:resson provides me with fileds for me to apply product sku, vol etc but i'm stuggling to seperate these fields into the classes i have above can someone guide me in the right direction.

{exp:channel:entries channel="products" limit="6" paginate="bottom"}
    {exp:store:product entry_id="" return="cart"}
    <ul class="inventory">
    <li class="item2">
        <a href="#"><img class="itemImg" src="{p_productimage}" alt=""/></a>
        <div class="product-fam1">
            <h3>item title here</h3>
            <div class="sku"><h4>Format: 3335</h4></div>
            <div class="vol"><h4>Working Volume: 30ul</h4></div>
             <a class="viewItem" href="#"></a>                  
            </div> 
    </li><!-- ITEM ENDS HERE -->
    </ul>
    {/exp:store:product}
{/exp:channel:entries}
4

1 回答 1

2

要限制显示的条目数,您需要 limit 参数。分页也是如此。另请注意,您的关闭频道条目标签不正确。

并且您的 store:product 标签应该放在您的频道条目标签内,而不是相反,因此它可以获取条目的 entry_id,例如:

{exp:channel:entries channel="products" limit="6" paginate="bottom"}

{exp:store:product entry_id="{entry_id}" return="cart"}
{/exp:store:product}

{/exp:channel:entries}
于 2012-04-30T11:29:24.920 回答