Skip to content

Instantly share code, notes, and snippets.

View GoingOffRoading's full-sized avatar

Chase Westlye GoingOffRoading

View GitHub Profile
@GoingOffRoading
GoingOffRoading / Move Recs Above Product Description
Created May 28, 2014 19:50
Move Recs Above Product Description
<script type = "text/javascript" >
$(window).on('recommendations.loaded', function(){
jQuery('.product-tabs').before($('#rr_1'));
});
var s = s_gi(s_account);
s.linkTrackVars = "eVar66";
s.trackingServer="stats.build.com";
s.trackingServerSecure="sstats.build.com";
@GoingOffRoading
GoingOffRoading / JustinsJSCSS changess
Created February 3, 2014 19:41
JustinCSSJQueryChanges
<script type="text/javascript">
jQuery(function($){
$(window).on('recommendations.loaded', function(){
setTimeout(function(){
var recsSlider = jQuery("#rr_1 .jcarousel"),
count = 5,
maxPages = 0,
.rrBox{
}
.rrContainer{
padding: 5px 15px 10px 15px;
}
.rrItem{
width: 25%;
margin-top: 15px;
float: left;
(function($){
jQuery.getScript('//media.richrelevance.com/rrserver/js/1.0/p13n.js', function(){
//session cookie functions
function C(k){return(document.cookie.match('(^|; )'+k+'=([^;]*)')||0)[2]}
function guidGenerator() {
var S4 = function() {
return ((((1+Math.random())*0x10000)|0)).toString(16).substring(1);
};
return (S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());
@GoingOffRoading
GoingOffRoading / gist:8431653
Last active January 3, 2016 07:49
MyRecs JSON call
"strategyResults":[{"message":"People who viewed this product also viewed","strategyName":"ProductViewedViewed","recommendedProducts":[{"genre":"build","id":"nutone665rp","priceRangeCents":[8923,8923],"clickURL":"http://recs.richrelevance.com/rrserver/apiclick?a=808eb9bd4473db38&cak=9fd1fbdc754c6845&ct=http%3A%2F%2Fwww.build.com%2Fnutone-665rp-combination-heater-fan-light-70-cfm-4-0-sones-1300w-heater%2Fp430456&vg=6cd2793b-4d23-40da-aaa0-0c50e518658f&stid=4&pti=11&pa=-1&p=nutone665rp&channelId=9fd1fbdc754c6845&u=389010277","categoryIds":["68797","85795","85859","68807","50505","99739","85816","50495","85770","68799","101667","68808","108507","50494","68800","110755","70828","99736","68837","85813","68820","68821","99533","101669","101365","108559","68839","112488","112489"],"numReviews":10,"regionPriceDescription":"","name":"NuTone 665RP","brand":"NuTone","categories":[{"id":"68797","name":"Bathroom Fans"},{"id":"85795","name":"Nutone Bath Fans"},{"id":"85859","name":"Nutone Heaters"},{"id":"68807","name":"Ov
@GoingOffRoading
GoingOffRoading / gist:7476692
Created November 15, 2013 00:01
RR Failure to populate recs on email Elkay LK325 11/14
Call:
https://recs.richrelevance.com/rrserver/api/rrPlatform/recsForPlacements?productId=elkaylk325&userId=843191609&placements=item_page.rr1&apiKey=808eb9bd4473db38&apiClientKey=9fd1fbdc754c6845
Responce:
https://recs.richrelevance.com/rrserver/api/rrPlatform/recsForPlacements?productId=elkaylk325&userId=843191609&placements=item_page.rr1&apiKey=808eb9bd4473db38&apiClientKey=9fd1fbdc754c6845
@GoingOffRoading
GoingOffRoading / gist:7476500
Created November 14, 2013 23:45
Recs failing to populate email Tech Lighting 700FM360L 11/14
Request:
https://recs.richrelevance.com/rrserver/api/rrPlatform/recsForPlacements?productId=techlighting700fm360l&userId=522230412&placements=item_page.rr1&apiKey=808eb9bd4473db38&apiClientKey=9fd1fbdc754c6845
Return
{"viewGuid":"09fc9eef-aff9-4865-23df-5450963ac878","placements":[{"placement":"item_page.rr1","recommendedProducts":[{"genre":"build","priceRangeCents":[8378,8378],"clickURL":"http://recs.richrelevance.com/rrserver/apiclick?a=808eb9bd4473db38&cak=9fd1fbdc754c6845&ct=http%3A%2F%2Fwww.build.com%2Fkohler-k-14459-stillness-single-post-vertical-toilet-paper-holder%2Fp218303&vg=09fc9eef-aff9-4865-23df-5450963ac878&stid=80&pti=1&pa=3964&p=kohlerk14459&channelId=9fd1fbdc754c6845&u=522230412","regionPriceDescription":"","id":"kohlerk14459","categoryIds":["82313","68771","82809","99510","108801","109361","110233","113021","113027"],"numReviews":3,"name":"Kohler K-14459","brand":"Kohler","priceCents":8378,"categories":[{"id":"82313","name":"Tissue Holders"},{"id":"68771","name":"Tissue Holders"},{"id":
@GoingOffRoading
GoingOffRoading / gist:7476469
Created November 14, 2013 23:42
Customer abandoned a ProductID: Kohler K-2358-1 and generated two recs 11/14
Link Request:
https://recs.richrelevance.com/rrserver/api/rrPlatform/recsForPlacements?productId=kohlerk23581&userId=220262481&placements=item_page.rr1&apiKey=89e8a23040a889f3&apiClientKey=a995c205149816d5
String:
{"viewGuid":"3df84618-4513-4418-200f-f15096375171","placements":[{"placement":"item_page.rr1","recommendedProducts":[{"genre":"Default","id":"kohlerk23581","priceRangeCents":[12510,12510],"clickURL":"http://recs.richrelevance.com/rrserver/apiclick?a=89e8a23040a889f3&cak=a995c205149816d5&ct=http%3A%2F%2Fwww.faucetdirect.com%2Fkohler-k-2358-1-archer-24-pedestal-bathroom-sink-with-1-hole-drilled-and-overflow%2Fp165156&vg=3df84618-4513-4418-200f-f15096375171&stid=1&pti=1&pa=3972&p=kohlerk23581&channelId=a995c205149816d5&u=220262481","categoryIds":[],"numReviews":1,"regionPriceDescription":"","name":"Kohler K-2358-1","brand":"Kohler","categories":[],"priceCents":12510,"rating":5,"imageURL":"http://www.faucetdirect.com/imagebase/resized/220x220/kohlerimages/kohler_k_2358_1_6_2465.jpg"},{"genre":"Default"
@GoingOffRoading
GoingOffRoading / gist:7476418
Created November 14, 2013 23:39
This is the string passed after a user abandoned a Baldwin 1440.I The recs didn't populate with any images
The link on the email:
https://recs.richrelevance.com/rrserver/api/rrPlatform/recsForPlacements?productId=baldwin1440i&userId=841742331&placements=item_page.rr1&apiKey=034dfc5b29a514b5&apiClientKey=0971b0f94980fbbe
Which generated this string:
{"viewGuid":"dba09690-7d95-425d-fc3b-5250963ade3b","placements":[{"placement":"item_page.rr1","recommendedProducts":[{"genre":"Default","priceRangeCents":[25495,25495],"clickURL":"http://recs.richrelevance.com/rrserver/apiclick?a=034dfc5b29a514b5&cak=0971b0f94980fbbe&ct=http%3A%2F%2Fwww.handlesets.com%2Fbaldwin-85327-entr-bethpage-single-cylinder-solid-brass-sectional-handleset-with-bethpage-interior-knob%2Fp615695&vg=dba09690-7d95-425d-fc3b-5250963ade3b&stid=1&pti=1&pa=3980&p=baldwin85327entr&channelId=0971b0f94980fbbe&u=841742331","regionPriceDescription":"","id":"baldwin85327entr","categoryIds":["3891","4296","5070","7424","7550","4343","4004","3904","7486","5059","5117","5631"],"numReviews":3,"name":"Baldwin 85327.ENTR","brand":"Baldwin","priceCents":25495,"catego
<!doctype html>
<html>
<head>
<title>My Uploads</title>
<link rel="stylesheet" href="my_uploads.css" />
<style>
.paging-button {
visibility: hidden;
}