Magento Price Change

On the browse directory page, I added a dropdown user selection. When a user selects a user, the price should change accordingly. But as an option is selected from the drop-down list, I get this error

TypeError: opConfig undefined ..

I searched for this opConfig problem in Magento but could not find a solution.

+4
source share
2 answers

I found the cause of this problem.

In your topics, the equivalent of this path

/app/design/frontend/base/default/template/catalog/product/view/options.phtml

You will see an empty line before the line Product.Options = Class.create();. Remove this empty line and the problem with opConfig will be resolved.

+1
source

The question is not simple. on your browse page find this line (options.phtml)

 var opConfig = new Product.Options(...);

undefined, 2 ,

  • JavaScript opConfig.

  • config script .

0

All Articles