functions.php has a filter that returns an array of category ids, I have one set for local
and one set for dev55, pushing the set for dev55 to see if it works with the current category
structure
}
add_filter('manufacturer_ids', function(){
- $ids = [3,11];
+// $ids = [3,11];
+ $ids = [165,143,140,178,149,224];
return $ids;
});
/**
{$rvTypes = array()}
{$rvManufacturers = array()}
{$brands = array()}
+
{foreach from=$categories item=v}
{if $v.id|in_array:$manufacturer_ids}
-
- {else}
-
- {/if}
- {if $v.parent == 'RV Classes'}
- {$rvTypes[$v.id] = $v}
- {elseif $v.parent == 'RV Manufacturers'}
- {$rvManufacturers[$v.id] = $v}
- {elseif $v.parent == 'Brands'}
+ {$rvManufacturers[$v.id] = $v}
+ {elseif $v.parent_id|in_array:$manufacturer_ids}
{$brands[$v.id] = $v}
{/if}
{/foreach}