This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This script (courtesy of Tyler Garns) passes URL parameters into order forms. The promo code will be | |
automatically "submitted" Just remove all the other fields that you don't need. | |
*/ | |
<script> | |
jQuery(document).ready(function() { | |
function getUrlVar(key){ | |
var result = new RegExp(key + "=([^&]*)", "i").exec(window.location.search); | |
if (result != null) { |