Package DE_EPAGES::ProductPortal::API::Object::PortalConfig
object interface for PortalConfig.
Base |
DE_EPAGES::Object::API::Object::Object |
Functions
- addProducts
- existsProduct
- exportDriver
- exportPortal
- removeProducts
- shippingMethodForProduct
- uploadPortal
addProducts
Add products to portal, if a product is an super product all sub products will be added.
Syntax |
$PortalConfig->addProducts($aProducts); |
Input |
|
existsProduct
Checks if product exists on product portal
Syntax |
$PortalConfig->existsProduct($Product); |
Input |
|
exportDriver
Retrieves export driver.
Syntax |
$PortalConfig->exportDriver; |
Return |
|
exportPortal
Exports product data which are relevant to Portal.
Syntax |
$PortalConfig->exportPortal($FileName); |
Input |
|
removeProducts
Removes products from portal.
Syntax |
$PortalConfig->removeProducts($aProducts); |
Input |
|
shippingMethodForProduct
Find the shipping method to be used for shipping cost calculation. If no shipping method is assigned to the portal config, returns undef. Returns the assigned shipping method if it is suitable for the product. Otherwise returns the shop's default shipping method if it can be used for the product and the portal site's country. Returns any other shipping method under the same conditions. Returns undef if no suitable shipping method found.
Syntax |
my $ShippingMethod = $PortalConfig->shippingMethodForProduct($Product); |
Input |
|
Return |
|
uploadPortal
This implementation does nothing and returns always -1.
Syntax |
$PortalConfig->uploadPortal($FileName); |
Input |
|
Return |
|