Jump to content
Sign in to follow this  
rahol

Помогите разобраться в коде

Recommended Posts

Всем привет, подскажите плиз, как совместить фильтр-про с шопикой? Вот отправили мне инструкцию. (прикреплено). Только не могу разобраться в коде. как-то невнятно для меня объяснили, что где поправлять. Спасибо

shoppica_install.txt

Share this post


Link to post
Share on other sites

use this manual ONLY if you have shoppicca2 template

in filter admin set field "css path for product container" to

.s_listing.clearfix

and field "afterload js" to

            $('div.s_grid_view > div.s_item').each(function() {
                $(this).hover(
                    function() {
                        var hh = 0;
                        $(this).find(".s_item_info > :hidden").addClass('to_hide');
                        var h1 = $(this).find(".s_item_info").height();
                        $(this).find(".s_item_info > .to_hide").show();
                        var h2 = $(this).find(".s_item_info").height();
                        var h3 = h2 - h1;
                        var mb = '-' + h3 + 'px';
                        $(this).css('margin-bottom', mb);
                    },
                    function() {
                        $(this).find(".s_item_info > .to_hide").hide();
                        $(this).find(".s_item_info > :hidden").removeClass('to_hide');
                        $(this).css('margin-bottom', '');
                    }
                )
            });
            var onMouseOutOpacity = 1;
            $('div.s_listing > div.s_item').css('opacity', onMouseOutOpacity)
                .hover(
                function () {
                    $(this).prevAll().stop().fadeTo('slow', 0.60);
                    $(this).nextAll().stop().fadeTo('slow', 0.60);
                },
                function () {
                    $(this).prevAll().stop().fadeTo('slow', onMouseOutOpacity);
                    $(this).nextAll().stop().fadeTo('slow', onMouseOutOpacity);
                }
            );

Share this post


Link to post
Share on other sites

предложение в личку пожалуйста, оплата 300 руб. за адаптацию шопики под любой фильтр

Share this post


Link to post
Share on other sites

какая то у вас странная инструкция. Вы точно модуль купили?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

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.