1

Product options for the configurable products are not coming at the product page.

echo $this->getJsonConfig()

did not return any value and the page breaks after var spConfig = new Product.Config(. I cant see any error in the log files. When I am going to page source I can see var spConfig = new Product.Config( and page ends. It could not load rest of the things after that script. Only select boxes are showing but no options are there. enter image description here

I could not understand what is the issue. Please suggest some solutions. Thank you in advance.

1 Answer 1

0
// set error verbosity
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Than see the php error. and debug.

2
  • I have uncomment " ini_set('display_errors', 1);" and got the error. The error is var spConfig = new Product.Config(<br /> <b>Fatal error</b>: Call to a member function getIsInStock() on a non-object in <b>public_html/app/code/core/Mage/Catalog/Block/Product/View/Type/Configurable.php</b> on line <b>158</b><br /> Can some one suggest how to solve the issue.
    – PBCoder
    Aug 11, 2017 at 12:57
  • Your magento version... in 1.9.2.4 , i have not any code like that.. Aug 11, 2017 at 13:01

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.