protected function display_listing()
 {
     $type = 'list';
     $inventory_id = NULL;
     // Default template is the loop-all
     self::$template_part = "loop-all";
     self::$template_part .= self::$config->get('display_listing_table') ? '-table' : '';
     // If we're viewing a category, set the template to loop-category
     if (!empty(self::$args['category_id'])) {
         self::$template_part = 'loop-category';
         self::$template_part .= self::$config->get('display_listing_table') ? '-table' : '';
         // If we're viewing a single item, set the template to view a single item
     } else {
         if (!empty(self::$args['inventory_id']) || self::$loop->is_single()) {
             self::$template_part = 'single-item';
             $type = 'single';
             self::$inventory_id = self::$loop->single_id();
         }
     }
     return $this->get_template(self::$template_part . '.php', FALSE, $type);
 }