Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: ANLEITUNG: Hersteller in Slider auf Startseite anzeigen (für Template tpl_modified)

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.984
    • Geschlecht:
    @manne35

    Du könntest auf der I-net-Seite des Sliders nachschauen (die ich auch in diesem Thread schonmal verlinkt habe).
    Für deine Frage dann also hier und nach touchEnabled suchen.
    Das sollte allerdings per Default angeschaltet sein.
    Evtl. hast du nicht die aktuellste Version des Sliders.

    Gruß,
    noRiddle

    manne35

    • Fördermitglied
    • Beiträge: 615
    • Geschlecht:
    Vielen Dank für den Tipp,
    touchEnabled, klingt passend, aber irgendwie gibts da gar keine Reaktion auf irgendauchwelche Änderungen in der general_bottom.js. ( auch cache Leeren )

    Ich nutze ja quasi für die Ausgabe die boxes/box_best_sellers.html   des bootstrap templates. ( nur angepasst.)
    Aber auch die box_best_sellers.html  krieg ich nicht Fingerfähig...
    <div id="bsCarousel" class="carousel slide">

    Vielleicht erlaube ich mir, im bootstrap Thema nochmals nachzufragen, ob jemand die Bestseller schon fingerfähig gekriegt hat.

    Also Danke dafuer und schönen Gruss
    manne

    Alexlaiho1980

    • Fördermitglied
    • Beiträge: 52
    • Geschlecht:
    Hi,
    ich hole mal diesen Thread wieder hoch. Ich versuche den Slider für das Bootstrap3 Template für die
    Shopversion v2.0.1.0 rev 10403 einzubauen.

    Leider finde ich in meiner general_Bottom folgendes nicht

    templates/tpl_modified/javascript/general_bottom.js.php
    suche:

    Code: PHP  [Auswählen]
      
    Code: PHP  [Auswählen]
     $('.bxcarousel_slider').bxSlider({
          adaptiveHeight: false,
          mode: 'fade',
          auto: true,
          speed: 2000,
          pause: 6000
        });
     
    darunter einfügen:

    Code: PHP  [Auswählen]
      
    Code: PHP  [Auswählen]
     $('.bxcarousel_manufacturers').bxSlider({
          minSlides: 2,
          maxSlides: 5,
          pager: true,
          slideWidth: 134,
          slideMargin: 15
        });

    Meine Datei sieht so aus:
    Code: PHP  [Auswählen]
    <?php
    /*-----------------------------------------------------------
       $Id: general_bottom.js.php 11090 2018-03-15 19:21:01Z Tomcraft $

       modified eCommerce Shopsoftware
       http://www.modified-shop.org

       Copyright (c) 2009 - 2013 [www.modified-shop.org]
      -----------------------------------------------------------
       based on: (c) 2003 - 2006 XT-Commerce (general.js.php)
      -----------------------------------------------------------
       Released under the GNU General Public License
       -----------------------------------------------------------
    */

    // this javascriptfile get includes at the BOTTOM of every template page in shop
    // you can add your template specific js scripts here

    // Template Sprachdatei laden
    $smarty->config_load('lang_'.$_SESSION['language'].'.custom');
    $heading_mmenu = $smarty->get_config_vars('heading_mmenu');
    $heading_responsivemenu = $smarty->get_config_vars('heading_responsivemenu');

    $script_array = array(
            DIR_TMPL_JS.'jquery-1.12.4.min.js',
            DIR_TMPL_JS.'jquery-migrate-1.4.1.min.js',
            DIR_TMPL_JS.'bootstrap.min.js',
            DIR_TMPL_JS.'pushy.min.js',
            DIR_TMPL_JS.'bscarousel.min.js',
            DIR_TMPL_JS.'jquery.unveil.min.js',
            DIR_TMPL_JS.'jquery.alerts.min.js',
    );

    // Cloud Zoom
    if (USE_CLOUD_ZOOM == true) {
            $script_array[] = DIR_TMPL_JS .'cloud-zoom.1.0.3.min.js';
    }

    // Touch use für Superfishmenü
    if (TOUCH_USE == true) {
            $script_array[] = DIR_TMPL_JS .'touchuse.min.js';
    }

    // MMenü
    if (MMENU == true)
            $script_array[] = DIR_TMPL_JS .'jquery.mmenu.min.js';

    // einfaches Responsivmenü
    if (RESPONSIVEMENU == true)
            $script_array[] = DIR_TMPL_JS .'resmenu.min.js';


    $script_min = DIR_TMPL_JS.'tpl_plugins.min.js';

    $this_f_time = filemtime(DIR_FS_CATALOG.DIR_TMPL_JS.'general_bottom.js.php');

    if (COMPRESS_JAVASCRIPT == 'true') {
            require_once(DIR_FS_BOXES_INC.'combine_files.inc.php');
            $script_array = combine_files($script_array,$script_min,false,$this_f_time);
    }

    foreach ($script_array as $script) {
            $script .= strpos($script,$script_min) === false ? '?v=' . filemtime(DIR_FS_CATALOG.$script) : '';
            echo '<script src="'.DIR_WS_BASE.$script.'" type="text/javascript"></script>'.PHP_EOL;
    }
    ?>
    <?php require DIR_FS_CATALOG . DIR_TMPL_JS . 'get_states.js.php'; ?>

    <script type="text/javascript">
            $(window).on('load',function() {
                    $(".unveil").show();
                    $(".unveil").unveil(200);
            $(".unveil").css({"display":"inline-block"});
                    $('.show_rating input').change(function () {
                            var $radio = $(this);
                            $('.show_rating .selected').removeClass('selected');
                            $radio.closest('label').addClass('selected');
                    });
            });
            $(document).ready(function(){
                    // Copyright 2014-2015 Twitter, Inc.
                    // Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
                    if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
                            var msViewportStyle = document.createElement('style')
                            msViewportStyle.appendChild(
                                    document.createTextNode(
                                            '@-ms-viewport{width:auto!important}'
                                    )
                            )
                            document.querySelector('head').appendChild(msViewportStyle)
                    }
    <?php if (!isset($_COOKIE['eucookie'])): ?>
                    // EU-Cookie
                    function SetCookie(c_name,value,expiredays) {
                            var exdate=new Date()
                            exdate.setDate(exdate.getDate()+expiredays)
                            document.cookie=c_name+ "=" +escape(value)+";path=/"+((expiredays==null) ? "" : ";expires="+exdate.toGMTString())
                    }
                    // erweitert siehe Forum - Hinweis von Hanspeter
                    if( document.cookie.indexOf("eucookie") ===-1 && navigator.cookieEnabled){
                            $("#eucookielaw").show();
                    }
                    $("#set_cookie").click(function () {
                            SetCookie('eucookie','eucookie',365)
                            $("#eucookielaw").remove();
                    });
    <?php endif; ?>
    <?php if (MMENU == true):
    if (MMENU_MAXLEVEL != false): ?>
                    // Maxlevel Mmenü
                    $("#menu ul").each(function(){var a=$(this).attr("data-level");if(a><?php echo MMENU_MAXLEVEL; ?>)$(this).remove();});
    <?php endif; ?>
                    // mmenu
                    load_mmenu();
                    $('nav#menu').mmenu({navbar:{title:'<?php echo $heading_mmenu ?>', titleClass:'<?php echo TOP1_NAVBAR ?>'}});
    <?php endif; ?>
    <?php if (RESPONSIVEMENU == true):
    if (RESPONSIVEMENU_MAXLEVEL != false): ?>
                    // Maxlevel Responsivmenü
                    $(".responsive-nav ul").each(function(){var a=$(this).attr("data-level");if(a><?php echo RESPONSIVEMENU_MAXLEVEL; ?>)$(this).remove();});
    <?php endif; ?>
                    // Responsivmenü
                    resMenu();
    <?php endif; ?>
                    // Karussell - Slider auf Startseite
                    $('#myCarousel').carousel({interval:4000});
                    // prüfen, ob Link in Navbar ansonsten ausblenden
                    if(!$(".canvasmenu a").length){$("#content_navbar2").css("display","none");}
                    // Bestsellerslider (autoslide -> interval:4000; nur per Klick -> interval:false)
                    $('#bsCarousel').carousel({interval:4000});
                    // Go to top
                    $(window).scroll(function() {if ($(this).scrollTop()) {$('.go2top').fadeIn();} else {$('.go2top').fadeOut();}});$(".go2top").click(function() {$("html, body").animate({scrollTop: 0}, 1000);});
                    // Farbe bei Filter wechseln
                    $(".filter_bar select option:selected").each(function(){if($(this).val() != "") $(this).parent().addClass('label label-default');});
                    // Modalbox
                    function loadGallery(){
                            var current_image =0,selector=0,total = $('.pd_more_images a.cbimages').last().attr('data-image-id');
                            if (total > 1){
                                    $('#show-next-image, #show-previous-image').click(function(){
                                            if($(this).attr('id') == 'show-previous-image'){
                                                    current_image--;
                                                    if (current_image < 1)current_image=total;
                                            } else {
                                                    current_image++;
                                                    if (current_image > total)current_image=1;
                                            }
                                selector = $('[data-image-id="' + current_image + '"]');
                                            updateModal(selector,'image');
                                    });
                            }
                    function updateModal(selector,type) {
                                    var $sel = selector;
                                    var curtext = "<?php echo TEXT_COLORBOX_CURRENT; ?>";
                                    if (type == 'image'){
                            current_image = $sel.attr('data-image-id');
                                            var text = curtext.replace('{current}', current_image).replace('{total}', total);
                            $('.modal-title').text($sel.attr('data-title'));
                            $('.modal-body').empty().append('<img class="img-responsive center-block" src="'+$sel.attr('data-image')+'">');
                                            if (total > 1){
                                    $('#show-next-image, #show-previous-image, .modal-footer .counter').show();
                                    $('.modal-footer .counter').empty().append(text);
                                            } else {
                            $('#show-next-image, #show-previous-image, .modal-footer .counter').hide();
                                            }
                                    } else {
                            var windowheight = $(window).height()-225;
                            $('#show-next-image, #show-previous-image, .modal-footer .counter').hide();
                            $('.modal-title').text($sel.attr('title'));
                            $('.modal-body').html('<iframe id="frame" src="'+$sel.data('src')+'" width="100%" height="'+windowheight+'" frameborder="0"></iframe>');
                                            if (type == 'layer'){
                                                    $('#modal').modal('show');
                                            }
                                    }
                    }
                    $('a.cbimages').on('click',function(){
                        updateModal($(this),'image');
                    });
                    $('a.iframe').on('click',function(){
                        updateModal($(this),'iframe');
                    });
                            $("#print_order_layer").on('submit', function(event) {
                                    $(this).attr('data-src',$(this).attr("action") + '&' + $(this).serialize());
                        updateModal($("#print_order_layer"),'layer');
                                    return false;
                            });
                }
                    $("#modal").on('hidden.bs.modal', function () {
                $('.modal-title').empty();
                $('.modal-body').empty();
                $('.modal-footer .counter').empty();
                    });
                    $('a.iframe').each(function() {
                            $(this).attr("data-src", $(this).attr("href"));
                            $(this).attr("data-toggle", "modal");
                            $(this).attr("data-target", "#modal");
                            $(this).attr("href", "#");
                    });
            loadGallery();
                    // aktiviere Tabs
                    $('#horizontalTab .tab-pane').removeClass('active');
                    $('#bs_tabs a:first').tab('show');
                    // Accordion
                    $('#accordion .panel-collapse').removeClass('in');
                    $('#accordion .more-less').toggleClass('glyphicon-triangle-top glyphicon-triangle-bottom');
                    $('#accordion .panel-collapse:first').collapse('show');
                    function toggleIcon(e) {
                            $(e.target)
                    .prev('.panel-heading')
                    .find(".more-less")
                    .toggleClass('glyphicon-triangle-bottom glyphicon-triangle-top');
                    }
                    $('.panel-group').on('hidden.bs.collapse', toggleIcon);
                    $('.panel-group').on('shown.bs.collapse', toggleIcon);
                    $('.panel-group').has('[id^="acc"]').on('shown.bs.collapse', function(e) {
                            $(this).find('span[data-target=#'+e.target.id+'] input').prop('checked', true).triggerHandler('click');
                    });
                    // Tooltip
                    $(function () {
                            $('[data-toggle="tooltip"]').tooltip()
                    })
    <?php if (SEARCH_AC_STATUS == 'true') { ?>
                    // autocomplete
                    var option = $('#suggestions');
                    $(document).click(function(e){
                            var target = $(e.target);
                            if(!(target.is(option) || option.find(target).length)){
                                    ac_closing();
                            }
                    });
    <?php } ?>
            });
    <?php if (strstr($PHP_SELF, 'checkout')) { ?>
                    $('#button_checkout_confirmation').on('click',function() {
                            $(this).hide();
                    });
    <?php } ?>
    <?php if (SEARCH_AC_STATUS == 'true') { ?>
                    var ac_pageSize = 6;
                    var ac_page = 1;
                    var ac_result = 0;
                    var ac_show_page = '<?php echo AC_SHOW_PAGE; ?>';
                    var ac_show_page_of = '<?php echo AC_SHOW_PAGE_OF; ?>';
     
                    function ac_showPage(ac_page) {
                            ac_result = Math.ceil($("#autocomplete_main").children().length/ac_pageSize);
                            $('.autocomplete_content').hide();
                            $('.autocomplete_content').each(function(n) {
                                    if (n >= (ac_pageSize * (ac_page - 1)) && n < (ac_pageSize * ac_page)) {
                                            $(this).show();
                                    }
                            });
                            $('#autocomplete_next').css('visibility', 'hidden');
                            $('#autocomplete_prev').css('visibility', 'hidden');
                            if (ac_page > 1) {
                                    $('#autocomplete_prev').css('visibility', 'visible');
                            }
                            if (ac_page < ac_result && ac_result > 1) {
                                    $('#autocomplete_next').css('visibility', 'visible');
                            }
                            $('#autocomplete_count').html(ac_show_page+ac_page+ac_show_page_of+ac_result);
                    }
                    function ac_prevPage() {
                            if (ac_page == 1) {
                                    ac_page = ac_result;
                            } else {
                                    ac_page--;
                            }
                            if (ac_page < 1) {
                                    ac_page = 1;
                            }
                            ac_showPage(ac_page);
                    }
                    function ac_nextPage() {
                            if (ac_page == ac_result) {
                                    ac_page = 1;
                            } else {
                                    ac_page++;
                            }
                            ac_showPage(ac_page);
                    }
                    function ac_lookup(inputString) {
                            if(inputString.length == 0) {
                                    $('#suggestions').hide();
                            } else {
                                    $.post("<?php echo xtc_href_link('api/autocomplete/autocomplete.php', '', $request_type); ?>", {queryString: ""+inputString+""}, function(data) {
                                            if(data.length > 0) {
                                                    $('#suggestions').slideDown();
                                                    $('#autoSuggestionsList').html(data);
                                                    ac_showPage(1);
                                                    $('#autocomplete_prev').click(ac_prevPage);
                                                    $('#autocomplete_next').click(ac_nextPage);
                                            }
                                    });
                            }
                    }
    <?php } ?>
    <?php if (SEARCH_AC_STATUS == 'true' || (!strstr($PHP_SELF, FILENAME_SHOPPING_CART) && !strstr($PHP_SELF, 'checkout'))) { ?>
                    function ac_closing() {
                            setTimeout("$('#suggestions').slideUp();", 100);
                            ac_page = 1;
                    }
    <?php } ?>
                    $.alerts.overlayOpacity = .2;
                    $.alerts.overlayColor = '#000';
                    function alert(message, title) {
                            title = title || 'Information';
                            jAlert(message, title);
                    }
    <?php if (!strstr($PHP_SELF, FILENAME_SHOPPING_CART) && !strstr($PHP_SELF, 'checkout')) { ?>
                    $(function() {
                            $('#toggle_cart').click(function() {
                                    $('.toggle_cart').slideToggle('slow');
                                    $('.toggle_wishlist').slideUp('slow');
                                    ac_closing();
                                    return false;
                            });
                            $("html").not('.toggle_cart').bind('click',function(e) {
                                    $('.toggle_cart').slideUp('slow');
                            });
    <?php if (DISPLAY_CART == 'false' && isset($_SESSION['new_products_id_in_cart'])) {
                                    unset($_SESSION['new_products_id_in_cart']); ?>
                                    $('.toggle_cart').slideToggle('slow');
                                    timer = setTimeout(function(){$('.toggle_cart').slideUp('slow');}, 3000);
                                    $('.toggle_cart').mouseover(function() {clearTimeout(timer);});
    <?php } ?>
                    });
                    $(function() {
                            $('#toggle_wishlist').click(function() {
                                    $('.toggle_wishlist').slideToggle('slow');
                                    $('.toggle_cart').slideUp('slow');
                                    ac_closing();
                                    return false;
                            });
                            $("html").not('.toggle_wishlist').bind('click',function(e) {
                                    $('.toggle_wishlist').slideUp('slow');
                            });
    <?php if (DISPLAY_CART == 'false' && isset($_SESSION['new_products_id_in_wishlist'])) {
                    unset($_SESSION['new_products_id_in_wishlist']);
    ?>
                            $('.toggle_wishlist').slideToggle('slow');
                            timer = setTimeout(function(){$('.toggle_wishlist').slideUp('slow');}, 3000);
                            $('.toggle_wishlist').mouseover(function() {clearTimeout(timer);});
    <?php } ?>
                    });
    <?php } else {
                    unset($_SESSION['new_products_id_in_cart']);
                    unset($_SESSION['new_products_id_in_wishlist']);
    } ?>
    <?php if (TOUCH_USE == true) { ?>
                    $(function () {
                            $('#navbar').doubleTapToGo();
                    });
    <?php } ?>
    <?php if (ADVANCED_JS_VALIDATION == true && (strstr($PHP_SELF, FILENAME_CREATE_ACCOUNT) || strstr($PHP_SELF, FILENAME_CREATE_GUEST_ACCOUNT))) {
                    require_once (DIR_FS_EXTERNAL.'password_policy/password_policy.php');
    ?>
                    $(function () {
                            var key, hasWarnings;
                            var classWarnings = "text-danger";
                            var strWarnings = $("#create_account .alert-warning").html();
                            var warnings = {
    <?php
            if (defined('ENTRY_GENDER_ERROR')) echo '                               "' . html_entity_decode(ENTRY_GENDER_ERROR) . '" : "gender",' . PHP_EOL;
            if (defined('ENTRY_FIRST_NAME_ERROR')) echo '                           "' . html_entity_decode(ENTRY_FIRST_NAME_ERROR) . '" : "firstname",' . PHP_EOL;
            if (defined('ENTRY_LAST_NAME_ERROR')) echo '                            "' . html_entity_decode(ENTRY_LAST_NAME_ERROR) . '" : "lastname",' . PHP_EOL;
            if (defined('ENTRY_DATE_OF_BIRTH_ERROR')) echo '                                "' . html_entity_decode(ENTRY_DATE_OF_BIRTH_ERROR) . '" : "dob",' . PHP_EOL;
            if (defined('ENTRY_EMAIL_ADDRESS_ERROR')) echo '                                "' . html_entity_decode(ENTRY_EMAIL_ADDRESS_ERROR) . '" : "email_address",' . PHP_EOL;
            if (defined('ENTRY_EMAIL_ADDRESS_CHECK_ERROR')) echo '                          "' . html_entity_decode(ENTRY_EMAIL_ADDRESS_CHECK_ERROR) . '" : "email_address",' . PHP_EOL;
            if (defined('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS')) echo '                         "' . html_entity_decode(ENTRY_EMAIL_ADDRESS_ERROR_EXISTS) . '" : "email_address",' . PHP_EOL;
            if (defined('ENTRY_EMAIL_ERROR_NOT_MATCHING')) echo '                           "' . html_entity_decode(ENTRY_EMAIL_ERROR_NOT_MATCHING) . '" : "confirm_email_address",' . PHP_EOL;
            if (defined('ENTRY_STREET_ADDRESS_ERROR')) echo '                               "' . html_entity_decode(ENTRY_STREET_ADDRESS_ERROR) . '" : "street_address",' . PHP_EOL;
            if (defined('ENTRY_POST_CODE_ERROR')) echo '                            "' . html_entity_decode(ENTRY_POST_CODE_ERROR) . '" : "postcode",' . PHP_EOL;
            if (defined('ENTRY_CITY_ERROR')) echo '                         "' . html_entity_decode(ENTRY_CITY_ERROR) . '" : "city",' . PHP_EOL;
            if (defined('ENTRY_STATE_ERROR')) echo '                                "' . html_entity_decode(ENTRY_STATE_ERROR) . '" : "state",' . PHP_EOL;
            if (defined('ENTRY_STATE_ERROR_SELECT')) echo '                         "' . html_entity_decode(ENTRY_STATE_ERROR_SELECT) . '" : "state",' . PHP_EOL;
            if (defined('ENTRY_COUNTRY_ERROR')) echo '                              "' . html_entity_decode(ENTRY_COUNTRY_ERROR) . '" : "country",' . PHP_EOL;
            if (defined('ENTRY_TELEPHONE_NUMBER_ERROR')) echo '                             "' . html_entity_decode(ENTRY_TELEPHONE_NUMBER_ERROR) . '" : "telephone",' . PHP_EOL;
            if (defined('ENTRY_PASSWORD_ERROR')) echo '                             "' . sprintf(html_entity_decode(ENTRY_PASSWORD_ERROR), ENTRY_PASSWORD_MIN_LENGTH) . '" : "password",' . PHP_EOL;
            if (defined('ENTRY_PASSWORD_ERROR_MIN_LOWER')) echo '                           "' . sprintf(html_entity_decode(ENTRY_PASSWORD_ERROR_MIN_LOWER), POLICY_MIN_LOWER_CHARS) . '" : "password",' . PHP_EOL;
            if (defined('ENTRY_PASSWORD_ERROR_MIN_UPPER')) echo '                           "' . sprintf(html_entity_decode(ENTRY_PASSWORD_ERROR_MIN_UPPER), POLICY_MIN_UPPER_CHARS) . '" : "password",' . PHP_EOL;
            if (defined('ENTRY_PASSWORD_ERROR_MIN_NUM')) echo '                             "' . sprintf(html_entity_decode(ENTRY_PASSWORD_ERROR_MIN_NUM), POLICY_MIN_NUMERIC_CHARS) . '" : "password",' . PHP_EOL;
            if (defined('ENTRY_PASSWORD_ERROR_MIN_CHAR')) echo '                            "' . sprintf(html_entity_decode(ENTRY_PASSWORD_ERROR_MIN_CHAR), POLICY_MIN_SPECIAL_CHARS) . '" : "password",' . PHP_EOL;
            if (defined('ENTRY_PASSWORD_ERROR_NOT_MATCHING')) echo '                                "' . html_entity_decode(ENTRY_PASSWORD_ERROR_NOT_MATCHING) . '" : "confirmation",' . PHP_EOL;
            if (defined('ENTRY_PRIVACY_ERROR')) echo '                              "' . html_entity_decode(ENTRY_PRIVACY_ERROR) . '" : "privacy",' . PHP_EOL;
            if (defined('ERROR_VVCODE_POPUP')) echo '                               "' . html_entity_decode(ERROR_VVCODE_POPUP) . '" : "vvcode",' . PHP_EOL;
    ?>
                            };
    <?php
            echo '                  $("#create_account *[name=\'street_address\']").blur(function() {if(!/[1-9]/.test(this.value) && this.value.length >= ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . '){$(\'#number-error\'). slideDown(200)}else{$(\'#number-error\').slideUp(200)}});' . PHP_EOL;
            if ($_SESSION['language_code'] == 'de') {
                    echo '                  $("#create_account *[name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">Hausnummer fehlt!</span> Ignorieren Sie diese Meldung wenn Sie keine haben.</div>\');' . PHP_EOL;
            } else if ($_SESSION['language_code'] == 'en') {
                    echo '                  $("#create_account *[name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">House number is missing!</span> Ignore this message if you have no house number.</div>\');' . PHP_EOL;
            }  else {
                    echo '                  $("#create_account *[name=\'street_address\']").parent().append(\'<div id="number-error" style="width: 95%; float: left; display: none;"><span class="\' + classWarnings + \'">House number is missing!</span> Ignore this message if you have no house number.</div>\')' . PHP_EOL;
            }
    ?>
                            for (key in warnings) {
                                    if (typeof strWarnings != "undefined" && strWarnings.indexOf(key) != -1) {
                                            $("#create_account *[name='" + warnings[key] + "']").parent().append('<div class="create-account-warning-text" style="width: 95%; float: left;">' + key + '</div>').addClass(classWarnings);
                                            if (hasWarnings != 1) {
                                                    $("#create_account .alert-warning").css("display", "none");
                                                    $("#create_account *[name='password'], #create_account *[name='confirmation'], #create_account *[name='vvcode']").parent().addClass(classWarnings);
                                            }
                                            hasWarnings = 1;
                                    }
                            }
                    });
    <?php } ?>
    <?php
    // KK-Megamenü
    if(!empty($KK_MEGAS)) {
    ?>
    (function($){
            //define the defaults
            $.fn.KKMega = function(options){
                    //set default options
                    var defaults = {
                            rows: 3,
                    };

                    //call in the default otions
                    var options = $.extend(defaults, options);
                    var $KKMegaObj = this;

                    return $KKMegaObj.each(function(options){
                            megaSetup();

                            function megaSetup(){

                                    $($KKMegaObj).each(function(){
                                            if (this.id != 'main') {
                                                    $(this).addClass('kk-mega');
                                            }
                                                    $('li',this).addClass('kk-mega');
                                                    $('ul',this).addClass('kk-mega');
                                                    var percent = Math.floor(100/defaults.rows);
                                $('li.kk-mega.level2',this).css( "width", percent +"%" );
                                                    $('ul.level2 ul',this).removeClass('dropdown-menu');
                                                    $('span.caret-right',this).remove();
                                    });

                            }
                    });
            };

    })(jQuery);

    $(document).ready(function(){

    <?php foreach ($KK_MEGAS as $megas) {
                    $mega = explode("-", $megas);
    ?>

            $('#<?php echo $mega[0]; ?>').KKMega({
                    rows: '<?php echo $mega[1]; ?>',
            });

    <?php } ?>
    });

    <?php
    }
    // Ende KK-Megamenü
    ?>

    </script>

    von manne35, wie ich das verstehe hat ja quasi nur die Datei box_manufacturers_carousel.html mit folgenden Inhalt angelegt, oder? :)
    Code: PHP  [Auswählen]
    {config_load file="$language/lang_$language.conf" section="boxes"}
    {config_load file="lang_`$language`.custom"}

    {if count($BOX_CONTENT) > 0}
    <br class="clearfix" />
    <div id="bsCarousel" class="carousel slide">
        <div class="carousel-controls hidden mb">
                    <a class="btn btn-sm btn-default pull-left" href="#bsCarousel" data-slide="prev">
                            <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span>
                            <span class="sr-only">Zurück</span>
                    </a>
                    <a class="btn btn-sm btn-default pull-right" href="#bsCarousel" data-slide="next">
                            <span class="glyphicon glyphicon-arrow-right" aria-hidden="true"></span>
                            <span class="sr-only">Weiter</span>
                    </a>
        </div>
            <div class="carousel-inner mb">

            {foreach name=aussen item=box_data from=$BOX_CONTENT}
                    <div class="cols col-xs-3 col-sm-2">
                            <a href="{$box_data.LINK}" class="img-carousel-thumbnail" title="{$box_data.NAME|onlytext}">
                                    {if $box_data.IMAGE}<img class="img-responsive center-block" src="{$box_data.IMAGE}" alt="{$box_data.NAME|onlytext}" title="{$box_data.NAME|onlytext}" />{/if}
                                    <span class="prod_title small text-center">{$box_data.NAME}</span>
                            </a>
                    </div>
            {/foreach}    

            </div>
    </div>
    <br class="clearfix" />
    {/if}
     

    noRiddle (revilonetz)

    • Experte
    • Beiträge: 13.984
    • Geschlecht:
    Bist du sicher, daß deine Frage in den vorliegenden Thread gehört, bzw. die Anleitung auf dein Template zutrifft ?
    Ich bin da nicht sicher.
    Im Titel steht u.A. "(für Template tpl_modified)".
    Ein paar Posts höher hat das awids bereits schon einmal angemahnt.

    Das macht vielleicht nicht weg, daß du die hier beschriebene Funktion gerne hättest. Es sollte jedoch geschaut werden, ob dein Template einen vergleichbaren Slider wie den hier verwendeten bxSlider implementiert hat und man jenen für den Zweck benutzen kann oder den hier verwendeten implementieren muß. Jedenfalls geht es nicht mit der hier vorliegenden Anleitung, wie du eigtl. selbst hättest feststellen können.

    Gruß,
    noRiddle

    manne35

    • Fördermitglied
    • Beiträge: 615
    • Geschlecht:
    Hallo Alex,
    weil Du mich zitierst,
    soweit ich mich erinnern kann  - ich habs dann doch nicht eingesetzt -
    ist es fuer das bootstrap template besser, wenn Du den bestehenden bestseller slider duplizierst und umbenennst.
    - Weil es bei der Bestseller box auch funktioniert hat mit dem Finger zu verschieben.

    Ansonsten wie am Anfang des Themas beschrieben, die Dateien um die Hersteller Infos aus der db zu holen und nur damit dann die Kopie des sliders  ansteuerst.
    Die javascript wird glaube ich gar nicht benötigt, weil das schon drin ist. (Eben bestseller box)

    Sorry dass ich es nicht genauer hab, aber ich habs halt dann nicht eingesetzt. Aber ich schau nochmal ob ich es mir notiert habe.
    lgmanne

    Alexlaiho1980

    • Fördermitglied
    • Beiträge: 52
    • Geschlecht:
    @noRiddle

    habe in diesem Thread gefragt da manne35 es ja für mein Template nach dieser Anleitung angepasst hatte und ich sonst im www nix gefunden habe.

    @manne35
    danke, werd mal gucken ob ich es irgendwie hinkriege :)

    manne35

    • Fördermitglied
    • Beiträge: 615
    • Geschlecht:
    So jetzt hab ich mal gegraben in meiner alten Testinstallation mit bootstrap 3 Template:

    index.html

    Code: PHP  [Auswählen]
                                    <div id="col_right" class="col-xs-12 col-md-9">        
                    {if isset($box_MANUFACTURERS_CAROUSEL)}{$box_MANUFACTURERS_CAROUSEL}{/if}
                                    </div> 

     die
    templates/bootstrap3/boxes/box_best_sellers.html duplizieren zu
    box_manufacturers_carousel.html
    /templates/bootstrap3/boxes/box_manufacturers_carousel.html

    und passend dazu
    eben die Anleitung von Markus und noRiddle
    zu Beginn des Themas um die Hersteller aus der db zu holen
    templates/bootstrap3/source/boxes/manufacturers_carousel.php
    ganz unten anpassen
    Code: PHP  [Auswählen]
      $box_smarty->assign('BOX_CONTENT', $box_content);
      $box_manufacturers_carousel = $box_smarty->fetch(CURRENT_TEMPLATE.'/boxes/box_manufacturers_carousel.html');

      $smarty->assign('box_MANUFACTURERS_CAROUSEL', $box_manufacturers_carousel);

    die javascript und css solltest Du dann nicht benötigen, da die der bestseller box verwendet werden.
    Beide gleichzeitig also bestseller box und manufacturers box giengen glaube allerdings nicht, ...

    Viel Glück
    lg manne

    Hetfield

    • modified Team
    • Beiträge: 937
    Nur mal so zur Info: Das Modul MITS ProductsTreadmill kann auch die Hersteller anzeigen. Ist u.a. auch der bxSlider integriert und kompatibel mit den Templates tpl_modified und tpl_modified_responsive.

    MfG Hetfield  8-)
    139 Antworten
    59687 Aufrufe
    16. April 2016, 20:40:22 von Sven_Voet
    24 Antworten
    9234 Aufrufe
    19. Mai 2016, 10:56:37 von Bonsai