ePages 7.37.0 - DE_EPAGES/ContextualAppAds/UI/JSON.pm

Package DE_EPAGES::ContextualAppAds::UI::JSON

General UI functions of the ContextualAppAds cartridge.

@EXPORT_OK
JSONWriteAppData

Functions

JSONSaveSeenAppIDs
JSONWriteAppData

JSONSaveSeenAppIDs

Saves the seen app IDs and the related context at the shop object

Syntax
$Handler->JSONSaveSeenAppIDs($Servlet);
Input
$Servlet (object)
servlet

JSONWriteAppData

Function to get the data of all apps related to a given mboContext, count the uninstalled ones and write the values to the servlet.

Syntax
JSONWriteAppData($Servlet, $MboContext);
Example
JSONWriteAppData($Servlet, 'product');
Input
$Servlet (object)
servlet
$MboContext (string)
MBO context as defined in the MATE tool,
such as 'product', 'order', 'customer', 'shipping', ...