Support » Plugin: Qty Increment Buttons for WooCommerce » left from add to cart button

  • Resolved arena156

    (@arena156)


    hi!
    i will try it with my poor english…
    i try to get the the buttons left from the add to cart button on category page.
    i have try alot, yes, iam not a really good with programming, do you have an idea how i can do this?

    my theme is flatsome…
    thank you!
    greetings
    markus

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

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

    (@taisho)

    Hello Markus,

    while checking this website I found 2 problems:

    1) The category page had no formatting from my plugin because the theme doesn’t display products as li elements but div.
    2) The buttons were not affected by the height setting because the theme specified min-height from the buttons.

    It may affect multiple potential users of my plugin, so just released 2.4 version that solves these issues.

    The add to cart button has unusual positioning – it’s not in the same div as quantity buttons. That’s why as it is now, you won’t be able to position them with CSS only. You can find the .php file of Qty Increment Buttons for WooCommerce on your FTP server and change this line:

    add_action( 'woocommerce_after_shop_loop_item', 'qib_quantity_field_archive', 9 );

    to:

    add_action( 'woocommerce_after_shop_loop_item', 'qib_quantity_field_archive', 11 );

    Then the quantity buttons will appear after Add to cart button in HTML structure. As the Add to cart button has already float: right in CSS, the quantity buttons should be on the left side of it.

    You must take notice that updating the plugin will replace the .php file and this change to the file will be lost. However, in the next release, I will include a solution – probably a filter that will allow replacing this line through functions.php. It will be mentioned in the plugin changelog.

    Best regards,

    Ryszard

    • This reply was modified 3 months, 2 weeks ago by taisho.
    • This reply was modified 3 months, 2 weeks ago by taisho.

    thank you so much, it works now for me!
    fast response from you!! thank you again!!

    greetings
    markus

    Plugin Author taisho

    (@taisho)

    No problem! I would appreciate if you could rate the plugin, it helps to make it more popular:

    https://wordpress.org/support/plugin/qty-increment-buttons-for-woocommerce/reviews/#new-post

    • This reply was modified 3 months, 1 week ago by taisho.

    sooooryy.. one question left…
    on my frontpage, i have 8 products displayed as “featured products”
    [featured_products per_page=”8″ orderby=”rand”]
    on frontpage your butoons are not displayed, have you an idea how i can this setup?
    thank you again!

    greetings
    markus

    Plugin Author taisho

    (@taisho)

    Unfortunately, unlike for normal shop or category product lists, with this WooCommerce shortcode, it’s not possible to use woocommerce_after_shop_loop_item hook and I think any other hook as well, therefore the plugin won’t display the quantity input field and the buttons for these products. The shortcode has its limitations and I don’t think there is any way to make it work other than replacing the shortcode with some complex custom work.

    Plugin Author taisho

    (@taisho)

    I’ve just released a 2.5 plugin version with an option “Archive position” in plugin settings. You will need to select “After Add to cart”. I figured out that if I introduced a filter, no one would know that it exists anyway.

    • This reply was modified 3 months, 1 week ago by taisho.
Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.