Z6_GHK6HJC0OG6S20Q8HU3K6R0G63
Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5
" }); var addToListTimer; var popUpDurationJS = 5000; var isAddingVisibleJS = false; var isAddedVisibleJS = true; connect.subscribe("Add_To_Cart", function(obj){ var submit=false; var submitType; // console.log("obj.items.length",obj.items.length); var items = json.toJson(obj.items); if(obj.items.length==1){ if(!isNaN(obj.items[0].quantity) && obj.items[0].quantity>0){ submit=true; submitType="single"; } } else if(obj.items.length>1){ submit=true; submitType="list"; } if(submit){ if(submitType=="single" && isAddingVisibleJS){ displaySuccess(obj.items[0],"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_addingDescription"); addingToCart.startLoading(); } else if(submitType=="list" && isAddingVisibleJS){ // console.log("display List"); displaySuccessList(obj.items,"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_addingDescription"); addingToCart.startLoading(); } xhr.get({ url: "p0/IZ7_GHK6HJC0OG6S20Q8HU3K6R0GM5=CZ6_GHK6HJC0OG6S20Q8HU3K6R0G63=NJaddToCartAJAX=/", content:{"items":items, "sequenceNumber":'1', "currentUser":'anonymous', "sessionID":'null', "accountNumber":'2501', "shipTo":'', "location":'0051', "minimumMultiple":'N', "imgPath":'https://images.tradeservice.com/' }, load: function(data) { if (isAddingVisibleJS) addingToCart.endLoading(); var dataJSON = json.fromJson(data); // console.log("load",data); // console.log("data.success",dataJSON.success); // console.log("data.errorMsg",dataJSON.errorMsg); if(dataJSON.itemsAdded.length>0){ if(submitType=="single" && isAddedVisibleJS){ displaySuccess(dataJSON.itemsAdded[0],"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"); } else if(submitType=="list" && isAddedVisibleJS){ displaySuccessList(dataJSON.itemsAdded,"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"); } } if(dataJSON.itemsNotAdded.length>0){ var msg = dataJSON.errorMsg; alert(msg); } displayQty(dataJSON); //obj.fields.forEach(function(widget,index,hash){ // widget.set("value",""); //}); }, error: function(error) { console.log("error",error); } }); } else { alert("Quantities can only be numbers and greater than 0."); } }); connect.subscribe("Quick_Add_Item_To_Cart", function(obj){ // console.log("Quick_Add_Item_To_List obj",obj); if (isAddingVisibleJS) { displaySuccessList(obj.items,"validating"); addingToCart.startLoading(); } var items = json.toJson(obj.items); // console.log("items",items); xhr.get({ url: "p0/IZ7_GHK6HJC0OG6S20Q8HU3K6R0GM5=CZ6_GHK6HJC0OG6S20Q8HU3K6R0G63=NJaddToCartAJAX=/", content:{"items":items, "quickAdd":true, "sequenceNumber":'1', "currentUser":'anonymous', "sessionID":'null', "accountNumber":'2501', "shipTo":'', "location":'0051', "minimumMultiple":'N', "imgPath":'https://images.tradeservice.com/' }, load: function(data) { if (isAddingVisibleJS) addingToCart.endLoading(); var dataJSON = json.fromJson(data); if(dataJSON.success && dataJSON.itemsAdded.length>0 && isAddedVisibleJS){ displaySuccessList(dataJSON.itemsAdded,"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"); } connect.publish("Build_Quick_Grid",dataJSON); displayQty(dataJSON); }, error: function(error) { console.log("error",error); } }); }); var displaySuccess = function(obj,cntHolder){ // console.log("displaySuccess obj",obj); if(cntHolder=="ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"){ popup.open({ popup: itemPreview, around: dom.byId("qtyCartItems") }); } domConstruct.empty(cntHolder); var container = domConstruct.create("div",{class:"itemSuccessContainer"},cntHolder); if(cntHolder=="ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"){ var addedMessage = domConstruct.create("div",{class:"addedMessage",innerHTML:"Item Added to Your Cart"},container); } else { var addingMessage = domConstruct.create("div",{class:"addedMessage",innerHTML:"Adding to Your Cart"},container); } var imageContainer = domConstruct.create("div",{class:"image"},container); var image = domConstruct.create("img",{src:obj.image},imageContainer); on.once(image,"error",function(){ image.src = "https://images.tradeservice.com//Custom/GWB/GWB_Coming_Soon.jpeg"; }); var infoCol = domConstruct.create("div",{class:"infoCol"},container); var description = domConstruct.create("div",{class:"description",innerHTML:obj.description},infoCol); var itemNum = obj.itemNumber; var ndc = obj.ndc; var itemNumber = domConstruct.create("div",{class:"itemNumber",innerHTML:"Item #: "+itemNum},infoCol); var priceBox = domConstruct.create("div",{class:"priceBox"},infoCol); var price = domConstruct.create("span",{class:"price",innerHTML:currency.format(obj.price, {currency: "USD", places: 2})},priceBox); var uom = domConstruct.create("span",{class:"uom",innerHTML:obj.uom},priceBox); if(cntHolder=="ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"){ var popupTimer = setTimeout(function(){ popup.close(itemPreview); },popUpDurationJS); } }; var displaySuccessList = function(obj,cntHolder){ // console.log("displaySuccessList obj",obj); // console.log(cntHolder); if(cntHolder=="validating"){ domConstruct.empty("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_addingDescription"); var container = domConstruct.create("div",{class:"itemSuccessContainer"},"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_addingDescription"); var addedMessage = domConstruct.create("div",{class:"addedMessage loading",innerHTML:"Validating Items"},container); } else { if(cntHolder=="ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"){ popup.open({ popup: itemPreview, around: dom.byId("qtyCartItems") }); } domConstruct.empty(cntHolder); var container = domConstruct.create("div",{class:"itemSuccessContainer"},cntHolder); if(cntHolder=="ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"){ var addedMessage = domConstruct.create("div",{class:"addedMessage",innerHTML:"The Following Items Were Added to Your Cart"},container); } else { var addingMessage = domConstruct.create("div",{class:"addedMessage",innerHTML:"The Following Items Are Being Added to Your Cart"},container); } var ol = domConstruct.create("ol",null,container); array.forEach(obj,function(entry,i){ var li = domConstruct.create("li",{innerHTML:entry.description},ol); }); if(cntHolder=="ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_shoppingCartTip"){ var popupTimer = setTimeout(function(){ popup.close(itemPreview); },popUpDurationJS); } } }; var Overlay = declare(null, { overlayNode:null, constructor:function(){ // save a reference to the overlay this.overlayNode = dom.byId("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_addingToCartOverlay"); }, startLoading:function(){ // console.log("this.overlayNode",this.overlayNode); domStyle.set(this.overlayNode,{ display:"block", opacity:"1" }); }, // called to hide the loading overlay endLoading:function(){ // fade the overlay gracefully fx.fadeOut({ node: this.overlayNode, onEnd: function(node){ domStyle.set(node, 'display', 'none'); } }).play(); } }); var clearNode = function(node){ array.forEach(registry.findWidgets(node), function(w) { w.destroyRecursive(); }); domConstruct.empty(node); }; var addingToCart = new Overlay(); ready(function(){ addingToCart.constructor(); }); var displayQty = function(dataJSON){ if(dataJSON.cartQty>0){ dom.byId("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_itemsInCart").innerHTML=dataJSON.cartQty; domClass.add("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_itemsInCart","display"); var shoppingCartBar = query(".shoppingCartBar"); domClass.add(shoppingCartBar[0],"itemsInCart"); } if(dataJSON.cartQty>99){ domClass.add("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_itemsInCart","three_digit"); } if(dataJSON.cartQty>999){ domClass.add("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_itemsInCart","four_digit"); } }; }); var ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_viewCart = function(){ window.location="/wps/portal/c/view-cart"; }; var ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0GM5_home = function(){ window.location="/"; };
Z7_GHK6HJC0OG6S20Q8HU3K6R0GM7
Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22
Home  > Plumbing  > Pipe & Fittings  > Galvanized Pipe & Fittings  > Galvanized Pipe & Fittings
"+data.itemNumber; } else { skuItemNumber.value = ""; skuItemNumDiv.innerHTML = ""; } var itemDescriptionDiv = document.getElementById("itemDescription"); var itemDescription = ""; if (data.errCode != 'N') { itemDescription = "

