Hello all,
I have an issue where I have created a relationship between two channels but am having an unwanted result.
I have a channel “products_detail” that has a relationship to a channel “shop_parent” however the “shop_parent” channel has a relationship with a channel called “products”.
The result is that all of the channel entries in products_detail are being shown on the “shop_parent” page, mixed in with the “products” entries.
The relationship between products detail and shop_parent exists so that I can link to a specific page in the shop section. I do not want the entry the link originated on to be visible on the shop_parent page.
Is there a way to keep this from happening? Here is the code that is being used now:
<a href="/shop/{related_entries">Available Online »</a>And here is the code on the page where the unwanted display is happening (edited for brevity)
{exp:channel:entries channel="shop_parent" limit="1"}
...
<div id="product-details">
<section>
<h3>{title}</h3>
<p> {product_line_details}<br />
</section><br />
{exp:cartthrob:add_to_cart_form<br />
return="cart/view_cart"<br />
entry_id="{entry_id}"<br />
}<br />
<div id="select-model"><br />
{exp:cartthrob:item_options entry_id="{entry_id}"}<br />
<label>Choose a model</label><br />
<select name="entry_id"><br />
{reverse_related_entries id="product_line_parent"}<br />
<option value="{entry_id}"><br />
{title} {product_price}<br />
</option><br />
{/reverse_related_entries}<br />
</select><br />
{/exp:cartthrob:item_options}<br />
...<br />
</div><!-- eo product details<br />
{/exp:channel:entries}Specifically the issue arises in the <select> menu. I am using CartThrob, but I think this is more of a core EE issue.
Any help or insight would be greatly appreciated. Please let me know if I can provide any more clarity.
Thanks,
Nathan