diff --git a/config/rapidez/checkout-theme.php b/config/rapidez/checkout-theme.php
index 42321379..4adf3098 100644
--- a/config/rapidez/checkout-theme.php
+++ b/config/rapidez/checkout-theme.php
@@ -24,12 +24,12 @@
],
'checkout' => [
'success' => [
- // Show the account registration on the success page?
- 'register' => false
+ // Show the account registration on the success page
+ 'register' => false,
],
],
'register' => [
- // Make the user create an address during registration.
+ // Make the user create an address during registration
'create-address' => false,
],
];
diff --git a/resources/views/account/edit.blade.php b/resources/views/account/edit.blade.php
index bb0f358d..97453fab 100644
--- a/resources/views/account/edit.blade.php
+++ b/resources/views/account/edit.blade.php
@@ -11,9 +11,11 @@
@include('rapidez-ct::account.partials.sections.edit.addresses')
-
- @include('rapidez-ct::account.partials.sections.edit.newsletter')
-
+ @if (Rapidez::config('newsletter/general/active', 1))
+
+ @include('rapidez-ct::account.partials.sections.edit.newsletter')
+
+ @endif
@include('rapidez-ct::account.partials.sections.edit.email')
diff --git a/resources/views/account/partials/register-account.blade.php b/resources/views/account/partials/register-account.blade.php
index 01022286..4e057d2c 100644
--- a/resources/views/account/partials/register-account.blade.php
+++ b/resources/views/account/partials/register-account.blade.php
@@ -97,9 +97,11 @@ class="grid gap-5 md:grid-cols-2"
@endif
-
-
-
+ @if (Rapidez::config('newsletter/general/active', 1))
+
+
+
+ @endif
diff --git a/resources/views/checkout/steps/credentials.blade.php b/resources/views/checkout/steps/credentials.blade.php
index b0bc25b5..695a528e 100644
--- a/resources/views/checkout/steps/credentials.blade.php
+++ b/resources/views/checkout/steps/credentials.blade.php
@@ -7,9 +7,11 @@
@include('rapidez-ct::checkout.partials.sections.address')
-
- @include('rapidez-ct::checkout.partials.sections.newsletter')
-
+ @if (Rapidez::config('newsletter/general/active', 1))
+
+ @include('rapidez-ct::checkout.partials.sections.newsletter')
+
+ @endif
@include('rapidez-ct::checkout.partials.sections.shipping')
diff --git a/resources/views/checkout/steps/success.blade.php b/resources/views/checkout/steps/success.blade.php
index 6e095349..f1823678 100644
--- a/resources/views/checkout/steps/success.blade.php
+++ b/resources/views/checkout/steps/success.blade.php
@@ -19,9 +19,11 @@
@include('rapidez-ct::checkout.partials.sections.success.products')
-
- @include('rapidez-ct::checkout.partials.sections.success.newsletter')
-
+ @if (Rapidez::config('newsletter/general/active', 1))
+
+ @include('rapidez-ct::checkout.partials.sections.success.newsletter')
+
+ @endif
@if (config('rapidez.checkout-theme.checkout.success.register'))
@include('rapidez-ct::checkout.partials.sections.success.create-account')