From 3e72142d7aff86875a069a1eb431a81e73be8fe5 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 10:56:12 +0200 Subject: [PATCH 01/37] Fixed the option to order without regsiter an account Fixes https://github.com/conexco/shopware-bootstrap-theme/issues/33 --- .../frontend/register/personal_fieldset.tpl | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/register/personal_fieldset.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/register/personal_fieldset.tpl index 35eff42..0f64b48 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/register/personal_fieldset.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/register/personal_fieldset.tpl @@ -121,26 +121,28 @@ {* Skip login *} {if !$update} {block name='frontend_register_personal_fieldset_skip_login'} - {if ($showNoAccount || $form_data.accountmode) && !$sEsd && !$form_data.sValidation && !{config name=NoAccountDisable}} + + {if !$sEsd && !$form_data.sValidation && ({config name=NoAccountDisable} == 1 || {config name=NoAccountDisable} == 2)} + {$accountModeChecked = {config name=NoAccountDisable} == 1} + {if isset($form_data.accountmode)} + {$accountModeChecked = $form_data.accountmode} + {/if}
-
- {else} - - {/if} + {/if} {/block} {* E-Mail *} @@ -282,4 +284,4 @@ {/if} {/block} -{/block} \ No newline at end of file +{/block} From cc75b6f269acaff3e055c14461243f41817e6824 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 11:50:52 +0200 Subject: [PATCH 02/37] Create privacy.tpl Added missing include from bare. --- .../BootstrapBare/frontend/_includes/privacy.tpl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl new file mode 100644 index 0000000..4721875 --- /dev/null +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl @@ -0,0 +1,16 @@ +{block name="frontend_data_protection_information"} +

+ {if {config name=ACTDPRCHECK} && !$hideCheckbox} + {block name="frontend_data_protection_information_checkbox"} + + + {/block} + {elseif {config name=ACTDPRTEXT}} + {block name="frontend_data_protection_information_text"} + {s name="PrivacyText" namespace="frontend/index/privacy"}{/s} + {/block} + {/if} +

+{/block} From 3509310c96528de71e5c0a02146659e3a0ec7189 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:00:47 +0200 Subject: [PATCH 03/37] Added data protection information checkbox Related to https://github.com/conexco/shopware-bootstrap-theme/issues/35 --- .../BootstrapBare/frontend/forms/form-elements.tpl | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl index 29b6b3f..844d563 100644 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl @@ -104,6 +104,13 @@ {/block} + {* Data protection information *} + {block name='frontend_forms_form_elements_form_privacy'} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {include file="frontend/_includes/privacy.tpl"} + {/if} + {/block} + {* Forms actions *} {block name='frontend_forms_elements_form_submit'}
From 6976abb5daa071cd9e827feee36849786f77eaa8 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:04:40 +0200 Subject: [PATCH 04/37] Added data protection information checkbox Related to https://github.com/conexco/shopware-bootstrap-theme/issues/35 --- .../BootstrapBare/frontend/blog/comment/form.tpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/blog/comment/form.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/blog/comment/form.tpl index b7790d4..3950e35 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/blog/comment/form.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/blog/comment/form.tpl @@ -111,6 +111,13 @@
{/block} + {* Data protection information *} + {block name='frontend_forms_form_elements_form_privacy'} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {include file="frontend/_includes/privacy.tpl"} + {/if} + {/block} + {* Submit button *} {block name='frontend_blog_comments_input_submit'}
@@ -125,4 +132,4 @@ {/block} -{/block} \ No newline at end of file +{/block} From b8868e2404fa230769e9b440084c2d92c7541500 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:06:32 +0200 Subject: [PATCH 05/37] Added data protection information checkbox Related to https://github.com/conexco/shopware-bootstrap-theme/issues/35 --- .../BootstrapBare/frontend/detail/comment/form.tpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/detail/comment/form.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/detail/comment/form.tpl index 2769ea6..39b10e6 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/detail/comment/form.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/detail/comment/form.tpl @@ -130,6 +130,13 @@
{/block} + {* Data protection information *} + {block name='frontend_forms_form_elements_form_privacy'} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {include file="frontend/_includes/privacy.tpl"} + {/if} + {/block} + {* Review actions *} {block name='frontend_detail_comment_input_actions'}
@@ -146,4 +153,4 @@ {/block} -{/block} \ No newline at end of file +{/block} From fdbc668797b0adb04257594ac710482ce754f97a Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:10:21 +0200 Subject: [PATCH 06/37] Added data protection information checkbox Related to https://github.com/conexco/shopware-bootstrap-theme/issues/35 --- .../frontend/index/footer-navigation.tpl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl index bb23b29..cc46758 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl @@ -95,6 +95,20 @@ {/block} + + {* Data protection information *} + {block name="frontend_index_footer_column_newsletter_privacy"} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {$hideCheckbox=false} + + {* If a captcha is active, the user has to accept the privacy statement on the newsletter page *} + {if {config name=newsletterCaptcha} !== "nocaptcha"} + {$hideCheckbox=true} + {/if} + + {include file="frontend/_includes/privacy.tpl" hideCheckbox=$hideCheckbox} + {/if} + {/block}
{/block} @@ -106,4 +120,4 @@ {/block} {/block} -{/block} \ No newline at end of file +{/block} From f4381551cc51728a040836c9a30106cddb45f013 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:12:35 +0200 Subject: [PATCH 07/37] Added data protection information checkbox Related to https://github.com/conexco/shopware-bootstrap-theme/issues/35 --- .../Frontend/BootstrapBare/frontend/newsletter/index.tpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/newsletter/index.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/newsletter/index.tpl index 863b801..bbbb095 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/newsletter/index.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/newsletter/index.tpl @@ -221,6 +221,13 @@ {/if} {/block} + {* Data protection information *} + {block name="frontend_newsletter_form_privacy"} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {include file="frontend/_includes/privacy.tpl"} + {/if} + {/block} + {* Submit button *} {block name="frontend_newsletter_form_submit"}
@@ -236,4 +243,4 @@
{/if} {/block} -{/block} \ No newline at end of file +{/block} From 2022d615a845a8c07a8b0dd901b1bef157cfb7ce Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:15:05 +0200 Subject: [PATCH 08/37] Added data protection information checkbox Related to https://github.com/conexco/shopware-bootstrap-theme/issues/35 --- .../BootstrapBare/frontend/plugins/notification/index.tpl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/plugins/notification/index.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/plugins/notification/index.tpl index 83adef6..8382f02 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/plugins/notification/index.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/plugins/notification/index.tpl @@ -46,6 +46,12 @@ {/block} + {* Data protection information *} + {block name="frontend_detail_index_notification_privacy"} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {include file="frontend/_includes/privacy.tpl"} + {/if} + {/block} From 366b53ae11d8a2e81d3fc13386f6a56b522ffa39 Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:21:55 +0200 Subject: [PATCH 09/37] Moved frontend_forms_form_elements_form_privacy Moved frontend_forms_form_elements_form_privacy into the submit form group. --- .../BootstrapBare/frontend/forms/form-elements.tpl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl index 844d563..0d5e116 100644 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl @@ -104,17 +104,16 @@ {/block} - {* Data protection information *} - {block name='frontend_forms_form_elements_form_privacy'} - {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} - {include file="frontend/_includes/privacy.tpl"} - {/if} - {/block} - {* Forms actions *} {block name='frontend_forms_elements_form_submit'}
+ {* Data protection information *} + {block name='frontend_forms_form_elements_form_privacy'} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {include file="frontend/_includes/privacy.tpl"} + {/if} + {/block} {s name='SupportLabelInfoFields'}{/s}
From 0ecde7c48d457507bb29b55042991744e830fcfd Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:23:00 +0200 Subject: [PATCH 10/37] Moved the input checkbox element into the label ... so we have the checkbox next to the text instead of above. --- .../Frontend/BootstrapBare/frontend/_includes/privacy.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl index 4721875..d359ae7 100644 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/_includes/privacy.tpl @@ -2,8 +2,8 @@

