Joseph

Help needed with STORES shortcode

Hi guys, I'm listing the stores on my homepage - limited to 8 How would I amend the below code so that it shows most popular and newest stores?


 <div class="tabstyle1"> 
    
      <ul class="nav nav-tabs hidden-xs" role="tablist">
      
      <li class="pull-right"><a href="<?php echo $GLOBALS['CORE_THEME']['store']['add'] ; ?>" class="btn btn-success"><?php echo $CORE->_e(array('homepage','4')); ?></a></li>
      
        <li role="presentation" class="active"><a href="#t1" aria-controls="t1" role="tab" data-toggle="tab">Popular Stores</a></li>
        
        
        <li role="presentation"><a href="#t3" aria-controls="t3" role="tab" data-toggle="tab">New Stores</a></li>
    
      
      </ul>
    
    </div>
    
    <?php $GLOBALS['item_class_size'] = "col-md-3 col-sm-4 col-xs-12 "; ?> 
    <div class="tab-content" style="margin-top:20px;">
      
        <div role="tabpanel" class="tab-pane active" id="t1">   
        
            <div class="row wlt_search_results grid_style" >
            <?php echo do_shortcode('[STORES limit=8 custom="new"]'); ?> 
            </div>
        
        </div>
 
        <div role="tabpanel" class="tab-pane" id="t3">   
        
            <div class="row wlt_search_results grid_style">
            <?php echo do_shortcode('[STORES limit=8 custom="random"]'); ?> 
			   
            </div>
        
        </div>
 
    
    </div>

Created: May 21, 2016 at 6:06 pm
  • In: Coupon Theme
  • Started by: Joseph
  • 3 members left 4 comments
  • Last reply from: Josh

  • Hemanta Chakladar
    Hemanta Chakladar
    May 21, 2016 at 6:56 pm

    What you meant by most popular ? Whats the parameter to measure ?

    For newest stores you can use orderby="ID" and order="desc"


  • Joseph
    May 21, 2016 at 8:30 pm

    Most viewed or clicked stores would be ideal?

    Alternatively – how could you show them randomly?

  • Hemanta Chakladar
    Hemanta Chakladar
    May 22, 2016 at 5:58 am

    You are not tracking the most viewed stores or clicked stores. So, you can’t use this feature.

    For random,I think custom="random" this is shoing stores randomly.


  • Josh
    May 23, 2016 at 3:40 pm

    Hello Joseph,
    I don’t think it’s possible to do this will need some customization to achieve this


Viewing 5 posts - 1 through 5 (of 5 total)