*

mwindey

  • *****
  • 477 posts
Re: Use category description in category search results
« Reply #15 on: June 28, 2022, 12:17:56 PM »
@webcity

Using both is not a problem because I do exactly the same with the code. The output location comes after you have searched in the search field for a product in a certain city or region with advanced search.
I don't know what exactly you expect when the location should be shown?
It seems to me that displaying articles in a category in a certain region is only possible after a search? or am i wrong? :-\

*

necunoscut

  • **
  • 5 posts
Re: Use category description in category search results
« Reply #16 on: January 12, 2023, 04:01:21 PM »
I also added the description in bottom page of the categories.


I would like to add unique text description to regions and cities. Any idea how to do add description in this area and then show it to regions and cities pages? The problem after this is that description is not shown only on cities and regions specific page, but also on each category of regions and cities. How to be visible only on main regions and cities?
« Last Edit: January 12, 2023, 04:20:42 PM by necunoscut »

*

MB Themes

Re: Use category description in category search results
« Reply #17 on: January 16, 2023, 03:27:19 PM »
@necunoscut
Such setup is not possible without custom coding.
You can I.e. create array for each region id with descriptions:
Code: [Select]
$regdesc = array(1 => 'Hello word', 2 => 'Hello city', ...);
and then, if search region is present, use it:
Code: [Select]
<?php echo @$regdesc[osc_search_region()]; ?>
.. need probably bit of testing, but it's simplest way
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots