cancel
Showing results for 
Search instead for 
Did you mean: 

cannot call methods on priceBox prior to initialization

cannot call methods on priceBox prior to initialization

Hello I am using the razor theme for magento 2.3.1 .

When I load the quickview window the configurable product has not variation in the option menu.

The html console has this error:

Uncaught Error: cannot call methods on priceBox prior to initialization; attempted to call method 'option'
    at Function.error (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery.js:253)
    at HTMLDivElement.<anonymous> (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:488)
    at Function.each (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery.js:370)
    at jQuery.fn.init.each (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery.js:137)
    at jQuery.fn.init.$.fn.<computed> [as priceBox] (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:484)
    at $.<computed>.<computed>._initializeOptions (configurable.js:84)
    at $.<computed>.<computed>._initializeOptions (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:402)
    at $.<computed>.<computed>._create (configurable.js:57)
    at $.<computed>.<computed>._create (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:402)
    at $.<computed>.<computed>._createWidget (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:561)
    at new $.<computed>.<computed> (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:363)
    at $.<computed>.<computed> (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/jquery/jquery-ui.js:357)
    at /pub/static/version1562656815/frontend/razor/razor_default/it_IT/mage/apply/main.js:31
    at Object.execCb (require.js:1650)
    at Object.context.execCb (/pub/static/version1562656815/frontend/razor/razor_default/it_IT/mage/requirejs/resolver.js:145)
    at Module.check (require.js:866)

It seems that a function is called before some object it is initialized if I'm not wrong.

1 REPLY 1

Re: cannot call methods on priceBox prior to initialization

@alessandro_tiso  Hi, have you already tried with a configurable having different configurable attribute? Do you get the error just in product page?