*

unclenath

  • **
  • 6 posts
Latest and Premium ads on Homepage
« on: April 15, 2016, 01:40:13 AM »
Hi,

Kindly advise how to achieve both latest and premium ads on homepage.

I know about choosing either both I really need them on my homepage.

Thanks in anticipation.

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #1 on: April 15, 2016, 06:47:14 AM »
@uncleanth
We do not have such code, you need to duplicate code in main.php
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

driione

  • ***
  • 21 posts
Re: Latest and Premium ads on Homepage
« Reply #2 on: April 21, 2016, 04:41:36 PM »
Hi frosticek,

Excuse me take your time but where i can find this code premium ads

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #3 on: April 21, 2016, 04:57:46 PM »
@driione
On main.php there is block of code starting with (do not want to share it):
Code: [Select]
<!-- LATEST LISTINGS -->
Copy it and paste above this block and remove from there line:
Code: [Select]
<?php View::newInstance()->_exportVariableToView('latestItems'zara_random_items()); ?>
It should show default osclass latest items. Then in second block you can go to theme settings and set to show premiums only.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

driione

  • ***
  • 21 posts
Re: Latest and Premium ads on Homepage
« Reply #4 on: April 21, 2016, 06:20:38 PM »
merci frosticek :D

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #5 on: April 21, 2016, 06:57:26 PM »
@driione
Welcome
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unclenath

  • **
  • 6 posts
Re: Latest and Premium ads on Homepage
« Reply #6 on: May 04, 2016, 06:08:58 PM »
@frosticek
Thanks, It worked although I would have loved to have it at the top before the Latest Item.

Any idea?

Thanks

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #7 on: May 04, 2016, 06:30:20 PM »
@unclenath
Edit main.php, move blocks in order as you want.
Backup this file before you modify something and then try that.
Anyway, you might need to somehow store latest items array in PHP before.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unclenath

  • **
  • 6 posts
Re: Latest and Premium ads on Homepage
« Reply #8 on: May 04, 2016, 07:37:17 PM »
@frosticek

Kindly work me through these.

Thanks

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #9 on: May 04, 2016, 07:40:15 PM »
@unclenath
It is custom development. If you want to modify functionality of theme in deep, you should be able to do it.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unclenath

  • **
  • 6 posts
Re: Latest and Premium ads on Homepage
« Reply #10 on: May 04, 2016, 08:27:09 PM »
@frosticek,

If I am guided, I should.

For now still trying my hands and wouldn't want to mess with anything I am not certain about.

If this is much you can go, its fine.

Thanks

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #11 on: May 04, 2016, 08:41:36 PM »
@unclenath
You already know which file to edit, what code to work with.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

unclenath

  • **
  • 6 posts
Re: Latest and Premium ads on Homepage
« Reply #12 on: May 04, 2016, 08:53:39 PM »
@unclenath
Edit main.php, move blocks in order as you want.
Backup this file before you modify something and then try that.
Anyway, you might need to somehow store latest items array in PHP before.
[/color]

I dont know what the shaded line above means.

*

MB Themes

Re: Latest and Premium ads on Homepage
« Reply #13 on: May 04, 2016, 09:16:59 PM »
@unclenath
It is development.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots