Michael Posted September 20, 2015 Report Posted September 20, 2015 I've been integrating a design, however for this one theme it uses a lot of javascript, I've tried to find which files to add the non conflict. The one in javascript/blesta-3.5.0.js was a easy fix, however the order forms won't budge the ajax works and loads the box widget but I can't seem to get the text for the product, the prices either showing up, even after I've added non conflict to the /plugins/order/views/templates/wizard/javascript/. Has anyone else doing themes for Blesta hit that yet Quote
activa Posted September 20, 2015 Report Posted September 20, 2015 use the firebug debugger extension to find the cause of the js problem . i use it and is a very helpful tools for developer . Quote
Michael Posted September 20, 2015 Author Report Posted September 20, 2015 use the firebug debugger extension to find the cause of the js problem . i use it and is a very helpful tools for developer . Downloaded it on firefox and tried and it looks confusing haha Quote
serge Posted September 20, 2015 Report Posted September 20, 2015 I got some success in Blesta by adding custom code taken from here: http://www.layoutit.com/build it's a drag drop builder free And you just paste the html code in blesta, the javascript part is not needed when your Blesta theme is using bootstrap Quote
Michael Posted September 20, 2015 Author Report Posted September 20, 2015 I got some success in Blesta by adding custom code taken from here: http://www.layoutit.com/build it's a drag drop builder free And you just paste the html code in blesta, the javascript part is not needed when your Blesta theme is using bootstrap that's a neat thing the issue I have is the scripts used like sliders, menu, etc not sure why as I haven't had the issue of conflicting before haha, I think it's because Blesta needs a higher JS version than the layout itself so it's causing issues but it's just the order form, the client dashboard, etc works fine. Quote
Blesta Addons Posted September 20, 2015 Report Posted September 20, 2015 is better to adjust the js of the theme rather than touching the order js files . Quote
Michael Posted September 20, 2015 Author Report Posted September 20, 2015 is better to adjust the js of the theme rather than touching the order js files . Yep but doesn't work for some reason, I've put them in the footer, doesn't load Blesta's js, put them in the top it works. Then the order form pages don't show the content / prices, however they are pure js files so I can't really edit them as I don't know what to edit, etc since they are made for jquery, the ones I can I did to stop conflicting before until I found out the blesta-3.5.0.js used just $( on everything and I put the conflict code in and it fixed most of the issues, minus this one. Quote
Blesta Addons Posted September 20, 2015 Report Posted September 20, 2015 is 1 file or multiple files ? if multiple try remove all , and them ad one by one unlil the order page stop working . then try to fix the fiel caused the probleme Michael 1 Quote
Michael Posted September 20, 2015 Author Report Posted September 20, 2015 is 1 file or multiple files ? if multiple try remove all , and them ad one by one unlil the order page stop working . then try to fix the fiel caused the probleme You mate have brains haha why didn't I think of that earlier on, but yeah it's due to Blesta needs newer Javascript, the theme needs older javascript. I did moan to the theme developer saying the slider / nav doesn't work on newer js but we've found the issue thanks to you mate, so stuck Temp fix: <?php if (strpos($_SERVER['REQUEST_URI'], "order") !== false){ ?> <script src="<?php echo $this->view_dir;?>javascript/jquery.min.js"></script> <script type="text/javascript" src="<?php echo $this->view_dir;?>javascript/bootstrap.min.js"></script> <?php }else{ ?> <script src="<?php echo $this->view_dir;?>js/jquery.min.js"></script> <script type="text/javascript" src="<?php echo $this->view_dir;?>js/bootstrap.min.js"></script> <?php } ?> But no nav unless shrink the screen haha. activa 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.