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

How to retrieve config param from the front end.

4 Jahre 4 Monate her #9781 von JS Design
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?

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Jahre 4 Monate her #9782 von Søren Beck Jensen
Søren Beck Jensen antwortete auf 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
Folgende Benutzer bedankten sich: JS Design

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

4 Jahre 4 Monate her #9783 von JS Design
That did the trick! You are awesome. Thank you so much!
Folgende Benutzer bedankten sich: Søren Beck Jensen

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.052 Sekunden
Powered by Kunena Forum

Wir verwenden eigene Cookies und Cookies von Drittanbietern, um Ihr Nutzererlebnis zu verbessern und Ihnen einen optimalen Service zu bieten. Wenn Sie die Website weiter nutzen, gehen wir davon aus, dass Sie mit unserer Cookie-Politik einverstanden sind.