Accessing Fabrik Field Data in a Session variable

I am using a Fabrik form to calculate a product price and want the calculated value to be available as a session variable that I can pass to a Hikashop shopping cart. Hikashop has a a custom price plugin that can accept the variable but I'm looking for some help on how to declare the variable value.
 
I'm not sure if this will answer your question, but prior to the value of a calculation element being written to the DB table, you can "call" it by using "_raw" after the element name. It would look something like this; tablename___elementname_raw.
 
Yes. The value is calculated and put in the form dynamically (Ajax) and is then required in the session on submitting the form.
 
I used this recently on a project.
I use a PHP form plugin to do that.
You have to retreive the data of your calc element and put it in a variable, say $value, then initiate the joomla session
Code:
$session = JFactory::getSession();
You then put $value in the session
Code:
$session->set( 'value', $value );

You are then able to retreive it later using
Code:
$session = JFactory::getSession();
$session->get( 'value' );
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top