• Resolved weeegooo

    (@weeegooo)


    hello…
    1- buttons show twice in my shop page : https://letsmeat.org/shop-2/
    i am using WooVina theme, and also please notice that i didnt have +/- buttons before.

    2- Also i choose before OR after “add to cart” , it always shows before add to card…

    i have tried several settings, and all shows up same problem.

    Thank you in advance.

    • This topic was modified 4 years, 10 months ago by weeegooo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author taisho

    (@taisho)

    Hello!

    The buttons are created by WooVina theme. The CSS styling leads to CSS file in this theme’s path. You can try to find whether there is a clean way not to show these buttons through theme settings or dequeuing scripts (I can tell they are JavaScript-generated because they show on the page with delay). Or you can simply hide them via CSS in your child theme:

    .quantity .minus, .quantity .plus {
        display: none;
    }

    Please try to find this code, line 432 in plugin’s .php file:

    if ( $args['qib_archive_after'] = "Before Add to cart" ) {
    	add_action( 'woocommerce_after_shop_loop_item', 'qib_quantity_field_archive', 9 );
    } else {
    	add_action( 'woocommerce_after_shop_loop_item', 'qib_quantity_field_archive', 11 );
    }

    This does not work correctly because the theme changes quite a bit on archive pages. You can replace this code with the following (I checked theme’s file responsible for archive page to get the hooks), save changes, clear cache and see if it works:

    if ( $args['qib_archive_after'] = "Before Add to cart" ) {
    	add_action( 'woovina_before_archive_product_add_to_cart_inner', 'qib_quantity_field_archive' );
    } else {
    	add_action( 'woovina_after_archive_product_add_to_cart_inner', 'qib_quantity_field_archive' );
    }

    If this works, I can add these exceptions for this specific theme on the next plugin release.

    Best regards,

    Ryszard

    • This reply was modified 4 years, 10 months ago by taisho.
    Thread Starter weeegooo

    (@weeegooo)

    perfect, worked like charm ??

    many thanks.

    Hi I’m having this problem with Avada too — would this snippet also work for Avada, repacing WooVina with Avada?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Duplicate Button with WooVina Theme’ is closed to new replies.