changing the manufacturer ids array in the functions.php file to test on dev55
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 13 Apr 2017 16:47:18 +0000 (12:47 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 13 Apr 2017 16:47:18 +0000 (12:47 -0400)
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
glm-member-db/views/front/members/list.html

index c32d70f..649695a 100644 (file)
@@ -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;
 });
 /**
index 5d2d69e..9873cae 100644 (file)
                                 {$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}