I want to print the location of the item a user is browsing now, is there any function for this?
<?php echo osc_item_url(); ?>
<?php echo osc_item_url(); ?>
That would only return the item url, i would need something like <?php echo osc_item_location_url(); ?>
What do you mean "item location url"? To get item location you can use osc_item_country(), osc_item_region(), osc_item_city() etc.
Available for custom Osclass development. www.defected.dev
Yes maybe i didn't express myself correctly, i mean the location search url, ie city of the item is London, i want to make it clickable and when a user clicks on it will go to the search page of this city. Something like
http://localhost/search/sOrder,dt_pub_date/iOrderType,desc/country,GB/region,1/city,1
Ok, that makes more sense. Try this.
<?php echo osc_search_url(array('sCountry'=> osc_item_country_code(), 'sRegion' => osc_item_region_id(), 'sCity' => osc_item_city_id())); ?>
Available for custom Osclass development. www.defected.dev
Ok, that makes more sense. Try this.
<?php echo osc_search_url(array('sCountry'=> osc_item_country_code(), 'sRegion' => osc_item_region_id(), 'sCity' => osc_item_city_id())); ?>
Thank you, that's exactly what i needed