// JavaScript Document // Template for : oasisweb/pages/productdetails.p // Purpose : Allows a product code to be verified and return additional details about the product. // Notes : Populates the "Product" JavaScript object as defined in oasisweb/oasis/wsliveweb/system/common.js // : (Designed to be used by the new Product() constructor.) // Properties : /*var objProduct = { ProductCode : "", ProductDesc : "{tt-detailextra.s-desc}", UOM : "{tt-detailextra.t-uom}", Price : "{tt-detailextra.t-price}", Thumbnail : "{tt-detailextra.RO_ostk_thumbnail}" }; */ if ("{tt-detailextra.s-desc}" != "INVALID PRODUCT") { objProduct.ProductCode = ""; objProduct.ProductDesc = "{tt-detailextra.s-desc}"; objProduct.UOM = "{tt-detailextra.t-uom}"; objProduct.Price = "{tt-detailextra.t-price}".replace("{$;}","").replace(/,/gi,""); objProduct.Thumbnail = "{tt-detailextra.RO_ostk_thumbnail}"; } else { objProduct.ProductCode = ""; }