Last active
December 1, 2015 10:00
-
-
Save stephenwithav/09d99853b17cbd83f374 to your computer and use it in GitHub Desktop.
cac test
This file contains 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
var items=$("a[onclick^='cart.apply']").map(function(i,el){return $(el).attr('onclick')}); | |
var itemids = new Array(items.length) | |
for (var i=0;i<items.length;i++){ var s=new String(items[i]); itemids[i]=s.substring(18,31); } | |
for (var i=0;i<itemids.length;i++){ var url="https://members.cloudatcost.com/index.php?fuse=admin&controller=signup&action=validatecoupon&couponCode="+coupon+"&itemID="+itemids[i]; $.get(url) } |
This file contains 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
for (var i=0;i<numProducts;i++) { $.get("https://members.cloudatcost.com/order.php?step=2&product="+productid) } |
This file contains 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
var productid = '54'; | |
var coupon = ''; | |
var numProducts = 10; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment