Package DE_EPAGES::ProductPortal::API::Export
API functions needed for export of portal products.
@EXPORT_OK |
Functions
- FormatPrice
- GetImageUrl
- GetProductPrice
- GetProductUrl
- GetShippingPrice
- IsProductValidPortal
- IsProductValidPortalExt1
FormatPrice
formats prices (from shipping or products) to portal specific format.
Syntax |
$FormattedValue = FormatPrice($Value, $PortalSite, $CurrencyID); |
Input |
|
Return |
|
GetImageUrl
Returns url to product image.
Syntax |
$URL = GetImageUrl($Product, $ImageAttribute); |
Example |
$URL = GetImageUrl($Product, $self->imageAttribute); |
Input |
|
Return |
|
GetProductPrice
get price of product with vars of portal config.
Syntax |
$Price = GetProductPrice($Product, $CurrencyID, $TaxModel); |
Input |
|
Return |
|
GetProductUrl
Returns url to product.
Syntax |
$URL = GetProductUrl($Product); |
Input |
|
Return |
|
GetShippingPrice
get shipping price for product with vars of portal config.
Syntax |
$Value = GetShippingPrice($PortalConfig, $Product, $CurrencyID, $TaxModel); |
Input |
|
Return |
|
IsProductValidPortal
Throws error if not valid, (not visible).
Syntax |
IsProductValidPortal($Product); |
Input |
|
IsProductValidPortalExt1
Throws error if not valid (not visible, no name or no price).
Syntax |
IsProductValidPortalExt1($PortalConfig, $Product); |
Input |
|