I have 2 categories that I do not want to use the quickview. They are 1) ELECTRIC GUITARS & 2)ACOUSTIC GUITARS.
If I use this code for each category individually on the CTGY page, it works.
FOR ELECTRIC GUITARS:
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( g.Category_Code, l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_ID( l.settings:current_category:parent_id, l.settings:parent_category )" />
<mvt:if expr="l.settings:parent_category:name NE 'Electric Guitars'">
<mvt:if expr="l.settings:seo_settings:sl_active">
<span class="button button-square bg-yellow white uppercase quick-view" data-product-link="&mvte:product:link;?show=quickview"><font size="-1">Quick View</font></span>
<mvt:else>
<span class="button button-square bg-yellow white uppercase quick-view" data-product-link="&mvte:product:link;?show=quickview"><font size="-1">Quick View</font></span>
</mvt:if>
</mvt:if>
FOR ACOUSTIC GUITARS:
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( g.Category_Code, l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_ID( l.settings:current_category:parent_id, l.settings:parent_category )" />
<mvt:if expr="l.settings:parent_category:name NE 'Acoustic Guitars'">
<mvt:if expr="l.settings:seo_settings:sl_active">
<span class="button button-square bg-yellow white uppercase quick-view" data-product-link="&mvte:product:link;?show=quickview"><font size="-1">Quick View</font></span>
<mvt:else>
<span class="button button-square bg-yellow white uppercase quick-view" data-product-link="&mvte:product:link;?show=quickview"><font size="-1">Quick View</font></span>
</mvt:if>
</mvt:if>
However, if I want to make one statement this does not work:
FOR ELECTRIC GUITARS & ACOUSTIC GUITARS:
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_Code( g.Category_Code, l.settings:current_category )" />
<mvt:do name="l.result" file="g.Module_Library_DB" value="Category_Load_ID( l.settings:current_category:parent_id, l.settings:parent_category )" />
<mvt:if expr="l.settings:parent_category:name NE 'Electric Guitars' OR l.settings:parent_category:name NE 'Acoustic Guitars'">
<mvt:if expr="l.settings:seo_settings:sl_active">
<span class="button button-square bg-yellow white uppercase quick-view" data-product-link="&mvte:product:link;?show=quickview"><font size="-1">Quick View</font></span>
<mvt:else>
<span class="button button-square bg-yellow white uppercase quick-view" data-product-link="&mvte:product:link;?show=quickview"><font size="-1">Quick View</font></span>
</mvt:if>
</mvt:if>
BTW I know this happens twice on the CTGY page.
So, is there a way to make this work with one statement?
Comment