<<

NAME

ProductOpener::EnvironmentalImpact - process and analyze products

SYNOPSIS

ProductOpener::EnvironmentalImpact processes products to compute their environmental impact (see french environmental labeling Ecobalyse).

    use ProductOpener::EnvironmentalImpact qw/:all/;

        [..]

        estimate_environmental_impact($product_ref);

DESCRIPTION

[..]

FUNCTIONS

estimate_environmental_impact_service ( $product_ref, $updated_product_fields_ref, $errors_ref )

Compute the environmental impact of a given product (see the french environmental environmental labeling Ecobalyse).

This function is a product service that can be run through ProductOpener::ApiProductServices

Arguments

$product_ref

product object reference

$updated_product_fields_ref

reference to a hash of product fields that have been created or updated

$errors_ref

reference to an array of error messages

<<