javascript - Magento setAttribute error on checkout page -
ok when "proceed checkout", gives list of :
- checkout method
- billing information
- shipping information
- shipping method
- payment information
- order review
by default, checkout method suppose dropped down , when hit "continue", billing information drop down similar : http://www.plazathemes.com/demo/ma_musicgear/index.php/checkout/onepage/
however, when go page, checkout method isn't dropped down , whenever click on it, nothing happens. these js errors:
uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5644 2 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5653 uncaught typeerror: object [object object] has no method 'setattribute' clearchannel.halfoffdeals.com/index.php/checkout/onepage/:349 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5644 uncaught typeerror: object [object object] has no method 'observe' opcheckout.js:236 uncaught typeerror: object [object object] has no method 'setattribute' clearchannel.halfoffdeals.com/index.php/checkout/onepage/:544 uncaught typeerror: object [object object] has no method 'observe' opcheckout.js:374 uncaught typeerror: object [object object] has no method 'observe' opcheckout.js:537 uncaught typeerror: object [object object] has no method 'getelementsbytagname' prototype.js:5010 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:5653 uncaught typeerror: object [object object] has no method 'attachevent' prototype.js:828 uncaught typeerror: object [object object] has no method 'dispatchevent'
do of have this? i'm getting attachevent , blah blah prototype because of bootstrap. don't know how resolve i'm putting on hold. i'm guessing setattribute causing problem?
thanks help..
i don't know if of help, on shopping cart page before hit proceed checkout, lists label "state/province" under estimate shipping , tax, not select/input box.. it's coming invalid region_id on checkout page:
so setattribute error coming section:
<div class="field"> <label for="shipping:region" class="required"><em>*</em>state/province</label> <div class="input-box"> <select id="shipping:region_id" name="shipping[region_id]" title="state/province" class="validate-select" style="display:none;"> <option value="">please select region, state or province</option> </select> <script type="text/javascript"> //<![cdata[ $('shipping:region_id').setattribute('defaultvalue', ""); uncaught typeerror: object [object object] has no method 'setattribute' //]]> </script> <input type="text" id="shipping:region" name="shipping[region]" value="" title="state/province" class="input-text " style="display:none;" /> </div> </div>
it's saying $('shipping:region_id') has no method setattribute..
@rommel has helped answer. these steps took solve issue:
- put in jquery-noconflict.js file :
jquery.noconflict();
- add in right after jquery.js file in
done! =) makes lot of errors people said bootstrap , prototype interfering each other. errors disappear after issuing noconflict()!
Comments
Post a Comment