{if {config name=ACTDPRCHECK} && !$hideCheckbox} {block name="frontend_data_protection_information_checkbox"} - {/block} From 3cc58a0b18a4cd3486e919166e2f4aaad6454bfd Mon Sep 17 00:00:00 2001 From: Thomas Date: Thu, 9 May 2019 12:31:17 +0200 Subject: [PATCH 11/37] Moved the privacy checkbox out of the form group --- .../frontend/index/footer-navigation.tpl | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl index cc46758..977253a 100755 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/index/footer-navigation.tpl @@ -95,21 +95,20 @@ {/block} - - {* Data protection information *} - {block name="frontend_index_footer_column_newsletter_privacy"} - {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} - {$hideCheckbox=false} - - {* If a captcha is active, the user has to accept the privacy statement on the newsletter page *} - {if {config name=newsletterCaptcha} !== "nocaptcha"} - {$hideCheckbox=true} - {/if} +

+ {* Data protection information *} + {block name="frontend_index_footer_column_newsletter_privacy"} + {if {config name=ACTDPRTEXT} || {config name=ACTDPRCHECK}} + {$hideCheckbox=false} - {include file="frontend/_includes/privacy.tpl" hideCheckbox=$hideCheckbox} + {* If a captcha is active, the user has to accept the privacy statement on the newsletter page *} + {if {config name=newsletterCaptcha} !== "nocaptcha"} + {$hideCheckbox=true} {/if} - {/block} - + + {include file="frontend/_includes/privacy.tpl" hideCheckbox=$hideCheckbox} + {/if} + {/block} {/block} {/block} From 3e53ab6c9a80bde2e6af578330afd4f5cde4a7f9 Mon Sep 17 00:00:00 2001 From: thomasfrobieter Date: Thu, 9 May 2019 13:49:16 +0200 Subject: [PATCH 12/37] Fixed form captcha --- .../frontend/forms/form-elements.tpl | 29 ++----------------- 1 file changed, 3 insertions(+), 26 deletions(-) diff --git a/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl b/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl index 0d5e116..58c6683 100644 --- a/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl +++ b/Resources/Themes/Frontend/BootstrapBare/frontend/forms/form-elements.tpl @@ -3,30 +3,11 @@ {block name='frontend_forms_form_elements'} {capture name="formlabel"}