• Resolved filiptisovsky

    (@filiptisovsky)


    Hello,

    I have a problem with quantity buttons showing in double (As shown in the screenshot). The first pair doesn’t work, but the bottom ones do.

    Can you please help me resolve this? I have looked into the inspect section and it shows as a duplicated code for the qty button.

    Screenshot: https://snipboard.io/ucl7kT.jpg

    Thank you very much for your time.

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author moiseh

    (@moiseh)

    Hi Sir,

    As i checked you’re using Divi theme, in a common divi theme as far as i know it’s not happening, so probably because some override in your child theme or other plugin.

    I recommend to check the overrides and comment/disable the code related with quantity input modifications until you discover where the issue come from. Also deactivate related plugins if it’s the case may help.

    If you want some help with this then please send if possible the credentials to moiseh [at] gmail [dot] so i can inspect the code when have some time.

    Thanks

    Thread Starter filiptisovsky

    (@filiptisovsky)

    Hello sir,

    I have sent you the login cred. to your email.

    Thank you very much for your time, I really appreciate it.

    It is kinda urgent so I would be very happy if you could look into it as soon as you can. Thank you so much sir.

    Plugin Author moiseh

    (@moiseh)

    Hi,

    I’ve commented this code in your child theme functions.php =>

    // add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 10);

    Then the duplicated quantity disappears.
    Regards

    Thread Starter filiptisovsky

    (@filiptisovsky)

    Thank you so much!

    Thread Starter filiptisovsky

    (@filiptisovsky)

    Hi, I updated my theme and your comment for that code disappeared. Could you please tell me what the comment was please? The problem with the buttons showing twice happened again … thank you

    Plugin Author moiseh

    (@moiseh)

    Hi,
    Look into the functions.php file of your theme

    In this line:
    add_action('woocommerce_after_shop_loop_item_title', 'woocommerce_template_loop_add_to_cart', 10);

    You need to add “//” before to comment.

    But, theoretically if you updated the main theme the child theme would be intact without changes, so maybe they added their own buttons in new update, in this case the previous fix will not work anymore.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Double quantity buttons’ is closed to new replies.