This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
*

alboy

  • ***
  • 39 posts
Add all categories
« on: May 09, 2020, 01:26:34 PM »
Hello friends!
I want to create a category named " all categories or all listings" that when it is clicked to go to the all listings page or search page!
I know that i have to add a link of search page in inc.category.php but i dont know what code and where to place it.
Can anyone help me with this please?
Regards!

*

MB Themes

Re: Add all categories
« Reply #1 on: May 11, 2020, 08:15:19 AM »
@alboy
Following code should generate URL that takes you to search page (like all categories). You can place it at the end of category list.
Code: [Select]
<?php echo osc_search_url(array('page' => 'search')); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

alboy

  • ***
  • 39 posts
Re: Add all categories
« Reply #2 on: May 11, 2020, 08:26:59 PM »
Thank you for your reply!
Should i place this code in inc.category.php?
And if possible to show me after what should i place it?
Thank you for your great support on this!

Marked as best answer by frosticek on May 13, 2020, 11:18:53 AM
*

MB Themes

Re: Add all categories
« Reply #3 on: May 12, 2020, 07:52:08 AM »
@alboy
You should have something like this after category loop in inc.category.php ended:
Code: [Select]
<a href="<?php echo osc_search_url(array('page' => 'search')); ?>">
  <div>
    <img src="<?php echo osc_base_url(); ?>/oc-content/themes/gamma/images/small_cat/8.png" alt="">
  </div>

  <h3>Jobs</h3>
</a>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

alboy

  • ***
  • 39 posts
Re: Add all categories
« Reply #4 on: May 12, 2020, 10:09:57 PM »
Thank very much , it worked for gamma!
Can i use the same for zara?
Thank you in advance

*

MB Themes

Re: Add all categories
« Reply #5 on: May 13, 2020, 11:18:49 AM »
Logic is same, html elements are probably different.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots