feat: implement header/footer visibility controls for checkout and thankyou pages
- Created LayoutWrapper component to conditionally render header/footer based on route - Created MinimalHeader component (logo only) - Created MinimalFooter component (trust badges + policy links) - Created usePageVisibility hook to get visibility settings per page - Wrapped ClassicLayout with LayoutWrapper for conditional rendering - Header/footer visibility now controlled directly in React SPA - Settings: show/minimal/hide for both header and footer - Background color support for checkout and thankyou pages
This commit is contained in:
@@ -43,6 +43,26 @@ class EventRegistry {
|
||||
'wc_email' => 'customer_new_account',
|
||||
'enabled' => true,
|
||||
],
|
||||
|
||||
// ===== NEWSLETTER EVENTS =====
|
||||
'newsletter_welcome' => [
|
||||
'id' => 'newsletter_welcome',
|
||||
'label' => __('Newsletter Welcome', 'woonoow'),
|
||||
'description' => __('Welcome email sent when someone subscribes to newsletter', 'woonoow'),
|
||||
'category' => 'marketing',
|
||||
'recipient_type' => 'customer',
|
||||
'wc_email' => '',
|
||||
'enabled' => true,
|
||||
],
|
||||
'newsletter_subscribed_admin' => [
|
||||
'id' => 'newsletter_subscribed_admin',
|
||||
'label' => __('New Newsletter Subscriber', 'woonoow'),
|
||||
'description' => __('Admin notification when someone subscribes to newsletter', 'woonoow'),
|
||||
'category' => 'marketing',
|
||||
'recipient_type' => 'staff',
|
||||
'wc_email' => '',
|
||||
'enabled' => true,
|
||||
],
|
||||
|
||||
// ===== ORDER INITIATION =====
|
||||
'order_placed' => [
|
||||
|
||||
Reference in New Issue
Block a user