Forum
Shop Category
Hi looking for some help as I'm going round in circles here! Shop App, Perch (not Runway) If I have 3 categories in a shop say "Butcher" "Baker" "Candlestick Maker" and I use a url "my_site.com/category.html?cat=products/butcher" and a template
<perch:shop id="cat" type="text">
<perch:before>
<ul class="listing">
</perch:before>
<li class="listed">
<div class="sort">
<img class ="img-responsive"src="<perch:shop id="image" type="image" label="Main product image" order="4" width="800" />">
<a href="product.html?product=<perch:shop id="slug" type="slug" />">
<perch:shop id="title" type="text" />
</a>
£<perch:shop id="price" type="text"/>
<perch:if not-exists="has_variants">
<perch:form id="add_to_cart" app="perch_shop">
<perch:input env-autofill="false" id="product" type="hidden" value="<perch:shop id="productID" env-autofill="false" />" />
<perch:input type="submit" class="btn btn-d btn-lg button-mg" value="Add to cart" />
</perch:form>
</perch:if>
</div>
</li>
<perch:after>
</ul>
</perch:after>
That lists all the products in the "Butcher" category; how therefore do I display, separately, the Title and Description of that category and only that category? I suspect I missed something obvious and have now massively overcomplicated the task.
Simon
Something like
https://docs.grabaperch.com/functions/categories/perch-category/
Thanks Drew! I was as usual completely overcomplicating it !