tmcca Posted September 1, 2017 Share Posted September 1, 2017 In bootstrap for some reason this isnt working. here is part of code: require('includes/application_top.php'); require('includes/languages/' . $language . '/gv_faq.php'); $breadcrumb->add(NAVBAR_TITLE, tep_href_link(GV_FAQ)); require('includes/template_top.php'); ?> <h1><?php echo HEADING_TITLE; ?></h1> <script> $(function() { $( "#divFAQ" ).accordion({ autoHeight: false, navigation: true, collapsible: true }); }); </script> <div class="contentContainer"> <div class="contentText"> <div id="divFAQ"> <h3><a href="#">Purchasing Gift Vouchers/Store Credit</a></h3> <div> <p> Gift Vouchers/Store Credit are purchased just like any other item in our store. You can pay for them using the stores standard payment method(s). Once purchased the value of the Gift Voucher will be added to your own personal <?php echo BOX_HEADING_GIFT_VOUCHER; ?>. If you have funds in your <?php echo BOX_HEADING_GIFT_VOUCHER; ?>, you will notice that the amount now shows in the Shopping Cart box, and also provides a link to a page where you can send the Gift Voucher to some one via email. </p> </div> <h3><a href="#">How to send Gift vouchers</a></h3> <div> <p> To send a Gift Voucher that you have purchased, you need to go to our Send Gift Voucher Page. You can find the link to this page in the Shopping Cart Box in the right hand column of each page. When you send a Gift Voucher, you need to specify the following:<br> <br> The name of the person you are sending the Gift Voucher to.<br> Link to comment Share on other sites More sharing options...
MrPhil Posted September 1, 2017 Share Posted September 1, 2017 Exactly what isn't working? What are you expecting, and what are you seeing? Where did this code come from -- was it written for 2.3.4BS, or for an earlier version? Link to comment Share on other sites More sharing options...
tmcca Posted September 2, 2017 Author Share Posted September 2, 2017 trying to do this: https://jqueryui.com/accordion/ Link to comment Share on other sites More sharing options...
tmcca Posted September 2, 2017 Author Share Posted September 2, 2017 this works in 2.3.4 like this: http://petunderground.com/catalog/gv_faq.php in bootstrap it doesn't and wondering why? Link to comment Share on other sites More sharing options...
tmcca Posted September 2, 2017 Author Share Posted September 2, 2017 I think figured it out needed <script type="text/javascript" src="ext/jquery/jquery-1.11.1.min.js"></script> <script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.10.4.min.js"></script> but why? Link to comment Share on other sites More sharing options...
bonbec Posted September 2, 2017 Share Posted September 2, 2017 Hello, In my test site, I use this : https://www.w3schools.com/bootstrap/tryit.asp?filename=trybs_collapsible_accordion&stacked=h Find here (last exemple of the page) : https://www.w3schools.com/bootstrap/bootstrap_collapse.asp with OsC 2.2 since 2006 ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.