cancel
Showing results for 
Search instead for 
Did you mean: 

Disable the validation at product details page

Disable the validation at product details page

Hai..

 

My magento version 1.9.0.1

 

I want to disable the validation when am click on add to cart in product detail page for configurable product.

 

It says "Please specify the option(S)". i want to disable this validation. Plz kindly help me.

2 REPLIES 2

Re: Disable the validation at product details page

Hello

 

Why you want to disable this message?

I have a suggestion for you. You take a look a Javascript in: app/design/frontend/rwd/default/template/catalog/product/view/type/options/configurable.phtml (rwd package)

 

 <script type="text/javascript">
        var spConfig = new Product.Config(<?php echo $_jsonConfig ?>);
 </script>

Here is two files js you should care:

js/varien/configurable.js

js/varien/product.js

Problem solved? Click Accept as Solution!

Re: Disable the validation at product details page

There is two option when the customer to buy product (1) by using Exchange (2) without Exchange

 

If the customer choose to buy product by using Exchange, the process is working fine upto checkout.

 

If the customer wants to buy product without Exchange, there is one problem, That is in below:

 

When i click "Add To Cart"(without exchange), It's checking validation for Exchange attributes. because the onclick function is same for both type of "Add To Cart" (productAddtocartForm). So i have to disable the validation of product when i click Add To Cart without exchange.

 

Test link http://shoperpoint.in/index.php/mobile/asus-nexus-7i-378.html

 

Thanks in advance!