Helpcenter +918010117117 https://help.storehippo.com/s/573db3149f0d58741f0cc63b/ms.settings/5256837ccc4abf1d39000001/57614ef64256dc6851749879-480x480.png" [email protected] https://www.facebook.com/StoreHippohttps://twitter.com/StoreHippohttps://www.linkedin.com/company/hippoinnovations/https://plus.google.com/+Storehippo/posts
B4,309-10 Spaze iTech Park, Sector 49, Sohna Road, 122001 Gurgaon India
call to replace anchor tags contains '/admin' in href

How to show delivery time on product page?

Scenario

You want to show the delivery time on your product pages.

Example

Steps

You can show some extra content on your product page with the help of metafields. StoreHippo provides the metafield functionality to provide additional data on the storefront and extended field in the admin panel. To provide the delivery time on the product page, you are required to create a metafield and then display the data on the storefront.

Follow the below steps to add the delivery metafield to a product page:

Adding metafield in Admin Panel

  1. Go to Advance Settings > Metafields section in StoreHippo Admin Panel.
  2. Click on Add New to add a metafield.
  3. Select the entity "ms.products" from the drop-down in which you want to add the metafield. 
  4. Now to define the fields, click on Add Field.
  5. Enter the field name as "Delivery Time" and type as String.
  6. Click on Save to store the metafield.
  7. Go to Products >  Products section in StoreHippo Admin Panel.
  8. Add/edit a product.
  9. Find the Delivery time metafield. Enter the delivery time in the field.
  10. Save the changes.


    Displaying Metafields on Storefront

  11. Go to Design Theme from the admin panel.
  12. In the HTML section, click on Show all widgets.
  13. Search for the Product widget.
  14. Paste the following snippet in the product code wherever you wish to show the metafield. Here we paste it below the "Check COD availability" code.
    <p ng-if="product.metafields.delivery_time"><b>{{"Delivery Time:"|msTranslate}}</b>{{product.metafields.delivery_time}}</p>

  15. Save the changes.
  16. The metafield will now appear on your product page as shown below.
2020-09-07T10:33:26.091Z