klaviyo / magento2-klaviyo

37 stars 51 forks source link

Option to move email consent from shipping step to billing step #305

Open marcoveeneman opened 5 days ago

marcoveeneman commented 5 days ago

Description

An option to select where the email (and sms) consent checkbox is placed.

Expected behavior

Mockup of adminhtml with an extra configuration option to select where the checkbox is placed in the checkout:

image

When the 'shipping' step is selected, the current behavior is used.

When the 'payment' step is selected, the checkbox is placed somewhere on the payment step, for example near the place-order button.

Benefits

Currently the checkbox can only be placed in the shipping address form on the shipping step of the checkout. It is common to place such consent checkboxes near the last step in the checkout, before or after the 'place order' button on the payment step for example. Instead of hard-coding the location as is currently done, the store owner can decide where the checkbox is placed.

Additional information

No response