Insert a property into a snippet

Properties are pieces of information that describe a specific part of your store. For example, a product's properties include its title, description, and vendor, while a variant's properties include its SKU, price, inventory quantity, and weight.

To show a property on a page without Descriptions Studio, you need to edit your theme code, or add sections or blocks that support dynamic sources to your theme's page templates using the theme editor. These methods have some important drawbacks to keep in mind:

  • Properties don't update automatically when the variant is changed.
  • It's difficult or impossible to show properties conditionally based on collection, tag, type, vendor, price, weight, inventory, or other criteria.
  • Customizing code requires technical knowledge and can be time-consuming to set up and maintain.
  • Theme updates or platform changes may break customizations.
  • Adding new properties often means editing code again.
  • Dynamic sources depend on theme support and may limit flexibility in displaying properties.
  • Complex or custom variant options might not be fully supported by dynamic sources.

Descriptions Studio avoids these drawbacks, making it quick and easy to show variant, product, or store properties on all of the relevant product pages without any coding or complicated setup.

All properties in a snippet update automatically when the variant is changed

To insert a property into a snippet:

  1. From the Descriptions Studio app, go to Snippets.

  2. Click the name of the snippet that you want to edit, or create a new snippet

  3. On the snippet details page, in the Content area, click the Insert/edit property or metafield button.

    The 'Insert/edit property or metafield' button in the snippet content rich text editor
    The 'Insert/edit property or metafield' button in the snippet content rich text editor
  4. In the Insert/edit property or metafield dialog, click Insert property.

    The 'Insert/edit property or metafield' dialog
    The 'Insert/edit property or metafield' dialog
  5. Under Resource, select the resource that the property belongs to.

    The 'Insert/edit property' dialog
    The 'Insert/edit property' dialog
  6. Under Property, select the property that you want to insert.

  7. Optional

    Under Hide parent if property is empty, select the parent element to hide if the property is empty.

    For example, if the property is in a table, select Table row to hide the entire table row if the property doesn't have a value.

  8. Optional

    Under Filters, click Add filter to add a filter that formats the display of the property.

  9. Click Insert to insert the property in the snippet.

  10. Click Save to save the snippet.

Still need help? Contact Us Contact Us