I am having trouble with categories, hopefully someone can help!

My site has 3 main locations (Eastern, Central, Western) and in each main location there are individual store locations. I am planning to separate each main location by categories. The locator also needs to have the "Search" functionality at all times.

Once you click on a main location you are taken to a page with a list of stores in that location.

Is there a way to hard code in the category (eg. category="7") anywhere that can limit the category on that template.

Below I've kind of made a hack, which is triggering the initial search for the main location, which is hiding the values of the search. This is working for me, but I feel like i should hard code in category="7" or something. What i've done feels wrong.

        <li style="display: none;">
            <label for="location">Distance</label>
            <select name="distance_max">
                <option value="" &#123;if="" !distance_max="" ||="" distance_max="=" ""}selected="selected" &#123;="" if}="">Any</option>

        <li style="display: none;"> 
                <label><input type="checkbox" name="categories[]" value="6" checked="chcked" =""></label>

            <button type="submit">Western</button>

Let me know!

Thanks, funkefied


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.