TOPIC:

Payment gateways 2 years 9 months ago #246496

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 159
  • Thanks: 1
Thanks Markus - that's great.

I put it in the before form but the emails are still going out automatically on submit.
$this->execPieceByName('ff_InitLib'); //Include BreezingForms Library

// switch off auto emails until payment processed or enqueued emails are  sent manually
$this->sendNotificationAfterPayment = true;

// Polipay response/nudge processor
if( JRequest::getVar('poli_reply', '') == 'true'  ){
....

?

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

Last edit: Post by Rokhi.

Payment gateways 2 years 9 months ago #246525

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Posts: 10544
  • Thanks: 864
Hi,

yeah, I missed that it is resetted when the submit starts.
Please download, unzip and copy the file attached to /components/com_breezingforms/

Then instead of
$this->sendNotificationAfterPayment = true;

use
$this->sendNotificationAfterPaymentFromPiece = true;

Then please let me know if that works for you so I can keep it for the next update.

Regards,
Markus

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

Payment gateways 2 years 9 months ago #246560

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 159
  • Thanks: 1
I'm not seeing an attachment. Maybe I'm looking in the wrong place??

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

Payment gateways 2 years 9 months ago #246605

  • TheMuffinMan's Avatar
  • TheMuffinMan
  • Offline
  • Administrator
  • Administrator
  • Super Users
  • Posts: 10544
  • Thanks: 864
Sorry!

Try now please.

File Attachment:

File Name: facileform...12-2.zip
File Size:62 KB
Attachments:

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

Last edit: Post by TheMuffinMan.

Payment gateways 2 years 9 months ago #246631

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 159
  • Thanks: 1
No, that did not seem to work.
I put facileforms.process.php in /components/com_breezingforms, replacing the file there and set the var, but the emails still go as soon as the submit is initiated.
$this->execPieceByName('ff_InitLib'); //Include BreezingForms Library

// switch off auto emails until payment processed. Enqueued emails are sent manually
$this->sendNotificationAfterPaymentFromPiece= true;

$user = JFactory::getUser();
$formId = $this->form_id; // is this the correct var to query? it returns ff_form7


// PoliPay response/nudge processor
if( JRequest::getVar('poli_reply', '') == 'true'  ){

require_once(JPATH_SITE . '/administrator/components/com_breezingforms/libraries/crosstec/functions/helpers.php');

    $recordId= JRequest::getInt('record_id', 0) ;

    if(JRequest::getVar('poli_success', '') == 'true'){

        bf_sendNotificationByPaymentCache($formId,$recordId,'admin');							
        bf_sendNotificationByPaymentCache($formId,$recordId,'mailback');

        ff_redirect('/pay-success');

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

Last edit: Post by Rokhi. Reason: add current code state

Payment gateways 2 years 9 months ago #246848

  • Topic Author
  • Rokhi
  • Offline
  • Senior Member
  • Senior Member
  • Registered
  • Posts: 159
  • Thanks: 1
Hi
Can you tell me where that var (sendNotificationAfterPaymentFromPiece) is set/reset?
I set it to true in before form then tried testing it in ff.process.php.sendEmailNotification and it's set off there. I see it's initialised to false in ff.process.php. If I initialise to true, the emails are held in the cache but I doubt that is helpful information because if I don't initialise at all it's still not set when it's tested in sendEmailNotification.

I have a deadline that's coming up fast. any way we could get some info on this?

thanks folks.

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

Time to create page: 0.063 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!