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 96346ba commit 40af567
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ When upgrading from versions before 0.3, please remove app/code/local/wigman and

0.4.2 Release notes:
* Fixed image constraint in grid/list mode.
* Added support for custom layered navigation modules (like ManaDev). point #4 below for info
* Added support for custom layered navigation modules (like ManaDev). See point #4 below for detailed info.

0.4.1 Release notes:
* Bug fix when no store-specific labels are defined.
Expand Down Expand Up @@ -79,17 +79,18 @@ How to change the jQuery selector:
Copy the file /app/design/frontend/base/default/layout/wigman_ajaxswatches.xml to your custom theme -> /app/design/frontend/[YOUR DESIGN PACKAGE]/[YOUR THEME]/layout/wigman_ajaxswatches.xml

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>

&lt;block type=&quot;core/template&quot; name=&quot;baseurl&quot; template=&quot;wigman/ajaxswatches/baseurl.phtml&quot;&gt;
&lt;action method=&quot;setData&quot;&gt;&lt;name&gt;active_swatch_selector&lt;/name&gt;&lt;value&gt;&lt;![CDATA[.swatch-current .value img]]&gt;&lt;/value&gt;&lt;/action&gt;
&lt;/block&gt;

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 <label><span>Attribute Label</span></label> that comes after a checked <input id="filter_left_color_1234"> element.
<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>
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;

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 40af567

Please sign in to comment.