Forum
shop description displays
hi,
I have been setting up a new shop, and have modified shop/product/list.html to display the products.
link to products demo... https://shop.stylishlittleme.com/products.php
but on the description I get <p> and </p> around the text!
not sure why this is happening
tony
product.html
<perch:shop id="sku" type="text" label="SKU" required="true" order="1" />
<perch:shop id="title" type="text" label="Title" required="true" order="2" />
<perch:shop id="slug" type="slug" editable="true" indelible="true" label="Slug" for="title sku" order="10" divider-before="Meta data" />
<perch:shop id="description" type="textarea" label="Description" editor="markitup" order="3" markdown="true" size="s" />
<perch:shop id="shortdescription" type="textarea" label="ShortDescription" editor="markitup" order="4" markdown="true" size="s" />
<perch:shop id="specifications" type="textarea" label="Specifications" editor="markitup" order="5" markdown="true" size="s" />
<perch:shop id="image" type="image" label="Main image" order="6" height="1200" bucket="shop" />
<perch:shop id="image" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image" type="image" width="80" height="80" density="1.6" crop="true" bucket="shop"/>
<perch:shop id="image2" type="image" label="Image 2" order="7" width="1200" bucket="shop"/>
<perch:shop id="image2" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image2" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image3" type="image" label="Image 3" order="8" width="1200" bucket="shop"/>
<perch:shop id="image3" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image3" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image4" type="image" label="Image 4" order="9" width="1200" bucket="shop"/>
<perch:shop id="image4" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image4" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image5" type="image" label="Image 5" order="10" width="1200" bucket="shop"/>
<perch:shop id="image5" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image5" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image6" type="image" label="Image 6" order="11" width="1200" bucket="shop"/>
<perch:shop id="image6" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image6" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image7" type="image" label="Image 7" order="12" width="1200" bucket="shop"/>
<perch:shop id="image7" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image7" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="image8" type="image" label="Image 8" order="13" width="1200" bucket="shop"/>
<perch:shop id="image8" type="image" order="6" height="800" bucket="shop" />
<perch:shop id="image8" type="image" order="6" height="375" bucket="shop" />
<perch:shop id="status" type="shop_status" label="Status" />
<perch:shop id="brand" type="shop_brand" label="Brand" allowempty="true" />
<perch:categories id="category" set="products" label="Category">
<perch:category id="catTitle" />
</perch:categories>
<perch:shop id="catalog_only" type="shop_catalog_only" label="Catalog only" />
<perch:shop id="price" type="shop_currency_value" label="Price" divider-before="Pricing" size="m" min="0" step="any" />
<perch:shop id="sale_price" type="shop_currency_value" label="Sale price" size="m" min="0" step="any" />
<perch:shop id="trade_price" type="shop_currency_value" label="Trade price" size="m" min="0" step="any" runway="true" />
<perch:shop id="on_sale" type="checkbox" value="1" label="Use sale price" />
<perch:shop id="tax_group" type="shop_tax_group" label="Tax group" required="true" />
<perch:shop id="stock_status" type="shop_stock_status" label="Stock status" divider-before="Stock" required="true" />
<perch:shop id="stock_level" type="number" label="Stock level" size="s" />
<perch:shop id="stock_location" type="shop_stock_location" label="Count stock" />
<perch:shop id="max_in_cart" type="number" label="Max quantity in cart" size="s" />
<perch:shop id="requires_shipping" type="shop_requires_shipping" label="Requires shipping" divider-before="Shipping" />
<perch:shop id="weight" type="number" label="Shipping weight" size="s" />
<perch:shop id="width" type="number" label="Width" size="s" />
<perch:shop id="height" type="number" label="Height" size="s" />
<perch:shop id="depth" type="number" label="Depth" size="s" />
<perch:form id="add_to_cart" app="perch_shop" action="/shop/cart">
<perch:input id="product" type="hidden" env-autofill="false" value="<perch:shop id="productID" type="hidden" env-autofill="false" />" />
<perch:input type="submit" value="Add to cart" />
</perch:form>
list.html
<perch:before>
<ul>
</perch:before>
<li>
<a href="single.php?id=<perch:shop id="productID" type="text" />/">
<div class="simpleCart_shelfItem">
<div class="view view-first">
<div class="inner_content clearfix">
<div class="product_image">
<img src="<perch:shop id="image" type="text" />" class="img-responsive" alt=""/>
<div class="product_container">
<div class="cart-left">
<p class="title">
<perch:shop id="title" type="text" />
</p>
</div>
<div class="pricey"><span class="item_price">£<perch:shop id="price" type="text" /></span></div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
</div>
</a>
<div class="cbp-vm-details">
<perch:shop id="description" type="text" />
</div>
<a class="cbp-vm-icon cbp-vm-add item_add" href="#">Add to cart</a>
<perch:if not-exists="has_variants">
<perch:form id="add_to_cart" app="perch_shop" action="/shop/cart">
<perch:input id="product" type="hidden" value="<perch:shop id="productID" env-autofill="false" />" />
<perch:input type="submit" value="Add to cart" />
</perch:form>
</perch:if>
</li>
<perch:after>
</ul>
</perch:after>
You're using
but the type isn't
text
. It'stextarea
.many thanks for quick response..
tony