ePages 6.11.0 - DE_EPAGES/ShopWizard/API/DemoContent.pm

Package DE_EPAGES::ShopWizard::API::DemoContent

Functions to handle demo content

@EXPORT_OK
ImportDemoContent

Functions

ImportDemoContent

ImportDemoContent

Imports selected object from the demo content into into a shop. The content of already existing objects is not changed.

Syntax
ImportDemoContent( $Shop, $aRelativePaths );
Example
ImportDemoContent( $Shop, ['Categories/AtHome/BathRooms','Categories/AtWork/Chairs'] );
Input
$Object (object)
object
$aRelativePaths (ref.array.string)
list relative names of demo content objects. These
must belong to the demo content of the current stlye group
of the shop ($Shop->get('SelectedStyleGroup'))
Return
$hValues (ref.hash)
attribute name => value hash