Developer forum

Forum » Ecommerce - Standard features » Newsletter in cart v2

Newsletter in cart v2

Johan Kjærgaard
Reply
 Hi,
I'm working on a solution, where we want to be able to sign up to the newsletter via the cart v2 flow. When entering personal information the customer should also be able to set a checkbox, and sign up for the a newsletter category. But how is the information handled? The customers name and email is handled and sent to DIBS, so the information exists, and in the cart module we have checked the newsletter checkbox and chosen the correct category, but after the order is completed, nothing appears in DWs newsletter list or usermanagement system.
An explanation on the newsletter subscribe in the cart module works and is set up would make me very grateful.

Sincerely
Johan

Replies

 
Merethe Nielsen
Reply

Hi

Enable newsletter subscription and add newsletter categories in paragraph settings for the cartv2 module.
Use the Ecom:Cart.UseNewsletterSubscription tag in your information step template like this example:

    <!--@If Defined(Ecom:Cart.UseNewsletterSubscription)-->
      <fieldset id="newsletter">
        <legend><!--@Translate(newsletter, "Newsletter")--></legend>
        <dl>
          <dd>
            <input type="hidden" name="EcomOrderSubscribeToNewsletter" />
            <input type="checkbox" name="EcomOrderSubscribeToNewsletter" id="EcomOrderSubscribeToNewsletter" 
              <!--@If Defined(Ecom:Order.Customer.NewsletterSubscribe)-->
                checked="checked"
              <!--@EndIf(Ecom:Order.Customer.NewsletterSubscribe)-->
             />
          </dd>
          <dt>
            <label for="EcomOrderSubscribeToNewsletter">
              <!--@Translate(newslettertext, "Do you want to recieve our newsletter ?")-->
            </label>
          </dt>
        </dl>
      </fieldset>
    <!--@EndIf(Ecom:Cart.UseNewsletterSubscription)-->

http://templates.dynamicweb-cms.com/eCommerce/Dynamicweb-eCommerce-template-tags/Shopping-Cart-V2/Order/Cart/EcomCart.UseNewsletterSubscription.aspx

Now the customer is able to set a check mark if they want to recieve a newsletter. When he does that, he's subscribed to the selected categories in Newsletter v3.

I hope this helps you.

Kind Regards,
Merethe Nielsen
 
Johan Kjærgaard
Reply
 Thanks for the quick reply!

I've set the solution up like you wrote, but where do I actually see all subscriptions in the DW backend?
I have looked under User management, the newsletter modules and the chosen category but havent been able to find the test data anywhere.

Sincerely
Johan Kjærgaard
 
Merethe Nielsen
Reply

Hi

The user should be listed in the newsletterv3 category (categories) that is selected in paragraph settings.
Check this video to see my setup: http://screencast.com/t/8QodafKIEOJi.

I have attached my Information template.

What version do you use?

/Merethe

 
Johan Kjærgaard
Reply

 Hi again,

Thanks for your elaborate explanation, but the problem persists. I have tried using the standard templates in the cart, but still no new subscriber is added to the newsletter category. What does DW need to know to add a new subscriber and where does it get the information?

 

We are using 8.1.1.4 Dynamicweb, Version=8.0.0.0.

 

You must be logged in to post in the forum