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:
-
domElement
Objectcurrent 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:
-
productId
NumberproductId to retrieve the particular product
Returns:
Details of sub product.
eb_productDetails.model
-
options
Product Details Model for binding data
Parameters:
-
options
AnyParameter options
-
ServicePath
StringService URL.
-
SitePath
StringSite URL
-
data
Stringdata.
-
domElement
ObjectDOM element.
-
templatePath
StringHTML 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:
-
options
Anyoptions contains different parameter like Sitepath, templatePath and domElement..
-
SitePath
StringSite path.
-
templatePath
StringHTML file path.
-
domElement
ObjectDOM element.
-
Returns:
jQuery promise object which when resolved returns HTML template.
eb_productDetails.shoppingCart
-
shoppingCart
Shopping cart object
Parameters:
-
shoppingCart
Objectshopping 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