Twig Templates
Hier erfährst du, wie du die Twig Templates der Erweiterung überschreiben kannst, um die Integration an dein Thema anzupassen.
Konfigurieren Button
Um den Konfigurieren-Button in der Buy-Box anzuzeigen wird innerhalb des Templates @Storefront/storefront/page/product-detail/buy-widget-form.html.twig der Block page_product_detail_buy_button_container erweitert.
Um den Inhalt des Buttons zu ändern, überschreibe folgenden Block:
{% sw_extends '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
{% block nxconfiguratorware_product_detail_configuration_button_inner %}
{{ "detail.configureProduct"|trans|sw_sanitize }}
{% endblock %}configuratorware-Ifame um URL-Paramater erweitern
In manchen Integrationen ist es notwenig, weitere Parameter an den configurator zu übergeben, wie den _channel. Folgende Parameter stehen zur Verfügung:
_channel
distribution channel, e.g. de_eur
sets the pool of prices to be used
_cta_element
addToCart, requestOffer, none
defines the behavior of the call to action
_client
client, e.g. myshop1, myshop2
sets the client colors, contact data, etc
_designerPreSelection
json object, see below
pre selections for the designer
_display_net_prices
1
all prices are output in their net version
_frombasket
1
if this parameter is set the configurator
overwrites the configuration when adding it
to the basket to enable editing of
configurations that already where put into
the basket
_language
language an area code ISO 3166, e.g. en_GB, de_DE
sets the language of the configurator
_hide_prices
1
overrides the channel settings to show or
hide prices
_share_url
url encoded string containing a “{code}” placeholder,
e.g. http%3A%2F%2Fwww.myshop.de%2F%3Fmy_code
%3D%7Bcode%7D%26my_param%3D2
overrides the share url that is used when
sharing a configuration link as well as on
the cover of the configuration pdf
_switch_options
[{“identifier”:”component_identifier1”,”selectedoptions”:
[{“identifier”:”option_identifier_1”,”amount”:2, “inputText”:”input text value”}]}]
preselects the provided options for
components
Überschriebe folgenden Block um die Parameter an den configuratorware-Iframe zu übergeben:
Zuletzt aktualisiert
