× 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 años 4 meses antes #9781 por 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?

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

4 años 4 meses antes #9782 por Søren Beck Jensen
Respuesta de Søren Beck Jensen sobre el tema 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
El siguiente usuario dijo gracias: FULLSTACK DEV

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

4 años 4 meses antes #9783 por FULLSTACK DEV
Respuesta de FULLSTACK DEV sobre el tema How to retrieve config param from the front end.
That did the trick! You are awesome. Thank you so much!
El siguiente usuario dijo gracias: Søren Beck Jensen

Por favor, Identificarse o Crear cuenta para unirse a la conversación.

Tiempo de carga de la página: 0.050 segundos
Gracias a Foro Kunena

Utilizamos cookies propias y de terceros para mejorar nuestros servicios y mostrarle publicidad relacionada con sus preferencias mediante el análisis de sus hábitos de navegación. Si continua navegando, consideramos que acepta su uso.