0

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 – Rahul Singh Jun 13 '18 at 6:45
  • How do i disable the swatch? – Srinath Naidu Jun 13 '18 at 6:45
  • open the backend, inside System -> Config section,you will find the swatch tab, disable that and check – Rahul Singh Jun 13 '18 at 6:47
  • is it worked now ? – Rahul Singh Jun 13 '18 at 6:55
  • @RahulSingh It worked.Thank you .I was checking what should i do for color swatch related attributes ? – Srinath Naidu Jun 13 '18 at 6:58
0

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.

swatch

To add swatches product, check here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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