eb_productDetails Class
Define eb_productDetails class.
Item Index
Methods
Properties
- eb_productDetails.charLength
- eb_productDetails.defaultErrorMessage
- eb_productDetails.defaultImage
- eb_productDetails.defaultMaxHeight
- eb_productDetails.errorResponses
- eb_productDetails.getProductCarouselImages
- eb_productDetails.getProductDetails
- eb_productDetails.getSubProductDetails
- eb_productDetails.productId
- eb_productDetails.ServicePath
- eb_productDetails.SitePath
- eb_productDetails.TemplatePath
- eb_productDetails.writeReviewUrl
Methods
eb_productDetails.domElement
-
domElement
Page DOM element.
Parameters:
-
domElementObjectcurrent DOM element.
eb_productDetails.getData
()
Object
GET service call method for ProductDetails
Returns:
Details of product
eb_productDetails.getSubProducts
-
productId
GET service call method for sub ProductDetails
Parameters:
-
productIdNumberproductId to retrieve the particular product
Returns:
Details of sub product.
eb_productDetails.model
-
options
Product Details Model for binding data
Parameters:
-
optionsAnyParameter options
-
ServicePathStringService URL.
-
SitePathStringSite URL
-
dataStringdata.
-
domElementObjectDOM element.
-
templatePathStringHTML path.
-
eb_productDetails.render
-
options
Rendering public method to load HTML template. Based on page level configuration it will select the template and load in DOM
Parameters:
-
optionsAnyoptions contains different parameter like Sitepath, templatePath and domElement..
-
SitePathStringSite path.
-
templatePathStringHTML file path.
-
domElementObjectDOM element.
-
Returns:
jQuery promise object which when resolved returns HTML template.
eb_productDetails.shoppingCart
-
shoppingCart
Shopping cart object
Parameters:
-
shoppingCartObjectshopping cart object.
Properties
eb_productDetails.charLength
String
Character length for show more and show less functionality
eb_productDetails.defaultErrorMessage
String
Default error message.
eb_productDetails.defaultImage
String
Default Product Image -if image is not set then this image will applied their
eb_productDetails.defaultMaxHeight
String
default Max Height to show more and show less
eb_productDetails.errorResponses
Object
Globally defined error codes object for the control. Every error code should have boolean 'useServerMessage' attribute, which when true suggests we are showing service error message on the UI. If the 'useServerMessage' is defined as false, then provide another attribute 'frontEndMessage' with the error string which will be shown on UI. If 'useServerMessage' is false and 'frontEndMessage' is not defined, default error message will be shown. If service error response contains error code not defined in this object then default error message will be shown.
eb_productDetails.getProductCarouselImages
String
GET service to get ProductImages
eb_productDetails.getProductDetails
String
GET service to get all Product Details
eb_productDetails.getSubProductDetails
String
GET service to get Group/Kit Product
eb_productDetails.productId
String
GET product id from URL
eb_productDetails.ServicePath
String
The path to the Ebusiness SOA layer.
eb_productDetails.SitePath
String
Control level setting: Site path.
eb_productDetails.TemplatePath
String
Control level setting Template path.
eb_productDetails.writeReviewUrl
String
Redirect to Product Review Page
