Advertisement:

Author Topic: Show premium items only in first page of search page  (Read 450 times)

behzadpz

  • Newbie
  • *
  • Posts: 4
  • osclass 3.7.4
Show premium items only in first page of search page
« on: November 30, 2018, 08:38:10 pm »
Hi!
good day
I have a problem with premium items in osclass 3.7.4

I need to show premium items only on the first page of search page (search.php) and not displayed on next pages (that are available with pagination)
I want to be displayed just above the first page of search page.

can someone help me?
Thanks a lot

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Show premium items only in first page of search page
« Reply #1 on: December 01, 2018, 06:00:56 pm »
Hi, just a suggestion, use my free plugin "Automatic modal advertising" on market. Open subscribe.php file, the initial code have a conditional to appears modal window only in one page results and avoid all other pages on search. Don't know if exists any other way to do it, but for me results well on this plugin.

Change the $iPage variable to value 1 :

$iPage = getPreference('ama-ipage-alert-form','automatic_modal_advertising');

If you feel some difficult to do it on your theme, I can try help you with that. Try a way to contact me, or from market, the plugin is free, so I think you can open a support ticket after your free download.

Regards

behzadpz

  • Newbie
  • *
  • Posts: 4
  • osclass 3.7.4
Re: Show premium items only in first page of search page
« Reply #2 on: December 01, 2018, 06:41:25 pm »
Thanks for your reply FOG

But i think your solution isn't related to my problem and will not solve it,

i have a customized bender theme. you know if you have some premium items, they will show on top of all other items in search page (result of search.php) and when you go to next page using pagination buttons, premium items will show on top of next page again and again.

exactly this is my problem, i want to show premium items only on top of first page of search page, not on next pages.

Thanks

fog

  • Hero Member
  • *****
  • Posts: 1062
Re: Show premium items only in first page of search page
« Reply #3 on: December 01, 2018, 07:59:31 pm »
Well, I understood that very well since beginning. That code condition will display only the content you will need on first page of search results and not on the rest of pages. No matters of type of content you need display on first page of search results. Works for me on my plugin.

Regards