Skip to content

Instantly share code, notes, and snippets.

View kylewest's full-sized avatar

Kyle West kylewest

View GitHub Profile
'archive' \
'fasd' \
'git' \
'syntax-highlighting' \
'history-substring-search' \
'osx' \
'ruby' \
<h2>Select A Vehicle</h2>
<iframe frameborder="0" height="125" scrolling="no" src="http://shop.tapautoparts.com/VehiclePicker.aspx" style="width: 220px; height: 125px;" width="220"></iframe>
<!-- NOTE: You can change the dimensions to whatever you like; however, the height should be around 125px since that is the approximate height of the picker. Shorter you wouldn't be able to see the "Select Vehicle" button. Taller and you will take up too much screen real estate. -->
<script type="text/javascript">
$(document).ready(function(){
$("<br><a href='/'>Try Our Buy Now, Pay Later</a>").insertAfter(".addtocartbutton");
});
</script>
<style type="text/css">
#branding #logo {padding:0;margin-left:-10px;}
</style>
$(document).ready(function(){
if ( /.*\/innovate_motorsports\/.*/i.test(location.href) ) {
// put your code here.
}
});
<script type="text/javascript">
$(document).ready(function() {
var yourPriceLabel = $("#ctl00_MainContentPlaceHolder_YourPriceLabel");
var msrpPriceLabel = $("#ctl00_MainContentPlaceHolder_MsrpLabel");
if (yourPriceLabel.length && msrpPriceLabel.length) {
var itemPrice = parseFloat(yourPriceLabel.text().replace(/[^\d\.]+/g,""));
var msrpPrice = parseFloat(msrpPriceLabel.text().replace(/[^\d\.]+/g,""));
console.log(itemPrice);
if (itemPrice != NaN && msrpPrice != NaN) {
if (itemPrice >= msrpPrice) {
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<script type="text/javascript">
var intercomSettings = {
app_id: 'APP_ID',
email: 'USER_EMAIL',
user_hash: '<%= Your.App.Helpers.IntercomHelper.HMACSHA256HashString("USER_EMAIL", "KEY") %>'
};
</script>
~ $> curl -I boosted-racing.com
HTTP/1.1 301 Moved Permanently
Content-Length: 153
Content-Type: text/html; charset=UTF-8
Location: http://www.boosted-racing.com/
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Fri, 26 Apr 2013 14:35:51 GMT

We just released a few simple enhancements that are sure to help your customers find the parts they are looking for as quickly as possible.

More chances to select a vehicle

When your customer makes it to a product page without selecting a vehicle, your site will prompt him to select his car.

More Chances To Pick A Vehicle

Once, he does we'll send him right to the part he needs or show a list of available parts when there is more than one.

<script type="text/javascript">
$(document).ready(function(){
// change innovate_motorsports to brand from URL
if ( /.*\/megan_racing_coilovers_track_series\/.*/i.test(location.href) ) {
$("#ctl00_MainContentPlaceHolder_YourPriceDiv").text("Add to Cart for Price");
}
});
</script>