Module: cart

Functions

calculateTotalOrderPrice

calculateTotalOrderPrice(orderValidated): any

Parameters

Name Type
orderValidated any

Returns

any


getCartItemsBySuppliers

getCartItemsBySuppliers(cartItems): any

Parameters

Name Type
cartItems CartLine[]

Returns

any


getCurrency

getCurrency(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getDeliveryLines

getDeliveryLines(cartLine): CartDeliveryLine[]

Parameters

Name Type
cartLine CartLine

Returns

CartDeliveryLine[]


getOfferPriceId

getOfferPriceId(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getOfferStock

getOfferStock(cartLine): number

Parameters

Name Type
cartLine CartLine

Returns

number


getProductAttributes

getProductAttributes(cartLine): any

Parameters

Name Type
cartLine CartLine

Returns

any


getProductAttributesValues

getProductAttributesValues(cartLine, locale): ProductAttributeValues[]

Parameters

Name Type
cartLine CartLine
locale string

Returns

ProductAttributeValues[]


getProductBrand

getProductBrand(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getProductExternalId

getProductExternalId(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getProductId

getProductId(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getProductImage

getProductImage(cartLine): ProductMediaInfoDTO

Parameters

Name Type
cartLine CartLine

Returns

ProductMediaInfoDTO


getProductMpn

getProductMpn(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getProductName

getProductName(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getProductPerPack

getProductPerPack(cartLine): number

Parameters

Name Type
cartLine CartLine

Returns

number


getProductSku

getProductSku(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getProductTotalPrice

getProductTotalPrice(cartLine, currency): any

Parameters

Name Type
cartLine CartLine
currency string

Returns

any


getProductUnitPrice

getProductUnitPrice(cartLine, currency): any

Parameters

Name Type
cartLine CartLine
currency string

Returns

any


getProductUnitPriceWithoutEcoTax

getProductUnitPriceWithoutEcoTax(cartLine, currency, ecoTax): any

Parameters

Name Type
cartLine CartLine
currency string
ecoTax number

Returns

any


getQuantity

getQuantity(cartLine): number

Parameters

Name Type
cartLine CartLine

Returns

number


getShippingTaxAmount

getShippingTaxAmount(cartItems, currency): any

Parameters

Name Type
cartItems CartLine[]
currency string

Returns

any


getSupplierName

getSupplierName(cartLine): string

Parameters

Name Type
cartLine CartLine

Returns

string


getSuppliersList

getSuppliersList(cartItems): any

Parameters

Name Type
cartItems CartLine[]

Returns

any


getTaxAmount

getTaxAmount(cartItems, currency): any

Parameters

Name Type
cartItems CartLine[]
currency string

Returns

any


getTotalAmountOfCart

getTotalAmountOfCart(cartItems, currency): any

Parameters

Name Type
cartItems CartLine[]
currency string

Returns

any


getTotalAmountOfCartWithTax

getTotalAmountOfCartWithTax(cartItems, currency): any

Parameters

Name Type
cartItems CartLine[]
currency string

Returns

any


getTotalAmountOfSipping

getTotalAmountOfSipping(cartItems, currency): any

Parameters

Name Type
cartItems CartLine[]
currency string

Returns

any


getTotalNumberCartItems

getTotalNumberCartItems(cartItems): number

Parameters

Name Type
cartItems CartLine[]

Returns

number


getTotalOrderCommercial

getTotalOrderCommercial(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderCommercialShipping

getTotalOrderCommercialShipping(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderCommercialTax

getTotalOrderCommercialTax(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderCommercialWithoutVatAndShipping

getTotalOrderCommercialWithoutVatAndShipping(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderValidated

getTotalOrderValidated(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderValidatedVAT

getTotalOrderValidatedVAT(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderValidatedWithShipping

getTotalOrderValidatedWithShipping(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalOrderValidatedWithVatAndShipping

getTotalOrderValidatedWithVatAndShipping(orderValidated, currency): any

Parameters

Name Type
orderValidated any
currency string

Returns

any


getTotalShippingFee

getTotalShippingFee(cartItems, currency): string

Parameters

Name Type
cartItems CartLine[]
currency string

Returns

string