<<

NAME

ProductOpener::StorageConditions - Set storage_conditions and storage_conditions_tags on products

SYNOPSIS

DESCRIPTION

set_storage_conditions($product_ref)

Set the storage_conditions and storage_conditions_tags fields on a product based on the inherited storage_conditions:en property of its categories.

Parameters

$product_ref

Reference to the product data structure.

Return

Modifies $product_ref in place, setting: - storage_conditions: plain string value (e.g. "frozen") - storage_conditions_tags: array ref of canonical tag IDs (e.g. ["en:frozen"])

<<