You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Pages: 1
Has anyone done this for new customers to the website?
If so can anyone help on how to achieve this.
Thankyou
Offline
This can be done with a combination of firing a popup modal for newsletter signup. To add the signup modal to your homepage:
(1) Use Website / Content / Webpages to edit your splash page. In the HTML Content for the page, add this to the bottom:
<?php $this->include_namespace('core','emaillistpop'); ?>
That will launch a signup popup and set a cookie to ensure the popup is only seen once.
(2) You'll need to create a discount code for your promotion. Do that using Store / Commerce / Discount Codes.
(3) Finally, you'll need to adjust the signup confirmation so that it references your discount code. To do that, since you are running 9.3+, you can use a custom override for the confirmation include. Follow these steps:
- Create a new custom override directory using the location {private}/custom/apps/ecom/ECOM/includes, if that directory doesn't already exist.
- Copy the file {private}/apps/ecom/ECOM/includes/emaillistconfirm.php into that new custom override directory.
- Edit the file {private}/custom/apps/ecom/ECOM/includes/emaillistconfirm.php so that the confirmation includes information about your discount code you created in step (2).
Offline
Pages: 1