Settings
#Settings
**All parameters you have saved in your theme can be retrieved
using our front-end helper**
#Helper
In PHP:
1TplSettings::getSettings('radio_group')
via smarty
1{TplSettings::getSettings('radio_group')}
This information will give you access to the values of settings-type fields.
1return [ 2 'settings_name' => [ 3 'tab' => 'design', 4 'type' => 'color', 5 'default' => '#000000', 6 'label' => 'Change your color' 7 'private' => true // if you want to keep privacy on it 8 ], 9 // ...10 'radio_group' => [11 'tab' => 'TEST',12 'type' => 'radio_group',13 'label' => 'Choose a value',14 'default' => '3',15 'choices' => [16 '1' => 'Radio 1',17 '2' => 'Radio 2',18 '3' => 'Radio 3',19 ]20 ],21]
You can get your settings in javascript by using:
set a private => true
if you do not want to see your settings here.
1prestashop.modules.prettyblocks.theme_settings.your_settings_key
Example: {TplSettings::getSettings('radio_group')}
will return Radio 3
or Radio 1
if the user has chosen the value 1
{TplSettings::getSettings('settings_name')}
will return #000000
or the value defined by the user.