I created a metafield that I want to use to enter pre-order estimated arrival dates. Not all products are pre-orders though, and I do not want the meta field to display on those products. Is there a way to set a metafield to only display on certain products?
Hi there @mroberts327 . I can definitely help walk you through how to set this up.
This is going to be done using theme templates which you can read more about on this page here. Right now, your products are all using the same default product template which means that all products will have the same layout. Instead of this, you will want to have two separate product templates. One for products that are pre-orders and another for products that are not pre-orders. Having two separate templates will allow you to set up the layout differently for each group of products (including what information to display and what not to display).
Since all of your products (and all newly added products) will have the default product page template applied/assigned automatically, I would recommend using the default product template for the group of products you have more of. For example, if most of your products are pre-orders you would design the default product template to display the pre-order estimated arrival date and create a new template for products that are not pre-orders. In this example, the new template would be designed without the pre-order arrival dates being displayed. You can find the steps to create a new template on this page here.
Once you’ve created your new template and decided which template will be applied to which group of products, you can start designing the layout of the templates. You will not have to do anything to the template that will not display the pre-order arrival dates. That being said, you will need to add the metafield to the product template that will display the pre-order arrival dates. You can read more about displaying metafields on this page here, but you will want to make sure you first create the metafield definition and enter the information to be displayed.
Example of how to add the metafield to your template:
The final step to this is to make sure you assign/apply the correct template to the correct products. As I mentioned, your products will all have the default product page template applied, but you can change this by going to Products in your Shopify Admin and clicking the product you want to edit. Then under the Online store section you can change your template.
It’s important to note that the template options that appear here will only be templates from your current theme, the one that is currently published. However, you can still preview what a specific product will look like with a template following these steps here.
Please let me know if you have any questions or issues setting this up. I’m happy to help you out further.

