• Resolved omnigiga

    (@omnigiga)


    Thanks for this wonderful plugin.

    Its working perfectly except one issue, its showing quantity buttons twice on home and category pages, on product detail page it’s working ok.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author moiseh

    (@moiseh)

    Hello,

    As i checked you’re using Porto theme, this theme duplicates the quantity buttons.

    I remember a long time ago made compatibility with this in my one another private plugin, using javascript.

    This is the code i used:

            // fixing strange behavior for Porto theme, displaying two quantity inputs in Shop page
            $('.add-links').each(function(){
                if ( $(this).find('.quantity').length > 1 ) {
                    $(this).find('.quantity').eq(1).detach();
                }
            });
    
            // porto theme adds inline html with minus and plus resulting in strange duplicated buttons
            if ( $('#porto-style-inline-css').length ) {
                var checkExist = setInterval(function() {
                    $('.mini_cart_item').each(function(){
                        if ( $(this).find('.plus').length > 1 ) {
                            $(this).find('.plus').eq(1).detach();
                        }
                        if ( $(this).find('.minus').length > 1 ) {
                            $(this).find('.minus').eq(1).detach();
                        }
                    });
                 }, 100);
            }

    I will add the fix in new version, but didn’t have plan to release it soon, so, you can add this in your custom JS theme function or in my plugin file wbulite.js

    If you having difficult and if possible please send a clone of the shop using Duplicator or admin credentials to my email moiseh [at] gmail [dot] com so i can try to fix this (when my time permits).

Viewing 1 replies (of 1 total)
  • The topic ‘Showing Buttons Twice’ is closed to new replies.