Can't embed Mailchimp form on product page

Highlighted
New Member
1 0 0

Hi!

 

I'm trying to embed a mailchimp form on my product page, but when you hit "submit" it ads my product to the cart, even if the product is out of stock...

 

<!-- Begin Mailchimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
	/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
	   We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<style type="text/css">
	#mc-embedded-subscribe-form input[type=checkbox]{display: inline; width: auto;margin-right: 10px;}
	#mergeRow-gdpr {margin-top: 20px;}
	#mergeRow-gdpr fieldset label {font-weight: normal;}
	#mc-embedded-subscribe-form .mc_fieldset{border:none;min-height: 0px;padding-bottom:0px;}
</style>
<div id="mc_embed_signup">
<form action="https://thevillaconcept.us4.list-manage.com/subscribe/post?u=d5b801ee0669c7c6c8be5b846&amp;id=887da8fc2e" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
    <div id="mc_embed_signup_scroll">
	
<div class="mc-field-group">
	<label class="ProductMeta__Vendor Heading u-h6" for="mce-EMAIL">Email Address </label>
	<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div style="display:none" class="mc-field-group input-group">
    <strong>Interés </strong>
    <ul><li><input type="checkbox" value="1" name="group[68331][1]" id="mce-group[68331]-68331-0"><label for="mce-group[68331]-68331-0">Newsletter</label></li>
<li><input type="checkbox" value="2" name="group[68331][2]" id="mce-group[68331]-68331-1" checked><label for="mce-group[68331]-68331-1">Re-Stock</label></li>
</ul>
</div>
<div id="mergeRow-gdpr" class="mergeRow gdpr-mergeRow content__gdprBlock mc-field-group" style="color:#828282 ">
    <div class="content__gdpr">
        <label>Marketing Permissions</label>
        <p>You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.</p>
    </div>
    <div class="content__gdprLegal">
        <p>We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. <a href="https://mailchimp.com/legal/" target="_blank">Learn more about Mailchimp's privacy practices here.</a></p>
    </div>
</div>
	<div id="mce-responses" class="clear">
		<div class="response" id="mce-error-response" style="display:none"></div>
		<div class="response" id="mce-success-response" style="display:none"></div>
	</div>    <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
    <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_d5b801ee0669c7c6c8be5b846_887da8fc2e" tabindex="-1" value=""></div>
    <div class="clear"><input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button"></div>
    </div>
</form>
</div>

<!--End mc_embed_signup-->

 

How can I add two different "submit" buttons on the same product page?

 

Thank you.

0 Likes