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
requests.post("https://api.mailgun.net/v2/DOMAIN/messages", | |
auth=("api", "key-SECRET"), | |
files={ | |
"attachment[0]": ("FileName1.ext", open(FILE_PATH_1, 'rb')), | |
"attachment[1]": ("FileName2.ext", open(FILE_PATH_2, 'rb')) | |
}, | |
data={"from": "FROM_EMAIL", | |
"to": [TO_EMAIL], | |
"subject": SUBJECT, | |
"html": HTML_CONTENT |
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
<script type="text/javascript"> | |
$('#CheckoutStepShippingAddress').remove(); | |
$(document).ready(function(){ | |
$('.ExpressCheckoutContent').ajaxSuccess(function(){ | |
$('#BillingAddressTypeNew').parent().hide(); | |
$('#ship_to_billing_existing').attr('checked','checked'); | |
$('#ship_to_billing_existing').parent().hide(); | |
$('#ship_to_billing_new').attr('checked','checked'); | |
$('#ship_to_billing_new').parent().hide(); | |
$('.billingButton').attr('value','Proceed'); |
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
<script type="text/javascript"> | |
//<![CDATA[ | |
var price = "%%GLOBAL_ProductPrice%%"; | |
price = price.replace("$",""); | |
price = price.replace(",",""); | |
var pricei = parseInt(price); | |
var qty = $('#qty_').val(); | |
var qtyi = parseFloat(qty); | |
var qtis = 0; |
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
<script type="text/javascript"> | |
var activeCategory = $("#CategoryHeading div h2").text(); | |
$('.SideCategoryListClassic ul li a').each(function() { | |
if($(this).text()== activeCategory) { | |
$(this).css('background-color','#aaa'); | |
} | |
}); | |
</script> |
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
<script type="text/javascript"> | |
var activeCategory = $("#CategoryHeading div h2").text(); | |
$('.SideCategoryListClassic ul li a').each(function() { | |
if($(this).text()== activeCategory) { | |
$(this).css('background-color','#aaa'); | |
} | |
}); |