× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

How to retrieve config param from the front end.

pred 4 rokmi 4 mesiacmi #9781 od FULLSTACK DEV
How to retrieve config param from the front end. bolo vytvorené 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?

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 4 rokmi 4 mesiacmi #9782 od Søren Beck Jensen
Odpoveď od Søren Beck Jensen na tému 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:
$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
Nasledujúci užívateľ(ia) povedali ďakujem: FULLSTACK DEV

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 4 rokmi 4 mesiacmi #9783 od FULLSTACK DEV
Odpoveď od FULLSTACK DEV na tému How to retrieve config param from the front end.
That did the trick! You are awesome. Thank you so much!
Nasledujúci užívateľ(ia) povedali ďakujem: Søren Beck Jensen

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

Čas vytvorenia stránky: 0.054 sekúnd
Funguje na Kunena fórum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.