Tagged: Contact Form 7
October 3, 2013 at 2:10 pm #9783gijoemcd99Member
Apologies if you’ve seen this in another location. I posted to the wrong place originally and was advised to post this here.
I’m trying to use eStore within Contact Form-7. And getting hung up.
I’ve replaced the Form-7 ‘Submit’ with the Buy Now shortcode – [wp_eStore_buy_now_button id=21] . When selected, the data from the form is sent via email just as it would using the Submit button in Form-7, but the visitor is not redirected to PayPal (as I was hoping).
When placing the short-code on the page after Form-7 is called, the redirect to PayPal works, but no data from the form is sent (as expected).
You can see the page where this happens at [www.voicepix.com/audiosubmission/]
JoeOctober 4, 2013 at 1:13 am #58113
Hi Joe, you can’t have one button do 2 form submissions (one for the contact form 7 and one for the PayPal buy now). HTML forms do not work like that. You can make it so after the contact form 7 plugin’s form is submitted, you have some custom code that gets executed which does another submission for the PayPal buy now button.
I am going to suggest another method that my actually be easier and it won’t require any code tweaks.
We are going after a setup like the following:
The users come to the landing page, submit the form, then see a message that tells them to click a link to make a payment.
Here is how to do that:
1) Use the contact form as usual, The contact form will let you specify a custom “Thank You” message that gets shown to the user after they submit the contact form.
2) In that custom message you can put a buy now text link. The following post explains how estore lets you create a buy now link for a product:
Place the estore buy now shortcode below the standard contact form. Then instruct your visitors to submit the form then click on the buy now button after that.April 21, 2014 at 8:13 pm #58114
Hi Admin/Key Master
I have a similar problem which I have done using Contact Form 7 as you suggest.
What I am doing is getting a jpeg file sent via the contact form then coming back to the ‘buy now’ stage.
I have a box for ‘collect customer info’ active and I wonder is it possible to auto insert the .jpeg name from the contact form? (there has been a browse file to attach the relevant file)as this gives the file name on the receipt and email.
This would simplify the customer input and give better accuracy. (see maxi-pix.co.uk for screen examples)
Thanks for your help
MartinApril 22, 2014 at 5:18 am #58115
Sorry for not coming back earlier, it has been a very busy week.
I have the contact form just before the buy now section. The browse button for the .jpeg returns the file name and is displayed until submit is activated for the form.
The email successfully sends and attaches the .jpeg. but file name is not available on the ‘buy’ page at this stage.
The details from the browse section are not in the ‘buy’ section of the display and the file name needs re-entering. This is where I would like if possible to bring the ‘browse’ result automatically, especially as other options and file name are brought over to the invoice.
It is possible to copy and paste the file name before the form submit, but I am cautious over asking customers to do this.
Any help would be appreciated.
If you wish to see the process, please go to the website and you can browse and attach a ‘jpeg to an email to us. Of course you can follow this through t the ‘buy’ stage and cancel at any time. (maxi-pix.co.uk)
The rest of the software works just fine which is why I chose it after much searching.May 4, 2014 at 10:12 am #58117
sounds right, but I’m now struggling to get the right bits in the right sequence.
I’ll search the sites for a ready made, ‘on click listener’ script. Unless you have some direction to send me.
MartinMay 6, 2014 at 12:08 am #58119
I don’t know everything about the contact form 7 plugin so not sure about their API and hooks. If you can’t find anything then use the following option and I will try to find something:
- You must be logged in to reply to this topic.