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

Package DE_EPAGES::ShopWizard::API::DemoContent

Functions to handle demo content

@EXPORT_OK
AddEBizElementsToNavBar
ImportDemoContent
ProcessEbizContent

Functions

AddEBizElementsToNavBar
ImportDemoContent
ProcessEbizContent

AddEBizElementsToNavBar

Add the contactbox and businesshoursbox navelement to the left or right navbar.

Syntax
AddEBizElementsToNavBar( $Shop, $Style );
Input
$Shop (object)
shop object
$Style (ref.array.string)
style object | object

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

ProcessEbizContent

Checks if Shop.Category.Location with ebiz demo content exists and run TLE processing on this content. $hAddress is needed for google maps api call (see DE_EPAGES::Address::API::GeoData)

Syntax
ProcessEbizContent( $Shop, $hAddress );
Input
$Shop (DE_EPAGES::Shop::API::Object::Shop)
shop object
$hAddress (hash.ref.)
Address for Google Geocoding Lookup keys
  • CountryID
  • Street
  • Street2
  • Zipcode
  • City