Sold Items Count
Zid merchants can display the number of items sold for each product, providing customers with real-time sales data that builds trust and drives engagement. As a theme developer, integrating this feature into product pages enhances the shopping experience by showcasing product popularity.
Activation Steps for Merchants
Merchants can activate this feature through Order and Product Settings page in their dashboard.
Changes made in these settings are reflected in the product data object under product.sold_products_count
. You can refer to the product schema for more details.
Code Snippet Integration for Theme Partners
Use the following snippet to display the sold items count. If the product has a sales record, the snippet will showcase the number of items sold with a distinctive visual style to attract customer attention.
{% if product.sold_products_count %}
<div class="product-count d-flex align-items-center">
<span class="icon-military_tech" style="color: #FFCF57; font-size: 16px"></span>
<span class="lang">
{{ locals.product_sold_more_than_x_times |
format(product.sold_products_count) }}
</span>
</div>
{% endif %}