ePages 6.17.39 - DE_EPAGES/EasyMarketing/API/SnippetManager.pm

Package DE_EPAGES::EasyMarketing::API::SnippetManager

Manages the snippets

Functions

getSnippetBasketPage
getSnippetCategoryPage
getSnippetConfirmationPage
getSnippetHomePage
getSnippetProductPage
getSnippets
new

getSnippetBasketPage

Create the snippet for the Basket Page

Syntax
$SnippetManager->getSnippetBasketPage( $Basket, $ViewAction );
Input
$Basket (DE_EPAGES::Order::API::Object::Basket)
Basket
$ViewAction (String)
ViewAction
Return
$Snippet (string)
Snippet for the Order Confirmation Page

getSnippetCategoryPage

Create the snippet for the Category Page

Syntax
$SnippetManager->getSnippetCategoryPage( $Category );
Input
$Category (DE_EPAGES::Product::API::Object::Product)
Product
Return
$Snippet (string)
Snippet for the Category Page

getSnippetConfirmationPage

Create the snippet for the Order Confirmation

Syntax
$SnippetManager->getSnippetConfirmationPage( $Order );
Input
$Order (DE_EPAGES::Order::API::Object::CustomerOrder)
CustomerOrder
Return
$Snippet (string)
Snippet for the Order Confirmation Page

getSnippetHomePage

Create the snippet for the Home Page

Syntax
$SnippetManager->getSnippetHomePage( $Object );
Input
$Object (Object)
Object
Return
$Snippet (string)
Snippet for the Home Page

getSnippetProductPage

Create the snippet for the Product Page

Syntax
$SnippetManager->getSnippetProductPage( $Product );
Input
$Product (DE_EPAGES::Product::API::Object::Product)
Product
Return
$Snippet (string)
Snippet for the Product Page

getSnippets

Get the Snippets for the current page type

Syntax
$SnippetManager->getSnippets($Object);
Input
$Object (Object)
Object
$ViewAction (String)
ViewAction
Return
$Snippet (string)
Snippet for the Current page type

new

constuctor

Syntax
new( );
Return
$self (DE_EPAGES::EasyMarketing::API::SnippetManager)
self