Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
Loading...
// Before
.product-detail-ordernumber-container .product-detail-ordernumber-label {
font-weight: 300 !important;
}
// Better
.myshop .product-detail-ordernumber-container .product-detail-ordernumber-label {
font-weight: 300;
}// Before
.product-detail-ordernumber-container {
.product-detail-ordernumber-label {
font-weight: 300 !important;
}
}
// Better
.myshop {
.product-detail-ordernumber-container {
.product-detail-ordernumber-label {
font-weight: 300;
}
}
}<storefront>
<template-load-priority>100</template-load-priority>
</storefront>custom/plugins/TcinnThemeWareXYZ/src/Resources/app/storefront/src/scss/
custom/plugins/TcinnThemeWareXYZ/src/Resources/app/storefront/src/scss/themeware/custom/apps/TcinnThemeWareXYZApp/Resources/app/storefront/src/scss
custom/apps/TcinnThemeWareXYZApp/Resources/app/storefront/src/scss/themeware@import 'your-file.scss';// Example: Colour change of the article name on the article page
$my-variable: #FF0004;
.is-ctl-product {
.product-detail-name {
padding: 10px;
color: $my-variable;
}
}// Customisation for the Sales Channel with the class "myshopname"
.myshopname {
h1 {
// Customization...
}
}// Customisation for the category with the class "myshopname"
.myshopname {
h1 {
// Customization...
}
}function myFunction() { ...<script>
alert( 'Hello, world!' );
</script>public function getTemplatePriority(): int
{
return 100; // hohe Priorität
}.my-class { color: #000000; }// Customisation for the Sales Channel with the class "myshopname"
.myshopname h1 {
// Customization...
}// Customisation for the category with the class "myshopname"
.myshopname h1 {
// Customization...
}custom/plugins/TcinnThemeWareXYZ/src/Resources/views
custom/plugins/TcinnThemeWareXYZ/src/Resources/views/themewarecustom/apps/TcinnThemeWareXYZApp/Resources/views/storefront
custom/apps/TcinnThemeWareXYZApp/Resources/views/storefront/themeware...
<div class="product-detail-description tab-pane-container">
<h2 class="product-detail-description-title">
Product information "Main product with reviews"
</h2>
<div class="product-detail-description-text" itemprop="description">
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, ...
</div>
</div>
......
{% block component_product_description_content_text %}
<div class="product-detail-description-text" itemprop="description">
{{ product.translated.description|raw }}
</div>
{% endblock %}
...{% sw_extends '@Storefront/storefront/page/product-detail/headline.html.twig' %}{% sw_extends '@Storefront/storefront/themeware/extensions/twt-hero-section.html.twig' %}{% block name_of_the_block %}
{{ parent() }}
{# Place new content here #}
{% endblock %}{% block name_of_the_block %}
{# Place new content here #}
{{ parent() }}
{% endblock %}{% block page_product_detail_name_container %}
{# Place new content here #}
{% endblock %}{{ dump() }}{% block name_of_the_block %}
{{ parent() }}
{{ "twt.widget.communities.headline"|trans }}
{% endblock %}{{ page.product.translated.customFields.technischer_name_zusatzfeld }}{{ page.footer.navigation.active.translated.customFields.technischer_name_zusatzfeld }}{% if theme_config('twt-body-class') %}
...
{% endif %}{{ theme_config('twt-body-class') }}{# Customization only for theme with the body class "myshopname". #}
{% if theme_config('twt-body-class') == "meinshopname" %}
{# Theme has body class "myshopname" #}
...
{{ parent() }}
{% else %}
{# Theme does not have body class "myshopname" #}
{{ parent() }}
{% endif %}{# Customization for a sales channel with the ID "..." #}
{% if context.salesChannel.id == "..." %}
{# Sales channel has the ID "..." #}
...
{{ parent() }}
{% else %}
{# Sales channel does not have the ID "..." #}
{{ parent() }}
{% endif %}