{"id":8565,"date":"2021-06-07T09:27:19","date_gmt":"2021-06-07T09:27:19","guid":{"rendered":"https:\/\/www.bay20.com\/?p=8565"},"modified":"2025-05-21T16:21:59","modified_gmt":"2025-05-21T10:36:59","slug":"wie-schaffe-ich-eine-neue-einkaufswelt-element-in-shopware-5","status":"publish","type":"post","link":"https:\/\/www.bay20.com\/de\/wie-schaffe-ich-eine-neue-einkaufswelt-element-in-shopware-5\/","title":{"rendered":"Wie erstellt man ein neues Einkaufswelt-Element in Shopware 5?"},"content":{"rendered":"\n<p>Um ein neues Einkaufswelt-Element in Shopware 5 zu erstellen, gehen Sie wie folgt vor.<\/p>\n\n\n\n<p><strong>Schritt 1:<\/strong> Erstellen Sie ein neues Unterverzeichnis im Plugin-Verzeichnis.<\/p>\n\n\n\n<p><strong>Dateistruktur<\/strong><\/p>\n\n\n\n<p><strong>custom&gt;plugins&gt;ShoppingWorldElement<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_1-4.png\" alt=\"\" class=\"wp-image-8566\" width=\"486\" height=\"409\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_1-4.png 367w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_1-4-300x253.png 300w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/figure>\n\n\n\n<p><strong>Hinweis: &#8211; ShoppingWorldElement<\/strong> ist ein neues Plugin, in dem wir dieses Verzeichnis bearbeiten, um ein neues Shopping World Element zu erstellen.<\/p>\n\n\n\n<p><strong>Schritt 2:<\/strong> Erstellen Sie <strong>ShoppingWorldElement.php<\/strong> im Verzeichnis <strong>ShoppingWorldElement.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_2-5.png\" alt=\"\" class=\"wp-image-8569\" width=\"488\" height=\"543\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_2-5.png 370w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_2-5-300x333.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_2-5-270x300.png 270w\" sizes=\"auto, (max-width: 488px) 100vw, 488px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 3:<\/strong> Schreiben Sie diesen Code in die Datei ShoppingWorldElement.php.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php<br><br>namespace ShoppingWorldElement<strong>;<br><\/strong><strong><br><\/strong>use Shopware\\Components\\Plugin<strong>;<br><\/strong><strong><br><\/strong>class ShoppingWorldElement extends Plugin<br>{<br>    public static function getSubscribedEvents()<br>    {<br><br>    }<br>}<\/pre>\n\n\n\n<p><strong>Schritt 4:<\/strong> Gehen Sie zur Verwaltungskonsole (Backend), und<strong> Configuration&gt;Plugin Manager<\/strong>. Um zu sehen, ob das ShoppingWorldElement-Plugin funktioniert oder nicht.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_3-4-980x450.png\" alt=\"\" class=\"wp-image-8571\" width=\"834\" height=\"382\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_3-4-980x450.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_3-4-300x138.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_3-4-800x367.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_3-4-768x353.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_3-4-1000x459.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_3-4.png 1365w\" sizes=\"auto, (max-width: 834px) 100vw, 834px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 5:<\/strong> Klicken Sie auf das Bleistiftsymbol, um das Plugin <strong>zu installieren und zu aktivieren.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_4-4-980x448.png\" alt=\"\" class=\"wp-image-8573\" width=\"843\" height=\"385\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_4-4-980x448.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_4-4-300x137.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_4-4-800x366.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_4-4-768x351.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_4-4-1000x457.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_4-4.png 1365w\" sizes=\"auto, (max-width: 843px) 100vw, 843px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 6:<\/strong> Nachdem Sie das Plugin aktiviert haben, gehen Sie zu der Datei <strong>ShoppingWorldElement.php und<\/strong> schreiben Sie diesen Code in diese Datei.<\/p>\n\n\n\n<p>&lt;?php<\/p>\n\n\n\n<p>namespace ShoppingWorldElement;<\/p>\n\n\n\n<p>use Shopware\\Components\\Plugin;<br>use Shopware\\Components\\Plugin\\Context\\ActivateContext;<br>use Shopware\\Components\\Plugin\\Context\\DeactivateContext;<br>use Shopware\\Components\\Plugin\\Context\\InstallContext;<br>use Shopware\\Components\\Plugin\\Context\\UninstallContext;<br>use ShoppingWorldElement\\Bootstrap\\EmotionElementInstaller;<\/p>\n\n\n\n<p>class ShoppingWorldElement extends Plugin<br>{<br>public function install(InstallContext $installContext)<br>{<br>$emotionElementInstaller = new EmotionElementInstaller(<br>$this-&gt;getName(),<br>$this-&gt;container-&gt;get(&#8217;shopware.emotion_component_installer&#8216;)<br>);<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>    $emotionElementInstaller-&gt;install();\n}\n\npublic function activate(ActivateContext $activateContext)\n{\n    $activateContext-&gt;scheduleClearCache(ActivateContext::CACHE_LIST_ALL);\n}\n\npublic function deactivate(DeactivateContext $deactivateContext)\n{\n    $deactivateContext-&gt;scheduleClearCache(DeactivateContext::CACHE_LIST_ALL);\n}\n\npublic function uninstall(UninstallContext $uninstallContext)\n{\n    $uninstallContext-&gt;scheduleClearCache(UninstallContext::CACHE_LIST_ALL);\n}<\/code><\/pre>\n\n\n\n<p>}<\/p>\n\n\n\n<p><strong>Schritt 7:<\/strong> Erstellen Sie die Datei <strong>plugin.xml <\/strong>im Verzeichnis <strong>ShoppingWorldElement.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_5-4.png\" alt=\"\" class=\"wp-image-8575\" width=\"497\" height=\"609\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_5-4.png 367w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_5-4-300x368.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_5-4-245x300.png 245w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 8:<\/strong> Gehen Sie zur Datei <strong>plugin.xml <\/strong>und schreiben Sie diesen Code.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?xml version=\"1.0\" encoding=\"utf-8\"?&gt;\n&lt;plugin xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\"\n        xsi:noNamespaceSchemaLocation=\"https:\/\/raw.githubusercontent.com\/shopware\/shopware\/5.3\/engine\/Shopware\/Components\/Plugin\/schema\/plugin.xsd\"&gt;\n\n    &lt;label lang=\"en\"&gt;Shopping World Element&lt;\/label&gt;\n\n    &lt;version&gt;1.0.0&lt;\/version&gt;\n    &lt;copyright&gt;(c) Bay 20&lt;\/copyright&gt;\n    &lt;license&gt;MIT&lt;\/license&gt;\n    &lt;link&gt;http:\/\/store.shopware.com&lt;\/link&gt;\n    &lt;author&gt;Bay 20&lt;\/author&gt;\n    &lt;compatibility minVersion=\"5.3.0\"\/&gt;\n\n    &lt;changelog version=\"1.0.0\"&gt;\n        &lt;changes lang=\"en\"&gt;New release&lt;\/changes&gt;\n    &lt;\/changelog&gt;\n&lt;\/plugin&gt;\n<\/pre>\n\n\n\n<p><strong>Schritt 9:<\/strong> Erstellen Sie den Ordner <strong>Boostrap<\/strong> im Verzeichnis <strong>ShoppingWorldElement.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_6-4.png\" alt=\"\" class=\"wp-image-8576\" width=\"520\" height=\"659\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-4.png 371w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-4-300x380.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_6-4-237x300.png 237w\" sizes=\"auto, (max-width: 520px) 100vw, 520px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 10:<\/strong> Erstellen Sie <strong>EmotionElementInstaller.php<\/strong> im <strong>Bootstrap<\/strong>-Verzeichnis.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_7-2.png\" alt=\"\" class=\"wp-image-8577\" width=\"454\" height=\"606\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_7-2.png 368w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_7-2-300x400.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_7-2-225x300.png 225w\" sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 11:<\/strong> Schreiben Sie diesen Code in die Datei <strong>EmotionElementInstaller.php<\/strong>. Dies ist ein Konfigurationsfeld f\u00fcr das Element.<\/p>\n\n\n\n<p>&lt;?php<\/p>\n\n\n\n<p>namespace ShoppingWorldElement\\Bootstrap;<\/p>\n\n\n\n<p>use Shopware\\Components\\Emotion\\ComponentInstaller;<\/p>\n\n\n\n<p>class EmotionElementInstaller<br>{<br>\/**<br>* @var ComponentInstaller<br>*\/<br>private $emotionComponentInstaller;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * @var string\n *\/\nprivate $pluginName;\n\n\/**\n * @param string $pluginName\n * @param ComponentInstaller $emotionComponentInstaller\n *\/\npublic function __construct($pluginName, ComponentInstaller $emotionComponentInstaller)\n{\n    $this-&gt;emotionComponentInstaller = $emotionComponentInstaller;\n    $this-&gt;pluginName = $pluginName;\n}\n\npublic function install()\n{\n    $vimeoElement = $this-&gt;emotionComponentInstaller-&gt;createOrUpdate(\n        $this-&gt;pluginName,\n        'ShoppingWorldElement',\n        &#91;\n            'name' =&gt; 'Vimeo Video',\n            'xtype' =&gt; 'emotion-components-vimeo',\n            'template' =&gt; 'emotion_vimeo',\n            'cls' =&gt; 'emotion-vimeo-element',\n            'description' =&gt; 'A simple vimeo video element for the shopping worlds.'\n        ]\n    );\n\n    $vimeoElement-&gt;createTextField(&#91;\n        'name' =&gt; 'vimeo_video_id',\n        'fieldLabel' =&gt; 'Video ID',\n        'supportText' =&gt; 'Enter the ID of the video you want to embed.',\n        'allowBlank' =&gt; false\n    ]);\n\n    $vimeoElement-&gt;createHiddenField(&#91;\n        'name' =&gt; 'vimeo_video_thumbnail'\n    ]);\n\n    $vimeoElement-&gt;createTextField(&#91;\n        'name' =&gt; 'vimeo_interface_color',\n        'fieldLabel' =&gt; 'Interface Color',\n        'supportText' =&gt; 'Enter the #hex color code for the video player interface.',\n        'defaultValue' =&gt; '#0096FF'\n    ]);\n\n    $vimeoElement-&gt;createCheckboxField(&#91;\n        'name' =&gt; 'vimeo_autoplay',\n        'fieldLabel' =&gt; 'Autoplay',\n        'defaultValue' =&gt; false\n    ]);\n\n    $vimeoElement-&gt;createCheckboxField(&#91;\n        'name' =&gt; 'vimeo_loop',\n        'fieldLabel' =&gt; 'Loop',\n        'defaultValue' =&gt; false\n    ]);\n\n    $vimeoElement-&gt;createCheckboxField(&#91;\n        'name' =&gt; 'vimeo_show_title',\n        'fieldLabel' =&gt; 'Show title',\n        'defaultValue' =&gt; false\n    ]);\n\n    $vimeoElement-&gt;createCheckboxField(&#91;\n        'name' =&gt; 'vimeo_show_portrait',\n        'fieldLabel' =&gt; 'Show portrait',\n        'defaultValue' =&gt; false\n    ]);\n\n    $vimeoElement-&gt;createCheckboxField(&#91;\n        'name' =&gt; 'vimeo_show_author',\n        'fieldLabel' =&gt; 'Show author',\n        'defaultValue' =&gt; false\n    ]);\n}<\/code><\/pre>\n\n\n\n<p>}<\/p>\n\n\n\n<p><strong>Schritt 12:<\/strong> Erstellen Sie den Ordner <strong>Resources<\/strong> im Verzeichnis <strong>ShoppingWorldElement.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_8-1.png\" alt=\"\" class=\"wp-image-8578\" width=\"448\" height=\"509\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_8-1.png 365w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_8-1-300x341.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_8-1-264x300.png 264w\" sizes=\"auto, (max-width: 448px) 100vw, 448px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 13:<\/strong> Im Verzeichnis <strong>Resources<\/strong>. Erstellen Sie 3 neue Unterordner <strong>(Snippets&gt;Backend&gt;Emotion) <\/strong>und erstellen Sie im Ordner emotion die Datei <strong>shopping_world_element.ini.<\/strong><\/p>\n\n\n\n<p><strong>Dateistrukturen<\/strong><\/p>\n\n\n\n<p><strong>Resources&gt;snippets&gt;backend&gt;emotion&gt;shopping_world_element.ini<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_9-2.png\" alt=\"\" class=\"wp-image-8579\" width=\"437\" height=\"486\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_9-2.png 371w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_9-2-300x334.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_9-2-269x300.png 269w\" sizes=\"auto, (max-width: 437px) 100vw, 437px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 14: <\/strong>In die Datei <strong>shopping_world_element.ini<\/strong> schreiben Sie diesen Code.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[en_GB]<br>interfaceColorFieldLabel = \"Interface Color\"<br>interfaceColorSupportText = \"Enter the #hex color code for the video player interface.\"<br><br>[de_DE]<br>interfaceColorFieldLabel = \"Interface Farbe\"<br>interfaceColorSupportText = \"Gib den #hex Farbcode f\u00fcr das Video Player Interface ein.\"<\/pre>\n\n\n\n<p><strong>Schritt 15:<\/strong> Erstellen Sie im Ordner <strong>Resources<\/strong> ein neues Unterverzeichnis mit dem Namen <strong>views.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_10-2.png\" alt=\"\" class=\"wp-image-8581\" width=\"447\" height=\"506\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_10-2.png 363w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_10-2-300x340.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_10-2-265x300.png 265w\" sizes=\"auto, (max-width: 447px) 100vw, 447px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 16:<\/strong> Erstellen Sie im Ordner <strong>views<\/strong> 6 neue Unterverzeichnisse <strong>(backend&gt;emotion&gt;shopping_world_element&gt;view&gt;detail&gt;elements)<\/strong> und im Ordner <strong>elements <\/strong>erstellen Sie <strong>vimeo_video.js<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_11-2.png\" alt=\"\" class=\"wp-image-8582\" width=\"433\" height=\"552\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_11-2.png 394w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_11-2-300x382.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_11-2-235x300.png 235w\" sizes=\"auto, (max-width: 433px) 100vw, 433px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 17:<\/strong> Schreiben Sie diesen Code in <strong>viemo_video.js<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/\/<br>\/\/{block name=\"backend\/emotion\/view\/detail\/elements\/base\"}<br>\/\/{$smarty.block.parent}<br><strong><em>Ext<\/em><\/strong>.define('Shopware.apps.Emotion.view.detail.elements.VimeoVideo'<strong>, <\/strong>{<br><br>    <em>\/**<br><\/em><em>     * Extend from the base class for the grid elements.<br><\/em><em>     *\/<br><\/em><em>    <\/em>extend: 'Shopware.apps.Emotion.view.detail.elements.Base'<strong>,<br><\/strong><strong><br><\/strong><strong>    <\/strong><em>\/**<br><\/em><em>     * Create the alias matching with the xtype you defined for your element.<br><\/em><em>     * The pattern is always 'widget.detail-element-' + xtype<br><\/em><em>     *\/<br><\/em><em>    <\/em>alias: 'widget.detail-element-emotion-components-vimeo'<strong>,<br><\/strong><strong><br><\/strong><strong>    <\/strong><em>\/**<br><\/em><em>     * You can define an additional CSS class which will be used for the grid element.<br><\/em><em>     *\/<br><\/em><em>    <\/em>componentCls: 'emotion--vimeo-video'<strong>,<br><\/strong><strong><br><\/strong><strong>    <\/strong><em>\/**<br><\/em><em>     * Define the path to an image for the icon of your element.<br><\/em><em>     * You could also use a base64 string.<br><\/em><em>     *\/<br><\/em><em>    <\/em>icon: 'data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw\/eHBhY2tldCBiZWdpbj0i77u\/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkI4MUE3MUYxMzE0OTExRTY5RTAxREU4QzRENjE3OTVFIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkI4MUE3MUYyMzE0OTExRTY5RTAxREU4QzRENjE3OTVFIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6QjgxQTcxRUYzMTQ5MTFFNjlFMDFERThDNEQ2MTc5NUUiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6QjgxQTcxRjAzMTQ5MTFFNjlFMDFERThDNEQ2MTc5NUUiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw\/eHBhY2tldCBlbmQ9InIiPz6h+p8gAAAFjklEQVR42rRY208cVRj\/mJ3d5X6\/lUJBQQxqKW2hxWBFbeITvNQYtb5ArabRRx\/6N\/RP0KrQEC94S0pbY6NSlAqEi6VES0uhtCDlToG9sezN73eY3SyzM+wA8iVfzsw5Z875ne9+Jqal9TKpyb2+TiaTifx+P8XExIg+n89HsiyjfY7HTnL7Io8VMxfwcILyqSMQCEwyj0mS1MXft3N7h9\/FOmA8Y12s5XS6IvaWyTg1gHmDWiwKwGhVlMyb7uM5x3jsHW7R18F8ibnZyCaSgTn1zEMMoIk3qQ12aoAhnbFXGGQTt7eVtXYF6CJzGy94kHZP5Qy0jdtPdwIojbmfgZyNJo3tEq\/5Pjd9zKlGASUxgD7mo7QHpNhfpWwyAVRihFGvud2bO2S5k42xmPaQAMrr85VYLOZO5sNSjKQroSZ2yUNBV99LUsJIBT9+oaeykyzKBqNgjNoVNgZr2JKIR16vr5FfXw1pCPFE2aAZcQOTdIxxI\/I5nbS2tk54tVgslJSYsOmb4Dyb3UFu9zrFx8WKvpVVOyUmxFNsrDViDw7EzTynMDwwvs0d+XpgAHSdo\/eT5VUqLMijioNllBAfRwO3\/6FHk48pJTkpFNW9Xq+YV3RgP5U\/\/yzl5WaL\/smpaersHhDROY5BhkuYxw9w8xZzq6zo8ryeCgDG7nCQy+Wm116upsqKF0Jj+Xm59FnLdzy2RlarRahmecVGtTVVdOxI+aZ1ykqLKTM9jb78\/gpL1kxKFA+pn9\/P86Fa0fsMd1TogVm12cnj8dK7b9ZvAhMkSAtzMHfpyQq9VH00AkyQsjLT6anCfHLyAdTmwBgO82MJC0eu05JOUDIYazx9SqhFiwr27xN5DaCgzurKQ1saOewIatURQJ3s8XiqYZxq+1lbc5NZNtO5hjcoaPhalJGWKjaBER\/Iz6P5hSVx4syMNM35mIdMr+O51fCyUi0JoQ8bAczU9Cw9nJiimuNHIssF2SQ8DfPvjY6z4faLw3343mnRryYAtrIAdKhU5tPkaAGCezpdLmr66kdWnZNmZueptLhI2IGaUlOSaG5hkcxmWUhmbn6R3dwWAQgeCQ\/UWkOhXEkrnwQlZDab2d09IpakpiTT8MiY5irZWRliHqSJQ2BDeKCa\/h4eEaC3oAQpWjQOuijUN\/Hv9JaGDUIAhKepCVK+e39c1znCU4fdSAqACqGWxaXliLEcllBaarKwteKiAqFaNf32R7eI7uHxR4McEkth1kj+2ojCPhp7OKE5DlAIkKfqXo8Yg+0M3xtj0CnRcuCMxNF1xAggLBTP6QLepkWI4h9\/dEbTRq5cvyFUZWCfEYljQo9eDlNTHKttZm6BE6xLYyxWqE1NX\/9wbSPJ8mEMVAg9kNBVozUMDBdqGRufMDT\/evtNdoTHIhQYPPRVWNh95kGjNRAy9agBQB1\/9tJfQ3dESIgGRpHcLeZRCVbPHReMSgllx6PJKRF39Ki9s4e6+waFoRt1GOYLaIM++A3zpFG14UQ\/\/fq75njbz+3UOzAkwCiHNQIIIm8VcQheAeac1GBUbemcUEcfTNAvHV2h8hQ5quXby3R35AHl5mRtBwyyfwMqAHC4j7YzKC7yA43YJJqoYahIBTBaqHGBAyYA5GRnGjLg4HXcJEmfM5AbereOMzw4uFW5EVwMjEDn8\/lFYYaQoK6vo6me94Ihn91UPdhsDvXcE7FW6y1PIFASTeQbCVgOBUOjNxFInyUz6vJ4T6AajXZztfsD\/ipWW\/9e3clYir0+v78Sucvo3R4ZtIoN8+L\/DYal8wk3x1EY7OTvxwe8QL3yK2W31+dB1Mz8eG63\/4eQWiqUH1YdO8DSoXyLW8W1aJO38wftksJlSO7MNcxPoz4LqzrtSoBFadmFUMI8vB30\/wkwANX0n3B5XHA1AAAAAElFTkSuQmCC'<strong>,<br><\/strong><strong><br><\/strong><strong>    <\/strong><em>\/**<br><\/em><em>     * You can override the original `createPreview()` method<br><\/em><em>     * to create a custom grid preview for your element.<br><\/em><em>     *<br><\/em><em>     * <\/em><strong><em>@returns <\/em><\/strong><em>{ string }<br><\/em><em>     <\/em><em>*\/<br><\/em><em>    <\/em>createPreview: function () {<br>        var me = this<strong>,<br><\/strong><strong>            <\/strong>preview = ''<strong>,<br><\/strong><strong>            <\/strong>image = me.getConfigValue('vimeo_video_thumbnail')<strong>,<br><\/strong><strong>            <\/strong>style<strong>;<br><\/strong><strong><br><\/strong><strong>        <\/strong>if (<strong><em>Ext<\/em><\/strong>.isDefined(image)) {<br>            style = <strong><em>Ext<\/em><\/strong>.String.format('background-image: url([0]);'<strong>, <\/strong>image)<strong>;<br><\/strong><strong><br><\/strong><strong>            <\/strong>preview = <strong><em>Ext<\/em><\/strong>.String.format('&lt;div class=\"x-emotion-banner-element-preview\" style=\"[0]\"&gt;&lt;\/div&gt;'<strong>, <\/strong>style)<strong>;<br><\/strong><strong>        <\/strong>}<br><br>        return preview<strong>;<br><\/strong><strong>    <\/strong>}<br>})<strong>;<br><\/strong>\/\/{\/block}<\/pre>\n\n\n\n<p><strong>Schritt 18:<\/strong> Erstellen Sie den Ordner <strong>emotion_components<\/strong> im Verzeichnis <strong>views.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_12-1.png\" alt=\"\" class=\"wp-image-8583\" width=\"431\" height=\"505\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_12-1.png 389w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_12-1-300x352.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_12-1-256x300.png 256w\" sizes=\"auto, (max-width: 431px) 100vw, 431px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 19:<\/strong> Erstellen Sie im Ordner <strong>emotion_components<\/strong> einen neuen Unterordner mit dem Namen <strong>backend<\/strong> und erstellen Sie im <strong>Backend<\/strong> eine neue Datei <strong>viemo_video.js.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_13.png\" alt=\"\" class=\"wp-image-8584\" width=\"435\" height=\"529\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_13.png 387w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_13-300x365.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_13-246x300.png 246w\" sizes=\"auto, (max-width: 435px) 100vw, 435px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 20:<\/strong> Schreiben Sie diesen Code in die Datei <strong>viemo_video.js.<\/strong><\/p>\n\n\n\n<p>\/\/ {namespace name=&#8220;backend\/emotion\/shopping_world_element&#8220;}<br>\/\/{block name=&#8220;emotion_components\/backend\/vimeo_video&#8220;}<br>Ext.define(&#8218;Shopware.apps.Emotion.view.components.VimeoVideo&#8216;, {<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * Extend from the base class for the emotion components\n *\/\nextend: 'Shopware.apps.Emotion.view.components.Base',\n\n\/**\n * Create the alias matching the xtype you defined in your `createEmotionComponent()` method.\n * The pattern is always 'widget.' + xtype\n *\/\nalias: 'widget.emotion-components-vimeo',\n\n\/**\n * Contains the translations of each input field which was created with the EmotionComponentInstaller.\n * Use the name of the field as identifier\n *\/\nsnippets: {\n    'vimeo_interface_color': {\n        'fieldLabel': '{s name=interfaceColorFieldLabel}{\/s}',\n        'supportText': '{s name=interfaceColorSupportText}{\/s}'\n    }\n},\n\n\/**\n * The constructor method of each component.\n *\/\ninitComponent: function () {\n    var me = this;\n\n    \/**\n     * Call the original method of the base class.\n     *\/\n    me.callParent(arguments);\n\n    \/**\n     * Get single fields you've created with the helper functions in your `Bootstrap.php` file.\n     *\/\n    me.videoThumbnailField = me.getForm().findField('vimeo_video_thumbnail');\n    me.videoIdField = me.getForm().findField('vimeo_video_id');\n\n    \/**\n     * For example you can register additional event listeners on your fields to handle some data.\n     *\/\n    me.videoIdField.on('change', Ext.bind(me.onIdChange, me));\n},\n\n\/**\n * Event listener for the change event of the video id field.\n *\n * @param field\n * @param value\n *\/\nonIdChange: function (field, value) {\n    var me = this;\n\n    me.setVimeoPreviewImage(value);\n},\n\n\/**\n * Does a request to the vimeo api to get the preview image of the video.\n * We will use the hidden input field we created via the helper functions to\n * store the data we receive from the api.\n *\n * @param vimeoId\n * @returns { boolean }\n *\/\nsetVimeoPreviewImage: function (vimeoId) {\n    var me = this;\n\n    if (!vimeoId) {\n        return false;\n    }\n\n    \/**\n     * Create the url to the correct api endpoint for the given video id.\n     *\/\n    var url = Ext.String.format('https:\/\/vimeo.com\/api\/v2\/video\/&#91;0].json', vimeoId),\n        xhr = new XMLHttpRequest(),\n        response;\n\n    \/**\n     * Request additional information about the video.\n     *\/\n    xhr.onreadystatechange =  function () {\n        if (xhr.readyState === 4 &amp;&amp; xhr.status === 200) {\n            response = Ext.JSON.decode(xhr.responseText);\n\n            \/**\n             * Save the preview image in the hidden input field.\n             *\/\n            if (response&#91;0]) {\n                me.videoThumbnailField.setValue(response&#91;0]&#91;'thumbnail_large']);\n            }\n        }\n    };\n\n    xhr.open('GET', url, true);\n    xhr.send();\n}<\/code><\/pre>\n\n\n\n<p>});<br>\/\/{\/block}<\/p>\n\n\n\n<p><strong>Schritt 21:<\/strong> Erstellen Sie im Ordner <strong>emotion_components<\/strong> einen neuen Unterordner <strong>widgets.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_14.png\" alt=\"\" class=\"wp-image-8585\" width=\"438\" height=\"509\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_14.png 390w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_14-300x349.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_14-258x300.png 258w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 22:<\/strong> Erstellen Sie im Ordner <strong>widgets <\/strong>2 neue Unterordner <strong>(emotion&gt;components) <\/strong>und erstellen Sie im <strong>Ordner components<\/strong> eine Datei mit dem Namen <strong>emotion<\/strong>_<strong>viemo.tpl<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_15.png\" alt=\"\" class=\"wp-image-8586\" width=\"456\" height=\"620\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_15.png 393w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_15-300x408.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_15-221x300.png 221w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 23:<\/strong> Schreiben Sie diesen Code in die Datei <strong>emotion_viemo.tpl.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">{block name=\"widgets_emotion_components_vimeo_element\"}\n\n    {$videoURL = \"https:\/\/player.vimeo.com\/video\/{$Data.vimeo_video_id}?color={$Data.vimeo_interface_color|substr:<strong>1<\/strong>}\"}\n\n    {if !$Data.vimeo_show_title}\n        {$videoURL = \"{$videoURL}&amp;title=0\"}\n    {\/if}\n\n    {if !$Data.vimeo_show_portrait}\n        {$videoURL = \"{$videoURL}&amp;portrait=0\"}\n    {\/if}\n\n    {if !$Data.vimeo_show_author}\n        {$videoURL = \"{$videoURL}&amp;byline=0\"}\n    {\/if}\n\n    {if $Data.vimeo_loop}\n        {$videoURL = \"{$videoURL}&amp;loop=1\"}\n    {\/if}\n\n    {if $Data.vimeo_autoplay}\n        {$videoURL = \"{$videoURL}&amp;autoplay=1\"}\n    {\/if}\n\n    &lt;iframe src=\"{$videoURL}\"\n            width=\"100%\"\n            height=\"100%\"\n            frameborder=\"0\"\n            webkitallowfullscreen\n            mozallowfullscreen\n            allowfullscreen&gt;\n    &lt;\/iframe&gt;\n{\/block}<\/pre>\n\n\n\n<p><strong>Schritt 24:<\/strong> Erstellen Sie die Datei <strong>config.xml<\/strong> im<strong> Ordner Resources.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_16.png\" alt=\"\" class=\"wp-image-8587\" width=\"438\" height=\"510\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_16.png 391w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_16-300x349.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_16-258x300.png 258w\" sizes=\"auto, (max-width: 438px) 100vw, 438px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 25:<\/strong> Schreiben Sie diesen Code in die Datei <strong>config.xml.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_17-980x570.png\" alt=\"\" class=\"wp-image-8588\" width=\"762\" height=\"443\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_17-980x570.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_17-300x175.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_17-800x465.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_17-768x447.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_17-1000x582.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_17.png 1095w\" sizes=\"auto, (max-width: 762px) 100vw, 762px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 26:<\/strong> Erstellen Sie die Datei <strong>services.xml<\/strong> im <strong>Ordner Resources.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_18.png\" alt=\"\" class=\"wp-image-8589\" width=\"508\" height=\"588\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_18.png 388w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_18-300x347.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_18-259x300.png 259w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 27:<\/strong> Schreiben Sie diesen Code in die Datei <strong>services.xml.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"607\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_19-980x607.png\" alt=\"\" class=\"wp-image-8590\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_19-980x607.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_19-300x186.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_19-800x496.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_19-768x476.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_19-1000x620.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_19.png 1102w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 28:<\/strong> Erstellen Sie einen neuen Unterordner <strong>Subscriber<\/strong> im Verzeichnis <strong>ShoppingWorldElement.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_20.png\" alt=\"\" class=\"wp-image-8591\" width=\"508\" height=\"604\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_20.png 387w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_20-300x357.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_20-252x300.png 252w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 29:<\/strong> Erstellen Sie im Ordner <strong>Subscriber<\/strong> eine neue Datei namens <strong>TemplateRegistration.php<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"387\" height=\"455\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_21.png\" alt=\"\" class=\"wp-image-8592\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_21.png 387w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_21-300x353.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_21-255x300.png 255w\" sizes=\"auto, (max-width: 387px) 100vw, 387px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 30:<\/strong> Schreiben Sie diesen Code in die Datei <strong>TemplateRegistration.php.<\/strong><\/p>\n\n\n\n<p>&lt;?php<\/p>\n\n\n\n<p>namespace ShoppingWorldElement\\Subscriber;<\/p>\n\n\n\n<p>use Enlight\\Event\\SubscriberInterface;<br>use Enlight_Controller_ActionEventArgs;<\/p>\n\n\n\n<p>class TemplateRegistration implements SubscriberInterface<br>{<br>\/**<br>* @var string<br>*\/<br>private $pluginDirectory;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/**\n * @param $pluginDirectory\n *\/\npublic function __construct($pluginDirectory)\n{\n    $this-&gt;pluginDirectory = $pluginDirectory;\n}\n\n\/**\n * {@inheritdoc}\n *\/\npublic static function getSubscribedEvents()\n{\n    return &#91;\n        'Enlight_Controller_Action_PostDispatchSecure_Backend_Emotion' =&gt; 'onPostDispatchBackendEmotion'\n    ];\n}\n\n\/**\n * @param \\Enlight_Controller_ActionEventArgs $args\n *\/\npublic function onPostDispatchBackendEmotion(\\Enlight_Controller_ActionEventArgs $args)\n{\n    $view = $args-&gt;getSubject()-&gt;View();\n    $view-&gt;addTemplateDir($this-&gt;pluginDirectory . '\/Resources\/views');\n    $view-&gt;extendsTemplate('backend\/emotion\/shopping_world_element\/view\/detail\/elements\/vimeo_video.js');\n}<\/code><\/pre>\n\n\n\n<p>}<\/p>\n\n\n\n<p><strong>Schritt 31:<\/strong> Gehen Sie nun in die Verwaltungskonsole und w\u00e4hlen Sie <strong>Marketing&gt;Einkaufswelten.<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_22-980x449.png\" alt=\"\" class=\"wp-image-8593\" width=\"711\" height=\"325\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_22-980x449.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_22-300x137.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_22-800x366.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_22-768x352.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_22-1000x458.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_22.png 1365w\" sizes=\"auto, (max-width: 711px) 100vw, 711px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 31:<\/strong> Klicken Sie auf das Bleistiftsymbol der Einkaufswelt.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_23-980x448.png\" alt=\"\" class=\"wp-image-8594\" width=\"778\" height=\"356\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_23-980x448.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_23-300x137.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_23-800x366.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_23-768x351.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_23-1000x457.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_23.png 1365w\" sizes=\"auto, (max-width: 778px) 100vw, 778px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 32:<\/strong> Klicken Sie auf die Option <strong>Elemente<\/strong>. Und Sie k\u00f6nnen Ihr neues benutzerdefiniertes Shopping-Element verwenden.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_24-980x452.png\" alt=\"\" class=\"wp-image-8595\" width=\"775\" height=\"357\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_24-980x452.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_24-300x138.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_24-800x369.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_24-768x354.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_24-1000x461.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_24.png 1365w\" sizes=\"auto, (max-width: 775px) 100vw, 775px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 33:<\/strong> Ziehen Sie das Element und klicken Sie auf das Stiftsymbol, um das Element zu bearbeiten.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_25-980x450.png\" alt=\"How To Create A New Shopping World Element In Shopware 5\" class=\"wp-image-8596\" width=\"789\" height=\"362\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_25-980x450.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_25-300x138.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_25-800x367.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_25-768x353.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_25-1000x459.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_25.png 1365w\" sizes=\"auto, (max-width: 789px) 100vw, 789px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 34:<\/strong> Geben Sie die Video-ID ein und w\u00e4hlen Sie eine Option, die Sie verwenden m\u00f6chten.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_26-980x392.png\" alt=\"\" class=\"wp-image-8597\" width=\"871\" height=\"348\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_26-980x392.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_26-300x120.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_26-800x320.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_26-768x307.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_26-1000x400.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_26.png 1365w\" sizes=\"auto, (max-width: 871px) 100vw, 871px\" \/><\/figure>\n\n\n\n<p><strong>Schritt 35:<\/strong> Nachdem Sie diesen Vorgang gespeichert haben, gehen Sie zum Front-Store und sehen Sie nach, ob das benutzerdefinierte Element funktioniert oder nicht.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.bay20.com\/wp-content\/uploads\/2021\/05\/Screenshot_27-980x447.png\" alt=\"\" class=\"wp-image-8598\" width=\"886\" height=\"403\" srcset=\"https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_27-980x447.png 980w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_27-300x137.png 300w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_27-800x365.png 800w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_27-768x350.png 768w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_27-1000x456.png 1000w, https:\/\/www.bay20.com\/de\/wp-content\/uploads\/2021\/05\/Screenshot_27.png 1365w\" sizes=\"auto, (max-width: 886px) 100vw, 886px\" \/><\/figure>\n\n\n\n<p><strong>Bitte kontaktieren Sie uns unter <strong><a href=\"mailto:manish@bay20.com\">manish@bay20.com<\/a><\/strong> oder rufen Sie uns unter <strong><a href=\"https:\/\/api.whatsapp.com\/send?phone=+918800519180&amp;text=Hi,%20I%20contacted%20you%20through%20your%20website.\" target=\"_blank\" rel=\"noreferrer noopener\">+91-8800519180<\/a><\/strong> an, wenn Sie Unterst\u00fctzung zu Shopware 5 und Shopware 6 ben\u00f6tigen. Sie k\u00f6nnen auch die <strong><a href=\"https:\/\/www.bay20.com\/de\/shopware-entwicklungsunternehmen\/\">Shopware<strong>-Entwicklungsseite<\/strong><\/a><\/strong> besuchen, um die von uns angebotenen Dienstleistungen zu pr\u00fcfen.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Um ein neues Einkaufswelt-Element in Shopware 5 zu erstellen, gehen Sie wie folgt vor. Schritt 1: Erstellen Sie ein neues Unterverzeichnis im Plugin-Verzeichnis. Dateistruktur custom&gt;plugins&gt;ShoppingWorldElement Hinweis: &#8211; ShoppingWorldElement ist ein neues Plugin, in dem wir dieses Verzeichnis bearbeiten, um ein neues Shopping World Element zu erstellen. Schritt 2: Erstellen Sie ShoppingWorldElement.php im Verzeichnis ShoppingWorldElement. Schritt [&hellip;]<\/p>\n","protected":false},"author":74,"featured_media":8567,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[78,116],"tags":[],"class_list":["post-8565","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-shopware","category-shopware-5"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/8565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/users\/74"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/comments?post=8565"}],"version-history":[{"count":13,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/8565\/revisions"}],"predecessor-version":[{"id":17287,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/posts\/8565\/revisions\/17287"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/media\/8567"}],"wp:attachment":[{"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/media?parent=8565"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/categories?post=8565"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bay20.com\/de\/wp-json\/wp\/v2\/tags?post=8565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}