Methods
addCart(objeto)
- Source:
Parameters:
Name |
Type |
Description |
objeto |
|
recorre el objeto segun los comprados |
Returns:
un articulo en la cart
addDatesCart(objeto)
- Source:
Parameters:
Name |
Type |
Description |
objeto |
|
recorre el objeto y busca los que estan en el carrito |
Returns:
el valor total de la compra
addEventCarouselDots()
- Description:
- Add event click on banner buttons
- Source:
addEventFilterCategories()
- Description:
- Adds the event click that filter the products by the selected categories
- Source:
callToFunction()
- Source:
carouselTransition()
- Description:
- Set the transition in the banner pictures
- Source:
deleteProductOnResume()
- Description:
- Source:
(async) getDataBanner()
- Description:
- Gets the data of the banner pictures from API
- Source:
obtainCategories()
- Source:
Parameters:
Returns:
void
paintDOM(data)
- Source:
Parameters:
Name |
Type |
Description |
data |
Array
|
Array of objects that contains the information of each product |
renderBanner(images)
- Description:
- Renders the banner under the header
- Source:
Parameters:
Name |
Type |
Description |
images |
Array
|
An array of objects that contains the links to the images |
resizeBanner(data)
- Description:
- Changes the array of images used in the banner depending on the screen size
- Source:
Parameters:
Name |
Type |
Description |
data |
object
|
An object that contains the desktop and mobile images arrays |