"+data.description+" "+data.subDescription+"

"; } else { itemDescription = "

Galvanized Pipe & Fittings

"; } itemDescriptionDiv.innerHTML = itemDescription; //display price box var priceBox = document.getElementById("itemPriceBox"); priceBox.style.display = 'block'; //set item price if (document.getElementById("UMprice2")) { var suggPrcOffset = '.25'; if (parseFloat(suggPrcOffset) == NaN) suggPrcOffset = 0.00; else suggPrcOffset = parseFloat(suggPrcOffset); var suggestedPrice = parseFloat(data.suggestedPrice) - suggPrcOffset; var priceElement2 = document.getElementById("UMprice2"); if (data.errCode == 'A' || data.errCode == 'N' || parseFloat(suggestedPrice)0){ if (data.uomList.length>1){ for (var i=0; i0) { qtyOne = data.customizationSetting[0].quantityOne; } newLastCartBoxDiv.className = "addToCart"; if (document.getElementsByClassName("detailRow quantity").length > 0) { document.getElementsByClassName("detailRow quantity")[0].remove(); } var detailRow = document.createElement("div"); detailRow.className = "detailRow quantity"; var detailField = document.createElement("div"); detailField.className = "detailField"; if (qtyOne == 'N') { var label = document.createElement("div"); label.innerHTML = "Quantity:"; label.className = "label"; detailField.appendChild(label); } var quantityDiv = document.createElement("div"); quantityDiv.id = "quantityDiv"; quantityDiv.className = "field itemQuantity"; if (dijit.byId("itemDetailQty")) { dijit.byId("itemDetailQty").destroy(); } var quantityInput = dojo.doc.createElement('input'); if (qtyOne == 'N') { dojo.attr(quantityInput, { id: "itemDetailQty", name: itemNumber+idUoM, type: "text", maxlength: "7", dojoType: "dijit.form.ValidationTextBox", regExp:"^\\d+$", promptMessage: "Enter Quantity", invalidMessage: "Please use numbers only", trim: "true" }); } else { dojo.attr(quantityInput, { id: "itemDetailQty", name: itemNumber+idUoM, type: "hidden", value: "1" }); } var uomList = data.uomList; var uomsAndMultipliers = ""; for (var i = 0; i 0){ for (var i=0; i0){ var priceBreakDiv = dojo.doc.createElement('div'); var pbClass = "hidePriceBreak"; if (data.uomList.length==1) { pbClass = ""; } dojo.attr(priceBreakDiv, { class: "vaiComponent shadow "+pbClass, id: "priceBreak_"+i }); var titleDiv = dojo.doc.createElement('div'); dojo.attr(titleDiv, { dojoType: "dijit.TitlePane", title: "Price Break for UM:"+data.uomList[i].uom }); var gridContainerDiv = dojo.doc.createElement('div'); dojo.attr(gridContainerDiv, { class: "gridContainer", }); var loadMaskDiv = dojo.doc.createElement('div'); dojo.attr(loadMaskDiv, { class: "loadMask", }); var loadIconDiv = dojo.doc.createElement('div'); dojo.attr(loadIconDiv, { class: "loadMask", }); var ajaxLoaderImg = dojo.doc.createElement('img'); dojo.attr(ajaxLoaderImg, { src: "/PA_S2K-T-Oders-JSR286/images/".concat('ajax-loader.gif'), border: "0" }); var table = dojo.doc.createElement('table'); dojo.attr(table, { class: "rowGroup", }); var headerRow = dojo.doc.createElement('tr'); dojo.attr(headerRow, { class: "headerRow", }); var headerQtyCell = dojo.doc.createElement('td'); dojo.attr(headerQtyCell, { class: "headerCell right", }); headerQtyCell.innerHTML = "Quantity"; var headerPriceCell = dojo.doc.createElement('td'); dojo.attr(headerPriceCell, { class: "headerCell right", }); headerPriceCell.innerHTML = "Price"; headerRow.appendChild(headerQtyCell); headerRow.appendChild(headerPriceCell); table.appendChild(headerRow); for (var j=0; j0){ if (data.customizationSetting[0].quantityOne == 'Y') { isQtyOneItem = true; } if (data.customizationSetting[0].personalization == 'Y' || data.customizationSetting[0].sizing == 'Y') { isCustomizable = true; itemCustomization.style.display = "block"; displayTemplate.style.display = "block"; if (data.customizationSetting[0].personalization == 'Y'){ ptValues = data.ptValues; ptList = { "identifier":"id", "label":"label", "items":ptValues }; var userSelect = false; if (data.customizationSetting[0].classRequired == "Y") { userSelect = true; } ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_buildPersonalizationTemplate(userSelect); } if (data.customizationSetting[0].sizing == 'Y'){ stValues = data.stValues; stList = { "identifier":"id", "label":"label", "items":stValues }; ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_buildSizingTemplate(); } } } document.getElementById("d_10882QtyOneItem").value = isQtyOneItem; document.getElementById("d_10882Customizable").value = isCustomizable; }; var ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_createSKUImageDisplay = function(data) { var fullImage = "noImage.jpg"; var fullImageText = ''; var thumbImage = "noImage.jpg"; var thumbImageAltText = ''; ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_detailFullSizeImageLoadSource = "image"; if (data.fullImage != '') { fullImage = data.fullImage; } if (data.thumbImage != '') { thumbImage = data.thumbImage; } if (data.fullImageAltText != '') { fullImageText = data.fullImageAltText; } else { fullImageText = data.itemNumber; } if (data.thumbImageAltText != '') { thumbImageAltText = data.thumbImageAltText; } else { thumbImageAltText = data.itemNumber; } ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ids.zoomCleanup(); dojo.destroy("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_FullImage"); var overlayNode = dojo.byId("loadOverlay_full"); dojo.style( overlayNode, { display: 'block', opacity: 1 }); var imgEle = dojo.doc.createElement('img'); dojo.attr(imgEle, { src: "https://images.tradeservice.com/".concat(fullImage), alt: fullImageText, imgType: "fullImage", itemprop: "image", id: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_FullImage", style: {width: "auto", height: "auto"}, className:"xzoom", xoriginal:"https://images.tradeservice.com/".concat(fullImage), onload: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'full')", onerror: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_errorImage(this)" }); ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_detailFullSizeImage = "https://images.tradeservice.com/".concat(fullImage); dojo.place(imgEle, "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_FullImageContainer", "first"); dojo.destroy("ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ThumbImageContainer"); if (data.images != undefined && data.images.length>0) { var imageDiv = dojo.doc.createElement('div'); dojo.attr(imageDiv, { id: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ThumbImageContainer", class: "imageThumbs" }); var imageUI = dojo.doc.createElement('ul'); dojo.attr(imageUI, { id: "imageUI", }); var imageLI0 = dojo.doc.createElement('li'); dojo.attr(imageLI0, { id: "thumbImage_0", class: "selected" }); var overlayDiv0 = dojo.doc.createElement('div'); dojo.attr(overlayDiv0, { id: "loadOverlay_0", class: "altImageLoadOverlay" }); var a0 = dojo.doc.createElement('a'); dojo.attr(a0, { id: "a0", href: "javascript:ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ids.showImage('0','')" }); var selectOverlayDiv0 = dojo.doc.createElement('div'); dojo.attr(selectOverlayDiv0, { class: "selectOverlay" }); var imgEle0 = dojo.doc.createElement('img'); dojo.attr(imgEle0, { src: "https://images.tradeservice.com/".concat(thumbImage), alt: thumbImageAltText, fullImage: "https://images.tradeservice.com/".concat(fullImage), fullAltTxt: fullImageText, imgType: "thumbImage", onload: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'0')", onerror: "this.src='https://images.tradeservice.com/noImage.jpg';ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'0')" }); dojo.place(imageDiv, "itemImage"); dojo.place(imageUI,"ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ThumbImageContainer","first"); dojo.place(imageLI0, "imageUI", "first"); dojo.place(overlayDiv0,"thumbImage_0"); dojo.place(a0, "thumbImage_0", "first"); dojo.place(selectOverlayDiv0,"a0"); dojo.place(imgEle0, "a0", "first"); var youtubePath = "http://www.youtube.com/watch?v="; var vimeoPath = "http://vimeo.com/"; var videoId = ""; for (var i=0; i-1) { videoId = image.fullFileName.substring(youtubePath.length); var a = dojo.doc.createElement('a'); dojo.attr(a, { id: "a_"+(i+1), href: "javascript:ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ids.showVideo('"+(i+1)+"','youtube','')" }); dojo.place(a, "thumbImage_"+(i+1), "first"); dojo.place(selectOverlayDiv,"a_"+(i+1)); var youtubeFrame = dojo.doc.createElement('img'); dojo.attr(youtubeFrame, { src: "//img.youtube.com/vi/"+videoId+"/default.jpg", alt: image.thumbFileAltText, imgType: "thumbImage", videoID: videoId, onload: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'"+(i+1)+"')", onerror: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'"+(i+1)+"')" }); dojo.place(youtubeFrame, "a_"+(i+1), "first"); } else if(image.fullFileName.indexOf(vimeoPath)>-1) { videoId = image.fullFileName.substring(vimeoPath.length); var a = dojo.doc.createElement('a'); dojo.attr(a, { id: "a_"+(i+1), href: "javascript:ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ids.showVideo('"+(i+1)+"','vimeo','')" }); dojo.place(a, "thumbImage_"+(i+1), "first"); dojo.place(selectOverlayDiv,"a_"+(i+1)); var imgEle = dojo.doc.createElement('img'); dojo.attr(imgEle, { alt: image.thumbFileAltText, id: "vimeo-"+videoId, videoID: videoId, imgType: "thumbImage", onload: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'"+(i+1)+"')", onerror: "this.src='https://images.tradeservice.com/noImage.jpg';ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'"+(i+1)+"')" }); dojo.place(imgEle, "a_"+(i+1), "first"); window['showThumbStyle_'+(i+1)]=function(vimeoData){ dojo.byId("vimeo-"+vimeoData[0].id).src=vimeoData[0].thumbnail_medium; }; require(["dojo/ready", "dojo/query", "dojo/dom-construct"], function(ready, query, domConstruct){ var buildImage = function(){ var url = "//vimeo.com/api/v2/video/"+videoId+".json?callback=showThumbStyle_"+(i+1); var head = query("head"); var script = domConstruct.create("script",{type:"text/javascript",src:url},head[0]); }; ready(buildImage); }); } else { var a = dojo.doc.createElement('a'); dojo.attr(a, { id: "a_"+(i+1), href: "javascript:ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_ids.showImage('"+(i+1)+"','')" }); dojo.place(a, "thumbImage_"+(i+1), "first"); dojo.place(selectOverlayDiv,"a_"+(i+1)); var imgEle = dojo.doc.createElement('img'); dojo.attr(imgEle, { src: "https://images.tradeservice.com/".concat(image.thumbFileName), alt: image.thumbFileAltText, fullImage: "https://images.tradeservice.com/".concat(image.fullFileName), fullAltTxt: image.fullFileAltText, imgType: "thumbImage", onload: "ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'"+(i+1)+"')", onerror: "this.src='https://images.tradeservice.com/noImage.jpg';ns_Z7_GHK6HJC0OG6S20Q8HU3K6R0Q22_itemDetail_loadedImage(this,'"+(i+1)+"')" }); dojo.place(imgEle, "a_"+(i+1), "first"); } } } };

Galvanized Pipe & Fittings

Item #: 10882 
Manufacturer Item: 0811040609
1" x 3/4" x 1", FPT x FPT x FPT, Class 150, Schedule Standard, Hot Dip Galvanized Malleable Iron, Reducing, Tee

Galvanized Pipe & Fittings

Finish
Hot Dip Galvanized
Material
Malleable Iron
Applicable Standard
ASME B1.20.1, UL (Canada and US), FM
End Connection
Female Threaded x Female Threaded x Female Threaded
Schedule
Standard
Material Specification
ASTM A197/A153
Type
Reducing
Pressure Rating
Class 150
Nominal Size
1 Inch x 3/4 Inch x 1 Inch