diff --git a/README.md b/README.md index b62bbdb..33eb907 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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: - - active_swatch_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> 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 that comes after a checked element. -
  • - - -
  • +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> 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.