I'm having the following JS error after making a bundle product, on Magento 1.4.1.1
It seems like the product price is never updated when adding/removing item options.
Do you know how to solve this problem ?
Uncaught ReferenceError: bundle is not defined
Sounds like there might be something missing from one og your product view template files. If you view the source of your bundled product page can you find a line like:
bundle = new Product.Bundle(config)
That's what I thought on the first place, but that declaration is included in the HTML generated source code...
You could see on the following source code, how I call JS resources files and where bundle object is declared.
It seems like it does not see that declaration and everything related to the bundle object.
I even tried to insert that declaration and every code line included in "bundle.js" inside HTML-Header from the Back-end. When I did that, it moved the problem. It said that it couldn't find "reloadPrice".... It's weird..
... <link rel="stylesheet" type="text/css" href="http://staging.lapetiteflute.com/js/calendar/calendar-win2k-1.css" /> <link rel="stylesheet" type="text/css" href="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/css/styles.css" media="all" /> <link rel="stylesheet" type="text/css" href="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/css/styles-th-lpf.css" media="all" /> <link rel="stylesheet" type="text/css" href="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/css/adpopup-pro.min.css" media="all" /> <link rel="stylesheet" type="text/css" href="http://staging.lapetiteflute.com/skin/frontend/base/default/css/widgets.css" media="all" /> <link rel="stylesheet" type="text/css" href="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/default/css/print.css" media="print" /> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/prototype/prototype.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/lib/ccard.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/prototype/validation.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/scriptaculous/builder.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/scriptaculous/effects.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/scriptaculous/dragdrop.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/scriptaculous/controls.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/scriptaculous/slider.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/varien/js.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/varien/form.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/varien/menu.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/mage/translate.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/mage/cookies.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/varien/product.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/calendar/calendar.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/calendar/calendar-setup.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/js/varien/weee.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/js/jquery.1.8.2.noConflict.min.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/js/jquery.jcarousel.min.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/js/jquery.sliderTE-min.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/js/adpopup-pro.min.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/js/general.js"></script> <script type="text/javascript" src="http://staging.lapetiteflute.com/skin/frontend/interface_lpf_fr/theme_lpf/js/bundle.js"></script> ... <script type="text/javascript"> //<![CDATA[ var bundle = new Product.Bundle({"options":{"6":{"selections":{"32":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Fredestel Brut Tradition","plusDisposition":0,"minusDisposition":0},"33":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Fredestel Demi-sec","plusDisposition":0,"minusDisposition":0},"34":{"qty":1,"customQty":"1","price":26,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Fredestel Grande R\u00e9serve","plusDisposition":0,"minusDisposition":0},"35":{"qty":1,"customQty":"1","price":27,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Thierry Houry Brut id\u00e9al","plusDisposition":0,"minusDisposition":0},"36":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"M\u00e9t\u00e9yer Brut Tradition","plusDisposition":0,"minusDisposition":0},"37":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"M\u00e9t\u00e9yer Demi-sec","plusDisposition":0,"minusDisposition":0},"38":{"qty":1,"customQty":"1","price":23.5,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Xavier Loriot Brut ","plusDisposition":0,"minusDisposition":0},"39":{"qty":1,"customQty":"1","price":23.5,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Xavier Loriot Demi-sec ","plusDisposition":0,"minusDisposition":0},"40":{"qty":1,"customQty":"1","price":26,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Xavier Loriot Grande R\u00e9serve","plusDisposition":0,"minusDisposition":0}},"title":"Champagne 1","isMulti":false},"16":{"selections":{"23":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Fredestel Brut Tradition","plusDisposition":0,"minusDisposition":0},"24":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Fredestel Demi-sec","plusDisposition":0,"minusDisposition":0},"25":{"qty":1,"customQty":"1","price":26,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Fredestel Grande R\u00e9serve","plusDisposition":0,"minusDisposition":0},"26":{"qty":1,"customQty":"1","price":27,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Thierry Houry Brut id\u00e9al ","plusDisposition":0,"minusDisposition":0},"27":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"M\u00e9t\u00e9yer Brut Tradition","plusDisposition":0,"minusDisposition":0},"28":{"qty":1,"customQty":"1","price":23,"priceValue":0,"priceType":"0","tierPrice":[],"name":"M\u00e9t\u00e9yer Demi-sec","plusDisposition":0,"minusDisposition":0},"29":{"qty":1,"customQty":"1","price":23.5,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Xavier Loriot Brut ","plusDisposition":0,"minusDisposition":0},"30":{"qty":1,"customQty":"1","price":23.5,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Xavier Loriot Demi-sec ","plusDisposition":0,"minusDisposition":0},"31":{"qty":1,"customQty":"1","price":26,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Xavier Loriot Grande R\u00e9serve","plusDisposition":0,"minusDisposition":0}},"title":"Champagne 2","isMulti":false},"15":{"selections":{"22":{"qty":1,"customQty":"1","price":77,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Chocolat","plusDisposition":0,"minusDisposition":0}},"title":"Chocolat","isMulti":true},"14":{"selections":{"21":{"qty":1,"customQty":"1","price":65,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Biscuit rose","plusDisposition":0,"minusDisposition":0}},"title":"Biscuits roses","isMulti":true},"13":{"selections":{"20":{"qty":1,"customQty":"1","price":29,"priceValue":0,"priceType":"0","tierPrice":[],"name":"La petite fl\u00fbte X6","plusDisposition":0,"minusDisposition":0}},"title":"Duo de fl\u00fbtes","isMulti":true},"12":{"selections":{"19":{"qty":1,"customQty":"1","price":5,"priceValue":0,"priceType":"0","tierPrice":[],"name":"Le petit bouchon","plusDisposition":0,"minusDisposition":0}},"title":"Bouchon papillon","isMulti":true}},"selected":[],"bundleId":"274","priceFormat":{"pattern":"%s\u00a0\u20ac","precision":2,"requiredPrecision":2,"decimalSymbol":",","groupSymbol":"\u00a0","groupLength":3,"integerRequired":1},"basePrice":0,"priceType":"0","specialPrice":null}); //]]> </script>