Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
  1. Create a new custom attribute:

To add a custom attribute to your Shopify app products, go to your Shopify Dashboard and navigate to Products > All Products. Select the product where you want to add the custom attribute and choose the “Edit” option.

Scroll down to the “Variants” section of the product page and click “Add Variant.” In the “Variant” dialog box, you’ll see the “Add Custom Property” link. Click it to add a new custom attribute.

  1. Add custom attribute data to the product:

After you’ve created your custom attribute, you can add data to it for your product. Go back to the “Variants” section of the product page, and click “Edit” next to the variant you want to add the custom attribute data to. In the Variant dialog box, you’ll see the “Custom Properties” option.

Enter the new custom attribute’s name and value, then click “Save” to add it to the product.

  1. Display custom attribute on the product page:

To display the custom attribute on the product page, edit the product template file in your Shopify Theme editor. Find the section of the template where the product’s properties are displayed and add the custom attribute’s name and value to the section.

Save your changes, preview the product page, and you should see your custom attribute displayed alongside other product properties on the product page.