Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Darstellung von Freitext über Attribute auf der Produktdetailseite im BLUR Shopware Theme #100

Open
tobiasaibot opened this issue Apr 28, 2019 · 0 comments

Comments

@tobiasaibot
Copy link

Vielleicht gehts dem ein oder anderen so wie mir und möchte einen Freitext auf der Produktdetailseite anzeigen, was im Standard Theme möglich ist.

Ich bin dazu folgenden Weg gegangen:

Datei:
/custom/plugins/BlurThemeViews/Resources/Themes/Frontend/detail/content/buy_container.tpl

Suchen:

{* Product attributes fields *} {block name='frontend_detail_data_attributes'} {/block}

Ersetzen mit:

` {* Product attributes fields *}
{block name='frontend_detail_data_attributes'}

                {* Product attribute 1 *}
                {block name='frontend_detail_data_attributes_attr1'}
                    {if $sArticle.attr1}
                        <li class="base-info--entry entry-attribute">
                            <strong class="entry--label">
                                {s name="DetailAttributeField1Label" namespace="frontend/detail/index"}{/s}:
                            </strong>

                            <span class="entry--content">
                                {$sArticle.attr1|escape}
                            </span>
                        </li>
                    {/if}
                {/block}

                {* Product attribute 2 *}
                {block name='frontend_detail_data_attributes_attr2'}
                    {if $sArticle.attr2}
                        <li class="base-info--entry entry-attribute">
                            <strong class="entry--label">
                                {s name="DetailAttributeField2Label" namespace="frontend/detail/index"}{/s}:
                            </strong>

                            <span class="entry--content">
                                {$sArticle.attr2|escape}
                            </span>
                        </li>
                    {/if}
                {/block}
            {/block}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant