Okay
  Public Ticket #2731848
Bulk order form and Instantsearch+
Closed

Comments

  •  3
    Tommy started the conversation

    Hi,

    We are using Instantsearch+ for search engine on our site, and this picks up that the bulk order is a search field. The results here takes you to the product pages directly when cliked, which is not a good idea when trying to fill out the bulk order form. Any way to add this attribute to the input element easily, or would that require customization? <input type="text" name="search_box" isp_ignore>

  •  2,219
    WebWizards replied

    Hi Tommy,

    That's a little too specific for us to add to the main plugin as an update, but I wrote a JavaScript snippet that you can use to add that to your own website. This is the snippet:

    jQuery('.b2bking_bulkorder_form_container_content_line_product').attr('name','search_box');
    jQuery('.b2bking_bulkorder_form_container_content_line_product').attr('isp_ignore','');
    jQuery('.b2bking_bulkorder_form_container_newline_button').on('click',function(){
        setTimeout(function(){
            jQuery('.b2bking_bulkorder_form_container_content_line_product').attr('name','search_box');
            jQuery('.b2bking_bulkorder_form_container_content_line_product').attr('isp_ignore','');
        },125);
    });
    

    It also works for lines added with "new line".


    Let me know if that works for you or if I can help further,

    Kind regards,

    Stefan

  •  3
    Tommy replied

    Hi Stefan,

    Wow awesome, thanks for this. I have recommended your plugin to several woocommerce users looking for a B2B solution, this is simply exceptional! However it seems like this code doesn't help with the popup. I will experiment further and check if something on our site is blocking this. Thanks!!

  •  2,219
    WebWizards replied

    Hi Tommy,

    Thank you for the referrals!


    Sorry, I might be missing something but I'm not entirely sure what popup you mean. If the snippet's not working with a popup, it might be a JavaScript conflict. I can probably modify the snippet to fix it, but I would need to be able to access the page with the popup and the order form. Can you give me a link and login if necessary, so I can view that page?


    Kind regards,

    Stefan

  •  3
    Tommy replied

    Hi, this was solved by replacing the horrible Instant Search+ engine :) thanks for good helg!