Config

Contracts

DesignConfigRepositoryContract

DesignConfig

Namespace

Plenty\Modules\Template\Design\Config\Contracts

Methods

public findByDesignName(string $designName):array
Parameters
string $designName
public findByDesignAndWebStore(string $designName, int $webStoreId):DesignConfig
Parameters
string $designName
int $webStoreId
public findByDesign(Design
 $design):array
Parameters
Design $design
public update(array $data, string $designName, int $webstoreId):DesignConfig
Parameters
array $data
string $designName
int $webstoreId
public copyDesignConfig(string $designName, string $newDesignName):DesignConfig
Parameters
string $designName
string $newDesignName

DesignRepositoryContract

Design

Namespace

Plenty\Modules\Template\Design\Config\Contracts

Methods

public loadAll():array
public findByDesignName(string $designName, bool $withConfig = true):Design
Parameters
string $designName
bool $withConfig

Models

Design

Design model

Namespace

Plenty\Modules\Template\Design\Config\Models

Properties

Type Name Description
string designName
string imageDir directory of images
bool export directory of images
string updatedAt created at date timestamp
string createdAt updated at date timestamp
array config list of configurations of each webstore

Methods

public toArray()

Returns this model as an array.

DesignConfig

Design configuration model

Namespace

Plenty\Modules\Template\Design\Config\Models

Properties

Type Name Description
int webstoreId
int error404ContentPageId
int bankContentPageId
int cancellationRightsContentPageId
int termsConditionsContentPageId
int contactContentPageId
int legalDisclosureContentPageId
int helpContentPageId
int itemNotFoundContentPageId
int paymentMethodsContentPageId
int privacyPolicyContentPageId
int shippingContentPageId
int frontPageContentPageId
int customerRegistrationPageId
int orderConfirmationPageId
int lostPasswordPageId
int loginPageId
int logoutPageId
int typeOfCheckout
int checkoutStep1PageId
int checkoutStep2PageId
int checkoutStep3PageId
int checkoutStep4PageId
int checkoutStep5PageId
int checkoutStep6PageId
int checkoutStep7PageId
int checkoutStep8PageId
int checkoutStep9PageId
int checkoutStep10PageId
string pageDesignWebshop
string pageDesignCheckout
string pageDesignMyAccount
string pageDesignBlog
string pageDesignForum

Methods

public toArray()

Returns this model as an array.