What's your biggest current challenge? Have your say in Community Polls along the right column.

How to make specific custom metafields appear only for product types similar to category metafield

How to make specific custom metafields appear only for product types similar to category metafield

webdev100
Excursionist
17 2 4

Basically I have a store with the same products, but each has a duplicate with one being under the product type "retail" and the other being the product type "wholesale". With the wholesale type products, the displayed text and information is different from the retail product, and i want to create a few custom metafields like "case specifications", or like "vendor number" (Separate from SKU from retail products because its a duplicate), but for it to only appear in the products.metafields if the product type is wholesale, similarly to how shopify has its own category metafields in the product metafield definitions that only show up if the item has a specific category. I want to do that, but with product type instead so it doesn't crowd the list of metafields in the default "retail" product type, or have duplicates and takes up space it doesn't need, just for organizations sake and what not.

 

Please let me know if this is possible! Thank you

Replies 2 (2)

PaulNewton
Shopify Partner
7516 662 1578

Hi @webdev100 in the admin conditional pinning of metafield definitions is not possible it's all or nothing.

Search forums for prior discussions on this with those keywords.

 

userstyles/userscripts browser extensions - while pinning currently has a ~20 item limit, if all metafields can be pinned then using brower extensions to hide/show elements may be one workaround

 

If the metafields are not used for storefront filters, etc then a workaround is to put all the metafields into metaobjects that instead have specific sets of metafields.

 

Not clear yet if there's perhaps an off the shelf app to workaround this by using an admin embedded extension via an app panel that shows only product specific metafields. But it should also be feasible to make a custom app for this.

 

*edit: userstyle workarounds

Contact paull.newton+shopifyforum@gmail.com for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org


webdev100
Excursionist
17 2 4

ahhh i see, thank you i can indeed work around it but just prefer not to haha