Trouble with Drop down menu on Product Page - not allowing individual ingredients for individual

Trouble with Drop down menu on Product Page - not allowing individual ingredients for individual

penny24
Tourist
11 0 1

Hi there,  I have another question and it is proving difficult for me to complete.  My website is Retreat Myself

I am adding a drop down menu to each product page via the "collapsable row" and it replicates one ingredient and details for one product and repeats for all products.

I would like to know how I can make the "Collapsable Row" for each individual product - without it copying onto another different product.

Thanks in advance.

Penny

Replies 3 (3)

StevenDunneDev
Shopify Partner
60 14 13

Hi @penny24 , Sounds to me what you need is metafields or metaobjects.

Go to settings -> custom data -> products -> add definition.
Here you can make a product metafield as a piece of text, for your Ingredient, and a second metafield for the ingredient's description.
Alternatively you could make a metaobject, which is essentially a way of grouping multiple metafields together as a single object.

 

Once you have created your metafield you can link it to your template. Open your product template and you will be able to dynamically reference the metafield to control the content of your template.
dynamic-data-shopify.png

You can read about them in much more details in the documents here:
https://help.shopify.com/en/manual/custom-data/metafields

 

I'd strongly recommend learning about how to effectively use metafields. It's an extremely powerful tool to get to grips with

If my answer has been helpful to you, please give it a like and accepted solution. I greatly appreciate it 🙂

If you'd like to hire me to solve bigger problems for you, please reach out. I'd love to hear from you
penny24
Tourist
11 0 1

Hi Steven, 

Thank you.    

I have worked on this for 5 hours and for some reason it keeps switching details of other products....I go back, repeat the correct meta & save again and find that it might change another product so I go around in circles.  Ugh!  

StevenDunneDev
Shopify Partner
60 14 13

If you'd like to DM with your URL and collaborator password i'd be glad to jump on and see what you're working with.
You can find this Under settings -> Users and permissions

If my answer has been helpful to you, please give it a like and accepted solution. I greatly appreciate it 🙂

If you'd like to hire me to solve bigger problems for you, please reach out. I'd love to hear from you