Skip to content

Commit

Permalink
Listen to newsletter/general/active (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jade-GG authored Dec 18, 2024
1 parent d28372d commit 34385ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
8 changes: 5 additions & 3 deletions resources/views/checkout/steps/credentials.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@
<x-rapidez-ct::card.inactive>
@include('rapidez-ct::checkout.partials.sections.address')
</x-rapidez-ct::card.inactive>
<x-rapidez-ct::card.inactive class="[&_label]:ring-ct-inactive-100 [&_label]:ring">
@include('rapidez-ct::checkout.partials.sections.newsletter')
</x-rapidez-ct::card.inactive>
@if (Rapidez::config('newsletter/general/active', 1))
<x-rapidez-ct::card.inactive class="[&_label]:ring-ct-inactive-100 [&_label]:ring">
@include('rapidez-ct::checkout.partials.sections.newsletter')
</x-rapidez-ct::card.inactive>
@endif
<x-rapidez-ct::card.inactive>
@include('rapidez-ct::checkout.partials.sections.shipping')
</x-rapidez-ct::card.inactive>
Expand Down
12 changes: 7 additions & 5 deletions resources/views/checkout/steps/success.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,18 @@
<x-rapidez-ct::sections>
@include('rapidez-ct::checkout.partials.sections.success.products')

<x-rapidez-ct::card.inactive>
@include('rapidez-ct::checkout.partials.sections.success.newsletter')
</x-rapidez-ct::card.inactive>

@if (Rapidez::config('newsletter/general/active', 1))
<x-rapidez-ct::card.inactive>
@include('rapidez-ct::checkout.partials.sections.success.newsletter')
</x-rapidez-ct::card.inactive>
@endif

@if (config('rapidez.checkout-theme.checkout.success.register'))
<x-rapidez-ct::card.inactive>
@include('rapidez-ct::checkout.partials.sections.success.create-account')
</x-rapidez-ct::card.inactive>
@endif

</x-rapidez-ct::sections>
<x-slot:sidebar class="max-lg:border-t max-lg:border-dashed max-lg:mt-1 max-lg:pt-6">
@include('rapidez-ct::checkout.partials.sidebar.success-sidebar')
Expand Down

0 comments on commit 34385ea

Please sign in to comment.