html, css, js and twig code element for the shopping experiences
The extension provides a cms block and a cms element for html, css, js and twig code under the block category 'HTML' within a layout. If required, the cms element can be used at any cms block as usual using the corresponding icon. After enabling the twig compilation, you can also use twig variables...
Third-party extension, added for convenience. Maestrino has no affiliation with the author.
This is an open-source extension, provided by its author under an open license. We strongly recommend checking out the author's work — and consider donating to the project if you can. Visit the author's project
About this extension
The extension provides a cms block and a cms element for html, css, js and twig code under the block category HTML within a layout.
If required, the cms element can be used at any cms block as usual using the corresponding icon.
After enabling the twig compilation, you can also use twig variables and snippets in the fields.
This makes it possible to personalize content in the shopping experiences or to display customer, category or product data.
Display of the greeting from the sidebar of the customer account in a shopping experience
- Place the cms block in the layout
- Activate the switch enable twig compiling for all fields
- Insert the following content into the field html code:
{% if context.customer %}
<p class="welcome">
{{ 'account.greetings'|trans|sw_sanitize }}
{% if context.customer.salutation and context.customer.salutation.salutationKey != 'not_specified' %}
{{ context.customer.salutation.translated.displayName }}
{% endif %}
{% if context.customer.title %}
{{ context.customer.title }}
{% endif %}
{{ context.customer.firstName }} {{ context.customer.lastName }}
</p>
{% endif %}
How to install the extension
via zip and console (recommended)
- Download the latest SschreierHtmlCssJsTwigCodeElementForShoppingExperiences-master.zip.
- Unzip the zip file and rename the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.
- Move the folder to the project folder custom/plugins/ .
- Connect to the console via ssh:
bin/console plugin:refresh
bin/console plugin:install --activate SschreierHtmlCssJsTwigCodeElementForShoppingExperiences
via composer
- Add the repository URL to the composer.json of the project
"repositories": [
...,
{
"type": "vcs",
"url": "https://github.com/sschreier/SschreierHtmlCssJsTwigCodeElementForShoppingExperiences"
}
],
- Connect to the console via ssh and install the plugin via the command
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
bin/console plugin:refresh
bin/console plugin:install --activate SschreierHtmlCssJsTwigCodeElementForShoppingExperiences
via https://packagist.org
- Connect to the console via ssh and install the plugin via the command
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
bin/console plugin:refresh
bin/console plugin:install --activate SschreierHtmlCssJsTwigCodeElementForShoppingExperiences
via zip upload
- Download the latest SschreierHtmlCssJsTwigCodeElementForShoppingExperiences-master.zip.
- Unzip the zip file and rename the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.
- Zip the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.zip.
- Upload the zip in the Shopware Administration.
- Install & Activate the extension.
extension update (zip)
- Download the latest SschreierHtmlCssJsTwigCodeElementForShoppingExperiences-master.zip.
- Unzip the zip file and rename the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.
- Zip the folder to SschreierHtmlCssJsTwigCodeElementForShoppingExperiences.zip.
- Upload the zip in the Shopware Administration.
- Update the extension.
Images
additional cms blocks and cms element part 1

additional cms blocks and cms element part 2

additional cms blocks and cms element part 3

additional cms blocks and cms element part 4

additional cms blocks and cms element part 5

additional cms blocks and cms element part 6

additional cms blocks and cms element part 7

Reviews
No reviews yet. Customers who have licensed this extension can leave the first one.
Only customers who have licensed this extension can write a review. Write yours from your dashboard.
No account needed — download directly, or subscribe to manage it in your workspace.
View this on GitHubInstall via Composer without an account
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
Subscribing also keeps you informed about updates, and lets the provider reach you when needed.
We will bring you straight back here.
Links
No account needed — download directly, or subscribe to manage it in your workspace.
View this on GitHubInstall via Composer without an account
composer require sschreier/sschreierhtmlcssjstwigcodeelementforshoppingexperiences
Subscribing also keeps you informed about updates, and lets the provider reach you when needed.
We will bring you straight back here.