Jump to content

Mohit

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Mohit's Achievements

Newbie

Newbie (2/6)

1

Reputation

  1. Thanks Alot @BitPoet. It surely worked. One more question I have all my form data in an array. I just want to submit my $form and let it do all its functionality that I have assigned in backend with just API. I have saved its entries with $forms->saveEntry( $stripeBillDataArr,$form); The entries saving part is surely working fine but the form is not sending mail as it was configured to send mail to admin from the backend panel. I have tried many different functions as well but nothing is working for me. Any suggestions?
  2. Hi Team I am trying to fetch the label of form fields with this api function. $form = $forms->get('shop-payment-stripe'); $fieldDefinitions = $form->fields; If I try to print $fieldDefinitions it shows empty. Also, if I print $form variable it is surely returning ProcessWire\FormBuilderForm Object. Any suggestions how to get the form field labels. (Field names are surely accessible from form)
  3. I mean how the stripe webhook is handled after success payment for mail and saving data in backend. I have one more form which does not have stripe. It is just a contact form. It saves all the information and send mail as well on my htpassword as well. What difference does my htpassword make for stripe form and normal form?
  4. Thanks Mate! It worked. Actually I had htpassword ON so it was not saving information after stripe success neither was sending mail. I removed that and it worked for both mail and entries. Still not sure what's the logic behind that. Would be great to know that also.
  5. Hi Team I am using FormBuilder with Stripe. I wanted to save my form entries in the DB and also want to fire a mail with the form data. The issue is when the payment is successful the number of entries are incremented by 1(currently there are 49 and they keep incrementing if payment is successful) but when I click on entries it shows No entries to display like in below image. I have enabled the option to save entries to database and send email to administrator. Administrator email is also added as well. No email is firing as well. I have used this hook as well but still no luck $wire->addHookAfter('FormBuilderProcessorStripe::chargeSuccess', function($e) { $entry = $e->arguments(0); // array of data for submitted form entry $email = 'xxx@gmail.com'; // you had a field named 'email' with email addr $secretCode = '123abcdef'; wireMail() ->to($email) ->subject("Your order") ->body("Thank you for your order, your secret code is: $secretCode") ->send(); }); Any suggestions on both the issues?
  6. Thanks mate! It worked Sorry for the late reply
  7. Hi My Procache is not working on just one template. I have checked the template in the backend. I have enabled it for all the templates including 'Shop-detail' on which it is not minifying anything. I am using ProCache version 4.0.3. I have tried turning on the debug mode for ProCache as well. It is showing debugging details at the end of all the pages except on just shop-detail pages. I have even tried removing 90% of my shop-detail page code just to check if this could be the issue of conditional rendering but that is not working as well. Sorry, can not share the live site link right away due to come security concerns. Any suggestions ?
×
×
  • Create New...