• Resolved mpassos

    (@mpassos)


    Hey Taisho, how are you doing? I hope fine.

    Thanks a lot for the great plugin, it is helping us a lot!

    So, I was wondering… what should I do so it can show on the search page and on the bestseller generated itens? I have already marked the ‘show in all pages’ options…

    Please, give me some advice, will you?

    Thanks, a lot and keep up with the great work!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter mpassos

    (@mpassos)

    Just a quick note. I manage to make the quantity box available at the search results page by changing the Archives Display from: Categories to: Shop & Categories.

    But I would still need it to show up on the bestseller products shortcode generated product list.. is this possible?

    I don’t see the product hooks on the bestseeling shortcode generated page…

    Any hints? Thanks a lot, mate! Great work on this plugin!

    Plugin Author taisho

    (@taisho)

    Hello,

    there are many things involved in displaying the buttons for irregular pages. I could try to diagnose the problem with a link to the website provided.

    Best regards,

    Ryszard

    Thread Starter mpassos

    (@mpassos)

    Hey Ryszard (is that something like Richard, Ricardo?),

    Thanks for replying.

    Here is the link:
    https://www.instadev.com.br/nossaloja/mais-vendidos-alt/

    It’s a simple page with the default woocommerce/storefront bestselling products shortcode added… =]

    Any hints? =)

    Thanks!

    • This reply was modified 4 years, 6 months ago by mpassos.
    Thread Starter mpassos

    (@mpassos)

    Hello Ryszard, thanks for the support but I got it working.

    What I did was create a new page template based on archive-products and used we_get_products() for retrieving the top selling items… but I did it using the original loops and filters so the plugin was functioning right away!

    Thanks a lot a keep up the good work!

    Are you available for customizations? I think we would need those buttons on the mini-cart soon…

    Thanks!

    Plugin Author taisho

    (@taisho)

    Hello,

    I’m glad that You got it working. I’m almost sure that a long time ago I encountered we_get_products() not working with the plugin and couldn’t find a solution to this. Unfortunately, I’m not available for customization gigs.

    Indeed, Ryszard is a Polish version of Richard. It has German origins, very similar in English, comes from words rich and hard.

    Best regards,

    Ryszard

    Thread Starter mpassos

    (@mpassos)

    Well, thanks anyway.

    Any hints on how to implement such quantity boxes on the mini-cart?

    I should master your plugin structure before I would even try that.

    For real, thank you, mate!

    Best wishes from Brazil!

    Tchau,
    Márcio

    • This reply was modified 4 years, 6 months ago by mpassos.
    Plugin Author taisho

    (@taisho)

    The first thing to do is to make the quantity fields exist. Of course, in mini-cart I’m assuming that there are no input fields at the start, so they should be added similarly to how they are added on archive pages:

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

    There will be no woocommerce_after_shop_loop_item in the mini cart, need a hook after each item. Inserting JS is not an option because QIB relies on PHP and hooks.

    Now a main problem is that this action makes the buttons on archive pages work with Add to cart button by adding a jQuery script:

    add_action( 'template_redirect', 'qib_add_to_cart_quantity_handler' );

    BUT qib_add_to_cart_quantity_handler would need to be replaced with some interaction between the quantity buttons and cart quantity instead. It will most probably require an Ajax call to update the cart.

    Thread Starter mpassos

    (@mpassos)

    Hey Ryszard,

    Thanks for the input, much appreciated!

    I will give it a try and I should let you know if I succeed =)

    Tchau, do Brazil! =)

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Enable Plugin on Search Page’ is closed to new replies.