Okay
  Public Ticket #1384603
disable popup in product page
Closed

Comments

  • meet started the conversation

    this product has to be in correct increments before successfully add to the cart. but if I don't put correct increments it show me this popup window and when I put correct increment it show me the success message in popup window.

    what is the problem here that with wrong increment customer does not get an error message on top mentioning to put right increments, which is the case when you try adding to the cart before page fully loaded (half loaded ) and it show the correct error message without opening the popup window. 

    so how to fix it? is there a way to disable it from settings? or change in code?

  • meet replied

    Ajax Cart is creating a mess, there is not option to disable this popup window. if I disable the Ajax plugin then I am not able to see the error message mentioning to put right increments while add to cart. please solve it

  • meet replied

    I disabled Ajax Cart plugin now. and now if I check product page. when try to add to cart, this button does not function until I put the correct increment. and it is not showing the error message as well to put correct in order to add to cart.

  • meet replied

    so I go to the location 

    app/design/frontend/Mgs/claue/Magento_Catalog/templates/product/view/addtocart.phtml

    and I remove 

    data-validate="<?php echo $block->escapeHtml(json_encode($block->getQuantityValidators()))?>"

    from line 56. so I can submit the form without validation. and on page lode I can see the error message for proper quantity increment.


    but your Ajax cart plugin is not working. it would be great if you fix it.

  • [deleted] replied

    HI

    Thanks for your feedback but sorry I don't understand your mind clearly, now I don't see the "Add to Cart" button in this page

    http://ellis.cnfei.com/gray-onesie-mcm.html

    You can explain more about your problem, it will be best if with images

  • meet replied

    I turn it off now. I just wanted to know if we can turnoff this popup from settings? else I already figure out how to do it with uninstalling ajax cart plugin of theme

  • [deleted] replied

    Hi

    I only can disable popup in the product detail page with no disabling the ajax cart, if you want that, I will change for you.

  • meet replied

    is there a setting from admin panel that you can do it? or from the code you will do it? can you show me how to do it?

  • [deleted] replied

    Hi

    Please upload this file to app\code\MGS\AjaxCart\view\frontend\layout\ folder, ovrride old file then refresh cache and try again

  • [deleted] replied

    I have attached here