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

Luka

  • ***
  • 36 posts
Attributes plugin dose not show in premium ads
« on: December 13, 2022, 09:22:50 AM »
hello, the loop-single-premium.php file is responsible for displaying premium ads on the main page and formatting. I want to add an element from the Attributes plugin, but it is not displayed.  what is the reason please help

*

Luka

  • ***
  • 36 posts
Re: Attributes plugin dose not show in premium ads
« Reply #1 on: December 13, 2022, 09:27:52 AM »
add element in this format
<?php if(function_exists('atr_show_attribute')) { echo atr_show_attribute(16); } ?>

*

Luka

  • ***
  • 36 posts
Re: Attributes plugin dose not show in premium ads
« Reply #2 on: December 15, 2022, 11:20:43 AM »
can you help me?

*

MB Themes

Re: Attributes plugin dose not show in premium ads
« Reply #3 on: December 15, 2022, 02:06:37 PM »
@Luka
You must make sure that this function get's osc_premium() instead of osc_item(), because osc_item() is not available for premium listings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Luka

  • ***
  • 36 posts
Re: Attributes plugin dose not show in premium ads
« Reply #4 on: December 15, 2022, 02:37:35 PM »
please tell me how to solve this problem

Marked as best answer by frosticek on December 15, 2022, 05:34:57 PM
*

MB Themes

Re: Attributes plugin dose not show in premium ads
« Reply #5 on: December 15, 2022, 02:51:54 PM »
@Luka
Try this:
Code: [Select]
<?php
View
::newInstance()->_exportVariableToView('item'osc_premium());
if(
function_exists('atr_show_attribute')) {
  echo 
atr_show_attribute(16); 
}
?>

  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Luka

  • ***
  • 36 posts
Re: Attributes plugin dose not show in premium ads
« Reply #6 on: December 15, 2022, 04:46:02 PM »
Thank you very much it worked.