Re: Is this possible ? Two or more product listing layouts (one per category)?
I have tried several different expressions. Can I get some assistance as to what is wrong with my coding? I need to assign row layout in many locations for example:
-all subcategories of $cPath == 45_1180_108850
-just subcategory 114450
I have tried
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $current_category_id !== 114450) { //worked for single category
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $current_category_id !== 114450 || 2260) { //did not work
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $current_category_id !== 114450 || PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $current_category_id !== 2260) { //worked for 2260 but did not on 114450
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $cPath !== 45_1180_108850_) { //did not work
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $cPath !== 45_1180_108850) { //removed last underscore and it did not work
I've kept the same structure and tried variations depending if it was the row or column statement:
if (PRODUCT_LISTING_LAYOUT_STYLE == 'rows' OR (int) $current_category_id == 2260) {
or
if (PRODUCT_LISTING_LAYOUT_STYLE == 'columns' AND (int) $current_category_id !== 2260) {
ZC 1.5.5
Add ons: - Column/Grid 1.3.8 - Dual pricing 1.7 - ImageHandler3
Bookmarks