*

pitbull

  • ***
  • 98 posts
I want to display at the item page a link like that: (2 items in city of Los Angeles).
How can i get the number of total items per city ?

Thanx

*

MB Themes

Re: Is there any way to get the number of items per region or per city ?
« Reply #1 on: February 05, 2018, 11:25:36 AM »
In oc-inlcudes / osclass / model ... look into "stats" models
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

pitbull

  • ***
  • 98 posts
Re: Is there any way to get the number of items per region or per city ?
« Reply #2 on: February 05, 2018, 01:29:11 PM »
In oc-inlcudes / osclass / model ... look into "stats" models

Thanks @frosticek for your support and your answers. Worked perfect.

*

siken

  • ****
  • 138 posts
Re: Is there any way to get the number of items per region or per city ?
« Reply #3 on: February 05, 2018, 03:41:54 PM »
look this:

           <select name="sCountry" id="sCountry">
            <option value="">&nbsp;&nbsp;» por países publicados...</option>
            <?php while(osc_has_list_countries()) { ?>
               <option value="<?php echo osc_list_country_name();?>"><?php echo osc_list_country_name();?> <span class="badge">(<?php echo osc_list_country_items();?>)<span/></option>
            <?php } ?>
         </select>
         &nbsp;
         <select name="sRegion" id="sRegion">
            <option value="">&nbsp;&nbsp;» por provincias publicadas...</option>
            <?php while(osc_has_list_regions()) { ?>
               <option value="<?php echo osc_list_region_name();?>"><?php echo osc_list_region_name();?> <span class="badge">(<?php echo osc_list_region_items();?>)<span/></option>
            <?php } ?>
         </select>
         <select name="sCity" id="sCity">
            <option value="">&nbsp;&nbsp;» por ciudades publicadas...</option>
            <?php while(osc_has_list_cities()) { ?>
               <option value="<?php echo osc_list_city_name();?>"><?php echo osc_list_city_name();?> <span class="badge">(<?php echo osc_list_city_items();?>)<span/></option>
            <?php } ?>
         </select>
        </div>