Introducing the plentymarkets plugin interface
The plentymarkets plugin interface is a collection of interfaces representing the modules and sub-modules available in plentymarkets. The plugin interface defines the core services for plentymarkets plugins and contains all necessary methods for your plugin to communicate with plentymarkets. For each module of plentymarkets, individual interfaces are available. The documentation for these interfaces can be accessed via the Interface drop-down menu in the navigation bar.
How to execute code blocks without authentication
If you want to execute individual code blocks in the plugin without being restricted by authentication, use the AuthHelper
class. For further information, refer to the code example below:
<?php
use Plenty\Modules\Account\Address\Contracts\AddressRepositoryContract;
use Plenty\Modules\Authorization\Services\AuthHelper;
/** @var \Plenty\Modules\Account\Address\Contracts\AddressRepositoryContract $addressRepo */
$addressRepo = pluginApp(AddressRepositoryContract::class);
/** @var \Plenty\Modules\Authorization\Services\AuthHelper $authHelper */
$authHelper = pluginApp(AuthHelper::class);
$address = null;
$address = $authHelper->processUnguarded( (1)
function () use ($addressRepo, $address) {
return $addressRepo->findAddressById(42);
}
);
1 | Inside the function, the process is unguarded. |
Overview of interfaces
Find an overview of all available interfaces below:
Interface | Description |
---|---|
Contains sub-modules for Addresses and Contacts. This interface is the counterpart to the plentymarkets CRM module. |
|
Contains a sub-module for VAT and classes for determining the VAT. |
|
Interface for Amazon. |
|
Interface for user authentication. |
|
Interface for user permissions and user roles. |
|
Contains sub-modules for determining the basket and the items within the basket. |
|
Interface for blog posts. |
|
Interface for boards. |
|
Interface for the catalog. |
|
Interface with sub-modules and models for categories. |
|
Interface for cloud services, e.g. ElasticSearch and Storage. |
|
Contains the comment model. |
|
Interface for the content builder. |
|
Interface for the content cache. |
|
Interface for accessing cron jobs. |
|
Interface for customer contracts. |
|
Contains the data model. |
|
Interface for exchanging data. Contains models for export and filters. |
|
Interface for the delete log. |
|
Contains the document model. |
|
Interface for ElasticSync. |
|
Interface with events and services for event procedures. |
|
Interface for facets. |
|
Interface for feedbacks. |
|
Interface with services for the online store. |
|
Interface with contracts, models and services for helpers. |
|
Contains sub-modules for attributes, availability, item and variation data, manufacturers, shipping and units. |
|
Interface for item sets. Contains methods to get and create item sets and item set components. |
|
Interface for listings. |
|
Interface for LiveShopping. |
|
Contains the sub-module Ebay for fitments and fitment items. |
|
Interface for the messenger. |
|
Contains contracts and models for orders and order items as well as the sub-modules Currency, Payment and Shipping. This interface is the counterpart to the plentymarkets order module. |
|
Contains the sub-modules for payment methods, the payment history, as well as contracts and models for payments and payment properties. |
|
Interface for prices. |
|
Interface for plentyMarketplace. |
|
Contains the sub-modules for storing data in a plugin database or accessing external SDKs. |
|
Interface for multilingualism. |
|
Interface for properties. |
|
Interface for reports. |
|
Interface for ShopBuilder. |
|
Contains contracts and models for stock management and storage data. |
|
Contains the Webstore model. |
|
Interface for tags. |
|
Contains contracts and models for the design and design configuration. |
|
Contains contracts and models related to the plentymarkets ticket system. |
|
Interface for users. |
|
Interface for warehouses. |
|
Interface for the online store. |
|
Interface for assistants. |
|
Contains interfaces that cannot be organised in the listed interfaces. |