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

Yuri

  • ****
  • 105 posts
  • Yriu
How do I add another 20 Hot Ads
« on: January 26, 2016, 06:59:03 PM »
 ???In the picture you can see only 10 pieces and I need to be increased to 20. The question which I dig, and which side of the file?

[attachment deleted by admin]
The world is not without good people.

*

MB Themes

Re: How do I add another 20 Hot Ads
« Reply #1 on: January 26, 2016, 09:05:53 PM »
@emma233
Go to file:
oc-content/themes/patricia/main.php

Find line:
Code: [Select]
<?php while( osc_has_custom_items() && $c_i 10) { ?>
Replace number 10 with your own number.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

max

Re: How do I add another 20 Hot Ads
« Reply #2 on: February 03, 2016, 01:25:18 PM »
@emma233
Go to file:
oc-content/themes/patricia/main.php

Find line:
Code: [Select]
<?php while( osc_has_custom_items() && $c_i 10) { ?>
Replace number 10 with your own number.


i have insert 11, but nothing.... :o

*

MB Themes

Re: How do I add another 20 Hot Ads
« Reply #3 on: February 03, 2016, 01:46:25 PM »
@max
Then
- you do not have at least 11 listings in that category
- you did not do it
- osclass query does not pull more than 10 listings
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

max

Re: How do I add another 20 Hot Ads
« Reply #4 on: February 03, 2016, 03:44:07 PM »
@max
Then
- you do not have at least 11 listings in that category
- you did not do it
- osclass query does not pull more than 10 listings

a it's ok
I thought the main menu categories
but still takes 10
thanks
« Last Edit: February 03, 2016, 05:29:13 PM by max »

Marked as best answer by emma233 on February 13, 2016, 11:52:12 AM
*

MB Themes

Re: How do I add another 20 Hot Ads
« Reply #5 on: February 03, 2016, 03:45:59 PM »
@max
There has been no word about main categories.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yuri

  • ****
  • 105 posts
  • Yriu
Re: How do I add another 20 Hot Ads
« Reply #6 on: February 13, 2016, 12:03:22 PM »
Hi, I try many times and save the changes to 20, tested on different browsers, but for some reason it was 10
The world is not without good people.

*

MB Themes

Re: How do I add another 20 Hot Ads
« Reply #7 on: February 13, 2016, 03:02:11 PM »
@emma233
It is also required to change above function from:
Code: [Select]
              <?php osc_query_item(array("category" => $cat_id)); ?>
to:
Code: [Select]
              <?php osc_query_item(array("category" => $cat_id"results_per_page" => 20)); ?>
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Yuri

  • ****
  • 105 posts
  • Yriu
Re: How do I add another 20 Hot Ads
« Reply #8 on: February 13, 2016, 04:07:32 PM »
Thank you, all I got
The world is not without good people.