Package DE_EPAGES::UniversalPortal::API::CSV::UniversalProductsExportDriver
This module implements a csv driver to export User defined Portals.
Base |
DE_EPAGES::ProductPortal::API::CSV::PortalExportDriver |
Example |
use DE_EPAGES::UniversalPortal::API::CSV::UniversalProductsExportDriver; my $Driver = DE_EPAGES::UniversalPortal::API::CSV::UniversalProductsExportDriver->new( Handler => $Handler ); $Driver->exportCSV; |
Functions
- DeliveryCost
- DeliveryPeriod
- Description
- ImageLarge
- ImageMedium
- ImageSmall
- ListPrice
- MainCategory
- MeasureWithUnit
- RefPrice
- UPCEAN
- UniversalPortalAttributeSet
- WebUrl
- Weight
- getAttributeValue
- getExportValues
- isProductValidPortal
- isProductValidPortalExt1
DeliveryCost
Retruns the shipping price if it set or a empthy string
Syntax |
DeliveryCost( $Product ); |
Input |
|
Return |
|
DeliveryPeriod
Returns the product delivery period
Syntax |
DeliveryPeriod( $Product ); |
Input |
|
Return |
|
Description
retruns the description and remove HTML-Tags and new lines
Syntax |
Description( $Product ); |
Input |
|
Return |
|
ImageLarge
returns the URL to the large image
Syntax |
ImageLarge( $Product ); |
Input |
|
Return |
|
ImageMedium
returns the URL to the medium image
Syntax |
ImageMedium( $Product ); |
Input |
|
Return |
|
ImageSmall
returns the URL to the small image
Syntax |
ImageSmall( $Product ); |
Input |
|
Return |
|
ListPrice
returns the price
Syntax |
ListPrice( $Product ); |
Input |
|
Return |
|
MainCategory
Export column "shop_cat" (shop category) which shall be the complete path of categories in the shop. It must be seperated by other symbols than the columns of the export file! (e.g. " / ")
Syntax |
MainCategory( $Product ); |
Input |
|
Return |
|
MeasureWithUnit
retruns the measure additional Unit
Syntax |
MeasureWithUnit( $Product,$Measure ); |
Input |
|
Return |
|
RefPrice
Returns String with all data regarding reference price if there is no refrence price returns an empty String
Syntax |
RefPrice( $Product ); |
Input |
|
Return |
|
UPCEAN
returns the UPCEAN
Syntax |
UPCEAN( $Product ); |
Input |
|
Return |
|
UniversalPortalAttributeSet
Returns the UniversalPortalAttributeSet.
Syntax |
$UniversalPortalAttributeSet = $self->UniversalPortalAttributeSet(); |
Return |
|
WebUrl
returns the WebUrl
Syntax |
$WebUrl = WebUrl($Product) |
Input |
|
Return |
|
Weight
retruns the Weight additional Unit
Syntax |
Weight( $Product ); |
Input |
|
Return |
|
getAttributeValue
The method returns a specific value from a product or a user defined "ProductAttribute" as string.
Syntax |
getAttributeValue( $Product, $Attribute ); |
Input |
|
Return |
|
getExportValues
Overwrites the method in DE_EPAGES::ProductPortal::API::CSV::PortalExportDriver. helper method of exportLine to convert column names to methods names which are stored in UniversalAttributes. This exporter and calls the method to get the values of the exported object. Futher it truncates it to the user defined length if the field is set.
Syntax |
$self->getExportValues($Object); |
Input |
|
Return |
|
isProductValidPortal
Overwrites the method in DE_EPAGES::ProductPortal::API::CSV::PortalExportDriver and calls isProductValidPortalExt1
Syntax |
isProductValidPortal( $Input1 ); |
Input |
|
isProductValidPortalExt1
Overwrites the method in DE_EPAGES::ProductPortal::API::CSV::PortalExportDriver The method checks whether the current Value is mandatory. If it is so the whole line will not printed to the CSV-file.
Syntax |
isProductValidPortalExt1( $Input1 ); |
Input |
|