Skip to content

Instantly share code, notes, and snippets.

@RobertCalise
RobertCalise / README.md
Created June 13, 2017 17:26
Grab a URL parameter (hop) and insert it into an Infusionsoft web form hidden field

The Javascript in this gist can be used to grab a parameter (in this example, called "hop") from the URL's query string and place that value into a hidden form field (in this example, with an id of #inf_field_FieldName.)

There are two assumptions in this example, so you should alter them for your own use case.

Assumption 1: the URL parameter you're getting is called "hop".

For example, if you are accessing this page at http://example.com/?hop=something, then this example would retrieve a value of "something". If your URL parameter is called something other than "hop", change it on Line 8 of the example script from

document.getElementById('inf_field_FieldName').value = getUrlParameter('hop');

@RobertCalise
RobertCalise / stripe-pre-4.1.14-styles.txt
Created January 16, 2019 15:35
Stripe Pre 4.1.14 Styles
#add_payment_method .woocommerce-PaymentMethod label { margin-left: 10px; }
#add_payment_method li { clear: right; }
#add_payment_method #wc-stripe_sepa-form { padding: 10px; }
form#order_review #payment_method_stripe { margin: 25px 0 25px 25px; }
form#order_review #payment_method_stripe_sepa { margin: 25px 0 25px 25px; }
form#order_review .payment_methods label { margin-left: 10px; }
form#order_review li { clear: right; }
form#order_review #wc-stripe_sepa-form { padding: 10px; }
.wc_payment_method .payment_box label { display: inline; }
@RobertCalise
RobertCalise / README.md
Created June 16, 2020 15:25
Infusionsoft Custom Domain Affiliate Redirect Script

How to use this script

If you would like your Infusionsoft affiliate links to look like this:

https://yourdomain.com/refer/?w=ABC&p=123&a=XYZ

Create a directory on your website (for the example above, refer). In that directory, copy the code provided in this gist into a file called index.php.