ePages 7.26.0 - DE_EPAGES/Shop/API/ShopLanguage.pm

Package DE_EPAGES::Shop::API::ShopLanguage

This package provides the shop language functions.

@EXPORT_OK
PresetUnityShopObjectNames
SetNameForNewLanguage

Functions

PresetUnityShopObjectNames
SetNameForNewLanguage

PresetUnityShopObjectNames

Sets the names of all objects in a given object folder of a Unity shop for the given language with the existing value of the shop's default language

Syntax
PresetUnityShopObjectNames($ShopLanguage, $ShopObjectFolderName);
Example
PresetUnityShopObjectNames($hParams->{'Object'}, 'PaymentMethods');
Input
$ShopLanguage (DE_EPAGES::Shop::API::Object::ShopLanguage)
shop language
$ShopObjectFolderName (string)
object folder name

SetNameForNewLanguage

Sets the name of an object in a new language with the name in the default language

Syntax
SetNameForNewLanguage($Object, $DefaultLanguageID, $NewLanguageID);
Example
SetNameForNewLanguage($Product, $DefaultLanguageID, $NewLanguageID);
Input
$Object (Object)
object
$DefaultLanguageID (integer)
language id
$NewLanguageID (integer)
language id