I have a site on Magento 1.9,the product options do not show on the front end for configurable products. It throws the error like this.

Uncaught TypeError: Cannot read property 'hasClassName' of null

Currently I have not made no changes on the site but I am unable to figure out the exact problem. How do I go ahead. I have refered to previous answers(link) which mentioned about checking following things in case for product options not shown up on product page. And in my case these all conditions are met and yet I'm stuck on this.

  1. visibilty = not show inidividually
  2. stock = in stock
  3. attribute set = the same as configurable product
  4. price = also set
  5. status = enable

    enter image description here

  • Js confliction, can you disable the swatch and check Jun 13, 2018 at 6:45
  • How do i disable the swatch? Jun 13, 2018 at 6:45
  • open the backend, inside System -> Config section,you will find the swatch tab, disable that and check Jun 13, 2018 at 6:47
  • is it worked now ? Jun 13, 2018 at 6:55
  • @RahulSingh It worked.Thank you .I was checking what should i do for color swatch related attributes ? Jun 13, 2018 at 6:58

1 Answer 1


In your case swatches-product.js is Conflicting with prototype.js

Open the Backend, inside System -> Configuration Section, you will find the Configurable Swatches tab, disable that and check.


To add swatches product, check here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.