Hello,
i want to add pop up contact form bellow add to cart button (attached pictures).
![buttons.jpg buttons.jpg](https://community.magento.com/t5/image/serverpage/image-id/993i27F40E6146D0E9D5/image-size/original?v=v2&px=-1)
![popup.jpg popup.jpg](https://community.magento.com/t5/image/serverpage/image-id/994iC051BF10AE95EEDC/image-size/original?v=v2&px=-1)
i call phtml file with popup contact form from addtocart.phtml, like:
<?php endif; ?>
<div class="add-to-cart-buttons">
<button type="button" title="<?php echo $buttonTitle ?>" class="button btn-cart" onclick="productAddToCartForm.submit(this)"><span><span><?php echo $buttonTitle ?></span></span></button>
<?php echo $this->getChildHtml('', true, true) ?>
</div>
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('pop_contact')->toHtml();?>
when submit form i get error like:
{"error":true,"messages":["Prosimo, dolo\u010dite mo\u017enost(i) zahtevanega izdelka(ov)."],"r":"error"}
and add to cart button doesn't work (when i click on button nothing changes)
i use simple form:
http://www.html-form-guide.com/email-form/simple-email-form.html
Pop up contact form and slide form (have two forms on site) works fine on any other page (front page, category pages) but product page.
Can anyone please help?
A