Public Ticket #2731848

Bulk order form and Instantsearch+

Closed
Comments
5 Tickets 3
Tommy Rønningsveen started the conversation 6 years ago on March 25, 2021 at 2:25pm

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,762
KingsPlugins replied 6 years ago on March 27, 2021 at 1:42pm

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

5 Tickets 3
Tommy Rønningsveen replied 6 years ago on April 6, 2021 at 9:15pm

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!!

1
2,762
KingsPlugins replied 5 years ago on April 8, 2021 at 12:36pm

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

Sign In