Jump to content
  • разработка интернет магазинов на opencart
  • доработка интернет магазинов на opencart

Баг в рилите шаблона legion-limeti


Recommended Posts

Есть непотому чтольшая проблема...

Скачал и усиновил шаблон legion-limeti. Столкнулся с проблемой: в корзине не рилииет крестик уднония товаров. Кто-то может помочь исправить баг?

Link to comment
Share on other sites


Смотрите ошибки в консоли ошипотому чток (или firefox+firebug или googleChrome).

Если есть что-то, типа

Error: $("#slider1").anythingSlider is not a function
Source File: http://evilred.octemplate.ru/index.php?route=checkout/cart
Line: 101
тогда пригдется разбираться вот с этим участком

<!-- Anything Slider -->
<link rel="stylesheet" href="catalog/view/theme/evilred/slider/css/anythingslider.css" type="text/css" media="screen" />
<script type="text/javascript" src="catalog/view/theme/evilred/slider/js/jquery.anythingslider.js"></script>

<script type="text/javascript">
// Set up Sliders
// **************
$(function(){

$('#slider1').anythingSlider({
startStopped    : false, // If autoPlay is on, this can force it to start stopped
width           : 800,   // Override the default CSS width
theme           : 'metallic',
onSlideComplete : function(slider){
// alert('Welcome to Slide #' + slider.currentPage);
}
});

$('#slider2').anythingSlider({
width               : 600,   // if resizeContent is false, this is the default width if panel size is not defined
height              : 350,   // if resizeContent is false, this is the default height if panel size is not defined
resizeContents      : false, // If true, solitary images/objects in the panel will expand to fit the viewport
startStopped        : true,  // If autoPlay is on, this can force it to start stopped
navigationFormatter : function(index, panel){ // Format navigation labels with text
return ['Recipe', 'Quote', 'Image', 'Quote #2', 'Image #2'][index - 1];
}
});

});
</script>

<script type="text/javascript">
// Demo functions
// **************
$(function(){

// External Link
$("#slide-jump").click(function(){
$('#slider2').anythingSlider(4);
return false;
});

// Report Events to console & features list
$('.anythingSlider').bind('slideshow_start slideshow_stop slideshow_paused slideshow_unpaused slide_init slide_begin slide_complete',function(e, slider){
// show object ID + event (e.g. "slider1: slide_begin")
var txt = slider.$el[0].id + ': ' + e.type + ', now on panel #' + slider.currentPage;
$('#status').text(txt);
if (window.console && window.console.firebug){ console.debug(txt); } // added window.console.firebug to make this work in Opera
});

// Theme Selector (This is really for demo purposes only)
var themes = ['minimalist-round','minimalist-square','metallic','construction','cs-portfolio'];
$('#currentTheme').change(function(){
var theme = $(this).val();
if (!$('link[href*=' + theme + ']').length) {
$('body').append('<link rel="stylesheet" href="catalog/view/theme/evilred/slider/css/theme-' + theme + '.css" type="text/css" media="screen" />');
}
$('#slider1').closest('div.anythingSlider')
.removeClass( $.map(themes, function(t){ return 'anythingSlider-' + t; }).join(' ') )
.addClass('anythingSlider-' + theme);
});

// Add a slide
var imageNumber = 1;
$('button.add').click(function(){
$('#slider1')
.append('<li><img src="catalog/view/theme/evilred/slider/images/slide-tele-' + (++imageNumber%2 + 1)  + '.jpg" alt="" /></li>')
.anythingSlider(); // update the slider
});
$('button.remove').click(function(){
if ($('#slider1').data('AnythingSlider').pages > 1) {
$('#slider1 > li:not(.cloned):last').remove();
$('#slider1').anythingSlider(); // update the slider
}
});

});
</script>

тут я уже не помощник :(

Link to comment
Share on other sites

Может кто другой поможет? Из мегаспецов, которым не лень поковыряться в когде? А то я не настролько продвинутый в PHP, чтобы быстро разобраться.:(

Link to comment
Share on other sites


Решил проблему головной потому чтоли методом её отсечения. :rolleyes: Т.е. просто удалил тот участок, в котором ты предложил искать проблему. Как ни странно, кнопка уднония зарилиила. Никаких других коскаков в рилите магазина пока не заметил... Интересно, а за что именно отвечал этот скрипт? Т.е., нах он им нужен?

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.