Does anybody know how to make zurb abide validate form only if another input is checked? I have a form with billing and shipping inputs and don't want my customers enter their information twice, so I have a checkbox that asks if their shipping information is the same as the billing. But abide checks all inputs if they have an attribute "required". Does anybody know a way to make it disregard or remove that attribute if a checkbox is checked?
Thank you!
Related
i am struggling to find how to enable the VAT field in Magento 2.
I am not talking about Tax Rules or percentages, i am just not able to display the input field related to VAT during checkout.
If i remember well in Magento 1.* it was enabled by default.
Also is there a fast way to enable the vat field, just in the case someone enter some text in the "Company Name" field?
Thank you very much to whoever will help me out.
Basically to enable the field you just need to set "Stores -> Configuration -> Customer Configuration -> Show VAT Number at Frontend" to "Yes".
I am developing software that will allow a user to create forms based on draggable controls, in the fashion of, say, an online survey. This is how it's supposed to go:
User A makes a form.
User A sends said form to User B.
User B fills out and submits the form.
Here's what I need: I have a page that allows User A to set up a PayPal payment for each entry into a form. This would require User B to successfully pay with PayPal before he could submit his entry. I do not want User A to have to do anything more than specify the amount/entry and his PayPal email.
My problem comes in after User B has paid for the entry and decides to close the tab instead of returning to the store. This doesn't allow me to submit the form. How can I create a full-proof method to assure this doesn't happen?
Things to keep in mind: Assume User A does not have IPN/Auto-Return enabled and potentially isn't a business account.
If you are using PayPal standard there is no fool-proof way to do this since the user leaves your site to do the transaction. PayPal has other offerings that claim to allow this, but they may expose you to PCI-DSS compliance issues.
A better choice would be to use a system like Stripe, where the user never really leaves your site.
So, I've found that if you use the notify_url html variable, the merchant does not need to enable IPN. Therefore allowing me to tell PayPal to always post to my server.
I want to get paypal button with default amount value by user email ID. So it will automatically use User Email ID registered with the website.
If I understand you correctly, you just need to make sure you're using a non-hosted button from PayPal so that you can see the values and dynamically set the business parameter based on the logged in user.
There are disadvantages to this, though, as people could see the form code, copy it, adjust it, and submit bogus values to your system. You could use IPN to help catch false orders, but it can be a hassle.
I would recommend using the Express Checkout API if you're familiar with web services. This ia a nice and secure way of doing what you need.
From this article on CodeGuru about PayPal IPN, I see there are two fields, payer_email and payer_id, that can be used to identify the user. Is there anything else I'm missing? Do you use these fields to identify the user or how do you do it?
Thanks
I've used the 'custom' variable to hold the user id in my system. Then, when the ipn notification comes back to my site, I use the value in 'custom' to look up and identify the user when processing the ipn.
Doing this requires the user to be logged in on my site so I know who they are and can add that information into the 'custom' variable for the paypal button.
I have paypal donate button and I wanna send hidden note with it.
How can I add it?
Thanks
PayPal has documentation on advanced donate buttons.
Step 5. could be for you:
Add advanced variables to the HTML
code of your payment button
(optional).
If you are familiar with the HTML
programming and the advanced HTML
variables supported by Website
Payments Standard payment buttons, you
can enter them here. Select the
checkbox, and then enter the variables
in the text box that appears below it.
Enter any advanced HTML variables in
the following, name/value-pair format:
variableName=allowableValue
On a side note, connecting your Forum's user ID with the real name you get from a PayPal donation could be a privacy issue, even a legal problem in some jurisdictions. I'm quite sure it would be one here in Germany, even though the users who donate to you will probably not mind you knowing who they are.