cancel
Showing results for 
Search instead for 
Did you mean: 

Add to cart button doesn't work when include contact form on product page

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Add to cart button doesn't work when include contact form on product page

Hello,

 

i want to add pop up contact form bellow add to cart button (attached pictures).

 

undefined undefined

 

 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