Hi
i am trying to use this code to show country with regions on the sidebar:
<?php View::newInstance()->_exportVariableToView('list_regions', Search::newInstance()->listRegions('US', '>=', 'region_name ASC') ) ; ?>
<?php if(osc_count_list_regions() > 0) {?>
<div class="box location">
<h3><strong><?php _e("Maqedonia", 'modern'); ?></strong></h3>
<ul>
<?php while(osc_has_list_regions()) { ?>
<li><a href="<?php echo osc_search_url(array('sRegion' => osc_list_region_name()));?>"><?php echo osc_list_region_name();?></a> <em>(<?php echo osc_list_region_items();?>)</em></li>
<?php } ?>
</ul>
</div>
<?php } ?>
It works perfect for showing the regions for the given country on the sidebar.
But my problem is that i have 3 countries and want to show regions for all 3 countries on the sidebar separated from each other.
When i put the code 3 times it still only show the country and region from the first code.
How can i use this code so i can show region from the 3 countries separated?