1

This question already has an answer here:

After updating from Magento 1.9.2 to 1.9.3 on my dev site the tabs on my item page broke. I looked in console for the dev site and see this error-

Uncaught TypeError: Product.optionsPrice is not a constructor
at http://www.example.com/circuit-breaker-1-pole-c-curve-2-amp-ul1077:573:24(anonymous function) @ circuit-breaker-1-pole-c-curve-2-amp-ul1077:573

That code is-

<script type="text/javascript">
var optionsPrice = new Product.optionsPrice([]);
if( jQuery ){
    jQuery( "#ja-tab-products" ).ready( function($) {
        $( "#ja-tab-products" ).jaContentTabs();                              
    } );
}
jQuery(document).ready(function() {
        urllocation =  window.location;

        if(urllocation.toString().indexOf("#review-form") > 0){
           jQuery("ul.ja-tab-navigator").find("a[href='#ja-tabitem-reviewform']").trigger("click");
           window.location = "#ja-tabitem-reviews";
        }
});

The line of code that is throwing the error is-

var optionsPrice = new Product.optionsPrice([]);

The production site on 1.9.2 with the exact same code works fine. Why am I getting an error? How do I get the tabs functioning again?

marked as duplicate by Raphael at Digital Pianism, Keyul Shah, Khoa TruongDinh, 7ochem, Amit Bera Nov 8 '16 at 11:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.