*

developGr

  • ***
  • 39 posts
show only the email address
« on: December 03, 2020, 11:29:49 PM »
With the "Attributes Plugin" that i bought, i have created an EMAIL Attributes. This is the code that i have now to display this Attribute:

<?php if(function_exists('atr_show_attribute')) { echo atr_show_attribute(9); } ?>

listing example that shows the email attribute:


if i want to display only the email "[email protected]"  what code i must put for that attribute?

Marked as best answer by frosticek on December 05, 2020, 07:15:37 PM
*

MB Themes

Re: show only the email address
« Reply #1 on: December 04, 2020, 07:31:56 AM »
@developerGr
Try this:
Code: [Select]
  $value_row_all = ModelATR::newInstance()->getAllItemAttributeValues(osc_item_id());
  $value_row = $value_row_all[9];
  echo $value_row['s_value'];

Or use one without label:
Code: [Select]
atr_show_attribute(9, false)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

developGr

  • ***
  • 39 posts
Re: show only the email address
« Reply #2 on: December 04, 2020, 09:30:44 PM »
Worked!  ;)

*

MB Themes

Re: show only the email address
« Reply #3 on: December 05, 2020, 07:15:42 PM »
Great!
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots