TOPIC:

Using Vouchers and Runs to Pay Fees 1 week 4 days ago #252794

  • bruce@brucedill.com's Avatar Topic Author
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 738
  • Karma: 1
  • Thanks: 9

Please Log in or Create an account to join the conversation.

Using Vouchers and Runs to Pay Fees 1 week 4 days ago #252796

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3038
  • Karma: 3
  • Thanks: 260
Hi Bruce,

I will do this later, I am a little crowded now, I hope that this is not a problem for you

Thanks for understanding :)

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Using Vouchers and Runs to Pay Fees 1 week 4 days ago #252799

  • bruce@brucedill.com's Avatar Topic Author
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 738
  • Karma: 1
  • Thanks: 9
No problem. I appreciate the help.

Please Log in or Create an account to join the conversation.

Using Vouchers and Runs to Pay Fees 6 days 7 hours ago #252954

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3038
  • Karma: 3
  • Thanks: 260
Hi Bruce,

when I add code, something is wrong, I can' t save your form (the code is not saved).
Could you please try to add?
Please go to your form->Advanced->More options->Form pieces->Before form->check Custom and put this:
$this->execPieceByName('ff_InitLib');
$db = JFactory::getDBO();
$userid = JFactory::getUser()->id;
$db->setQuery('SELECT value FROM #__fields_values WHERE field_id="1" AND item_id='. $userid);
$cashbalance = $db->loadResult();
ff_setValue('cash_balance', $cashbalance);

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.

Using Vouchers and Runs to Pay Fees 6 days 5 hours ago #252960

  • bruce@brucedill.com's Avatar Topic Author
  • bruce@brucedill.com
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 738
  • Karma: 1
  • Thanks: 9
Morning.

The code saved for me.



Thanks!
Attachments:

Please Log in or Create an account to join the conversation.

Using Vouchers and Runs to Pay Fees 6 days 4 hours ago #252973

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 3038
  • Karma: 3
  • Thanks: 260
Hi,

the code is ok, but I can't save it again hah.
I tried several times click on Save, but the code is not saved :/

Please replace the code in before form with this:
$this->execPieceByName('ff_InitLib');
$db = JFactory::getDBO();
$userid = JFactory::getUser()->id;
$db->setQuery('SELECT value FROM #__fields_values WHERE field_id="1" ');
$cashbalance = $db->loadResult();

$db->setQuery('SELECT value FROM #__fields_values WHERE field_id="2" ');
$runbalance=$db->loadResult(); 
ff_setValue('cash_balance', $cashbalance);
ff_setValue('run_balance', $runbalance);

After that see if cash balance, and run balance is populated

I tested in on my small example on my server, and it works ok

Regards,
Tihana

Please Log in or Create an account to join the conversation.

Last edit: Post by tihana.krivic.
Time to create page: 0.074 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!