I've created a segment variable for brands that shows in the URL. I want to write an {if} statement that looks at the URL segment for brand and then brings back the products that match the playa field for brand. (ie. If the URL segment says BEAM I want to show all BEAM products that have been selected from the Playa filed). How do I go about doing this? Any suggestions?
Here's a very basic example. This doesn't include the code to only show products with the same name as {segment_6}. Any suggestions? I hope this helps.
<!--I only want to show the code below if segment_6 has something-->
{if segment_6 != ""}
{exp:store:search channel="products"}
{exp:store:product entry_id="{entry_id}"}
<!--I want all of this code to display the products that match segment_6 with the Playa field brand selected in an entry-->
{exp:playa:children field="brand"}
<h1>{title}</h1>
{/exp:playa:children}
<!--this should also display based on the brand in the playa field above-->
{product_description}
{product_image}
{/exp:store:product}
{/exp:store:search}
{/if}
brand
? Does that channel have categories? How are all the BEAM products setup within that channel? Are they all related to a category BEAM? – Siebird Jan 3 '13 at 19:00