I apologize and know this question has been asked a lot, but even then I still have not been able to fix this specific instance of my problem. I have tried reading and following many of the steps listed on these forums, but I suppose this specific instance has some problems that I cannot quite get over (as a novice coder)
I am trying to create a small, secondary store for a couple of drop-ship items, but do not want the page to go to the main store. What I have done is added several products using the product theme ‘island-vibes’, as the only grouping of these items. I created a new collection called ‘all’ and excluded these items from the ‘all’ so that these particular items would not show up on the main store page.
My first obstacle to verify (there has been too many variables to confirm where my mistakes truly are) is what I would be checking in my initial IF statement; I am trying to assign a particular menu if the product is set to ‘island-vibes’.
I’ve seen the code to check to see if an item belongs in a particular collection, but that does not apply to this instance. Would it be something like this?
{% if product.handle == 'island-vibes' %}
{% assign menu_handle = 'sandy' %}
{% else %}
{{% assign menu_handle = 'main-menu' %}
{% endif %}
My theme I am using is “ride”. I would like to know if I need to insert this code into the theme.liquid or the header.liquid, followed be where to input this code. I’ve tried all sorts of things, and I apologize for not knowing. The first obstacle is really holding me up, I am open to all help at this point, it’s been hours of frustration of trying to get a simple menu to change on a header.