我是表达式引擎的新手,也是expresso插件的新手,所以如果这个问题遇到了朴素的…,请原谅我正在尝试使用一些exp:resso标签集成一个自定义模板,但是,我无法让它正常工作。下面是我正在尝试实现的静态版本的示例。http://iamnatesmithen.com/fluotics/products.html
到目前为止,在我的频道字段中创建了一个标题为“products”>的频道字段,在我的组中,我已经创建了4个组ID‘{p_details},它链接到字段类型“Store Product Details”,假设这使我能够输入所有产品详细信息,如价格、产品ID等,我还为图像{p_productimage}创建了另一个字段,该字段链接到文件类型“矩阵”。
当我进入ee上的发布部分时,exp:resson为我提供了应用产品sku,vol等的字段,但我正在艰难地将这些字段分离到我上面拥有的类中,有人可以指导我正确的方向吗?
{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}发布于 2012-04-30 19:29:25
要限制显示的条目数量,需要使用limit参数。分页也是如此。另请注意,您的通道条目结束标记不正确。
你的商店:产品标签应该放在你的频道条目标签里,而不是反过来,这样它就可以提取条目的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}https://stackoverflow.com/questions/10382675
复制相似问题