Skip to content

Commit

Permalink
updated readme (encoded html character)
Browse files Browse the repository at this point in the history
  • Loading branch information
wigman committed Apr 7, 2015
1 parent 40af567 commit 3e5a834
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,17 +80,18 @@ Copy the file /app/design/frontend/base/default/layout/wigman_ajaxswatches.xml t

Change '.swatch-current .value img' on line 39 into your custom selector:

<block type="core/template" name="baseurl" template="wigman/ajaxswatches/baseurl.phtml">
<action method="setData"><name>active_swatch_selector</name><value><![CDATA[.swatch-current .value img]]></value></action>
</block>
<block type="core/template" name="baseurl" template="wigman/ajaxswatches/baseurl.phtml">
<action method="setData"><name>active_swatch_selector</name><value><![CDATA[.swatch-current .value img]]></value></action>
</block>

For example, if you are using ManaDev's layered navigation, the selector would become "input[id^=filter_left_color][checked=checked] ~ label span"

This selector pickes the &lt;label&gt;&lt;span&gt;Attribute Label&lt;/span&gt;&lt;/label&gt; that comes after a checked &lt;input id=&quot;filter_left_color_1234&quot;&gt; element.
&lt;li class=&quot;m-selected-ln-item&quot;&gt;
&lt;input type=&quot;checkbox&quot; id=&quot;filter_left_color_1234&quot; value=&quot;1000&quot; checked=&quot;checked&quot; onclick=&quot;setLocation('http://www.url.com');&quot;&gt;
&lt;label for=&quot;filter_left_color_1234&quot;&gt;&lt;span class=&quot;m-selected-checkbox-item&quot; title=&quot;Black&quot;&gt;Black&lt;/span&gt;&lt;/label&gt;
&lt;/li&gt;

<li class="m-selected-ln-item">
<input type="checkbox" id="filter_left_color_1234" value="1000" checked="checked" onclick="setLocation('http://www.url.com');">
<label for="filter_left_color_1234"><span class="m-selected-checkbox-item" title="Black">Black</span></label>
</li>

You will probably need to change "filter_left_color" to reflect your attribute name (like filter_left_kleur or filter_left_farbe) if you run a non-english store.

Expand Down

0 comments on commit 3e5a834

Please sign in to comment.