206 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
  • United States
mlando says

Anyone know how to call/echo the image radio button VALUE in the theme template from SMOF ?

315 posts
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
  • Attended a Community Meetup
  • Exclusive Author
  • Bought between 10 and 49 items
  • Referred between 10 and 49 users
SyamilMJ says

Hi there,

The image radio button saves the key and not the value;

You’d use it as such:

global $data;

$foo = isset($data['my_radio_button_id']) ? $data['my_radio_button_id'] : '';

if($foo == 'bar') {
    //display stuff
}

In the future please post questions regarding SMOF on its Github issue page.

Cheers

206 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 50 and 99 users
  • Sold between 50 000 and 100 000 dollars
  • United States
mlando says

thank a ton!

by
by
by
by
by
by