From cbc4a25b7c2c606c809b55d727883033fad458d3 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 13 Apr 2017 12:47:18 -0400 Subject: [PATCH] changing the manufacturer ids array in the functions.php file to test on dev55 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 --- functions.php | 3 ++- glm-member-db/views/front/members/list.html | 12 +++--------- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/functions.php b/functions.php index c32d70f..649695a 100644 --- a/functions.php +++ b/functions.php @@ -20,7 +20,8 @@ if (!function_exists('glm_quicksite_widget_init')) { } add_filter('manufacturer_ids', function(){ - $ids = [3,11]; +// $ids = [3,11]; + $ids = [165,143,140,178,149,224]; return $ids; }); /** diff --git a/glm-member-db/views/front/members/list.html b/glm-member-db/views/front/members/list.html index 5d2d69e..9873cae 100644 --- a/glm-member-db/views/front/members/list.html +++ b/glm-member-db/views/front/members/list.html @@ -38,17 +38,11 @@ {$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} -- 2.17.1