Hi,
I'm currently building a product admin for a client in the business of textiles. Currently the way I have the admin set up is I have a cloneable product template to house the various patterns they offer. But within a pattern, they'll have various colors as well (Blue, Brown, Black, etc).
The issue I'm running into is I've set up a repeatable region for available colors, but I'm having trouble targeting the editable region within the repeatable region for the filter. I've been able to successfully set up filters based on fields that are not in a repeatable region, but am running into a wall trying to create a filter for the various colors in the repeatable.
Here's the repeatable region set up:
And here's the filter set up:
Let me know if any solutions come to mind, as your help would be greatly appreciated.
Thanks.
I'm currently building a product admin for a client in the business of textiles. Currently the way I have the admin set up is I have a cloneable product template to house the various patterns they offer. But within a pattern, they'll have various colors as well (Blue, Brown, Black, etc).
The issue I'm running into is I've set up a repeatable region for available colors, but I'm having trouble targeting the editable region within the repeatable region for the filter. I've been able to successfully set up filters based on fields that are not in a repeatable region, but am running into a wall trying to create a filter for the various colors in the repeatable.
Here's the repeatable region set up:
- Code: Select all
<cms:repeatable name="color_ways" label="Color Ways" order='2' stacked_layout='1'>
<cms:editable
name="color_img"
label="Color Image"
type="image"
order="0"
/>
<cms:editable
name="color_name"
label="Color Name"
type="text"
order="1"
/>
<cms:editable
name="color_category"
label="Color Category"
type="text"
order="2"
/>
</cms:repeatable>
And here's the filter set up:
- Code: Select all
<div id="quick-search">
<cms:form name="quicksearch" id="quicksearch" anchor='0'>
<cms:if k_success >
<cms:if frm_color_ways!='-' >
<cms:set my_search_str="<cms:concat my_search_str ' | color_ways==' frm_color_ways />" scope='global'/>
</cms:if>
</cms:if>
<div class="row">
<div class="col-md-4">
<label>Color</label>
<cms:input type="checkbox"
opt_values="All=- | Gray | Orange | Brown | Blue | Purple | Black"
opt_selected="-"
name="color_ways" id="color_ways" />
</div>
</div>
<cms:input type="submit" class="btn" value="SEARCH" name="submit"/>
</cms:form>
</div>
Let me know if any solutions come to mind, as your help would be greatly appreciated.
Thanks.