×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
How to retrieve config param from the front end.
FULLSTACK DEV
New Member
Posts: 5
4 lata 4 miesiąc temu #9781
przez FULLSTACK DEV
How to retrieve config param from the front end. was created by FULLSTACK DEV
Hello,
I am a premium member but when I tried to send a support ticket, your system rejected my email address because it's not the typical .com or .net. It is a .us email. The error was The email address you are using is not valid.
Anyway, I have made a component with a set of config parameters. How do I retrieve the value of those parameters from the front end?
Example: I have created a wholesale discount field to give specific percentage discount rates to specific usergroups. On the front end, I will create a usergroup filters then apply that discount. However, I am still puzzling as to where those data are stored?
I am a premium member but when I tried to send a support ticket, your system rejected my email address because it's not the typical .com or .net. It is a .us email. The error was The email address you are using is not valid.
Anyway, I have made a component with a set of config parameters. How do I retrieve the value of those parameters from the front end?
Example: I have created a wholesale discount field to give specific percentage discount rates to specific usergroups. On the front end, I will create a usergroup filters then apply that discount. However, I am still puzzling as to where those data are stored?
Proszę Zaloguj lub Zarejestruj się, aby dołączyć do konwersacji.
Søren Beck Jensen
Administrator
Posts: 81
4 lata 4 miesiąc temu #9782
przez Søren Beck Jensen
Søren Beck Jensen
Founder, Component-Creator.com
Replied by Søren Beck Jensen on topic How to retrieve config param from the front end.
Thank you for reporting the bug. That is embarrassing. We use emails on the domain jensen.technology and often run into the same issue which I often curse. We will get this fixed.
To answer your question you need to do something like this:
To answer your question you need to do something like this:
$params = JComponentHelper::getParams('com_componentname'); //Change to your component name
$parameterValue = $params->get('parametername'); //Change to your parameter name
Søren Beck Jensen
Founder, Component-Creator.com
Za tę wiadomość podziękował(a): FULLSTACK DEV
Proszę Zaloguj lub Zarejestruj się, aby dołączyć do konwersacji.
FULLSTACK DEV
New Member
Posts: 5
4 lata 4 miesiąc temu #9783
przez FULLSTACK DEV
Replied by FULLSTACK DEV on topic How to retrieve config param from the front end.
That did the trick! You are awesome. Thank you so much!
Za tę wiadomość podziękował(a): Søren Beck Jensen
Proszę Zaloguj lub Zarejestruj się, aby dołączyć do konwersacji.
Czas generowania strony: 0.049 s.