We're using B2BKing and we want that clients can add the products easely from the purchase lists. How can we add the 'Cream' style and functionallity on the purchase list pages?
It is possible to make individual purchase lists display with the cream style, by adding this code snippet to your theme's functions.php file (or to any snippets plugin):
add_filter('b2bking_purchase_list_display_theme', function($theme){
return 'cream'; // cream or indigo here
}, 10, 1);
Let me know if you run into any issues or if I can assist,
Another question. I've added some product variations to the purchase lists, but the variable product is shown with all the variations. Is it possible to show only the variations I've added as simple products on the purchase list?
I see that the multiselect option is still missing on the purchase list page. Can I add this, so that clients can select from the purchase lists which items they want to add to their cart?
Another question; when I've added the cream theme to the purchase list, it's not possible to add new items to the purchase list, is that right? Is there a solution for this?
1. Regarding showing only specific variations instead of all variations in the purchase list - I believe I can help customize this behavior with a code snippet.
2. For the multiselect functionality on the purchase list page to select multiple items before adding to cart - this is also something I think we can implement with some custom code.
3. About adding new items to the purchase list with the cream theme - unfortunately this isn't possible as this particular purchase list format doesn't include a UI for searching and adding external items. This is quite difficult to resolve and I do not see a simple solution.
If you're okay with this limitation, I will start work on a code snippet for the other 2, please let me know.
3: What solution do you have for this then? Should I create a new purchase list every time our clients wants to add a single or couple of products? Is there a import functions or something else for this?
I guess this isn't the solution. Yes, the multiselect option works now for bulkorder, but I need this solution active for the purchase lists and after adding the function, the multiselect option isn't enabled on the purchase lists.
More info:
We have specific clients (clinics) with multiple departments. Every department has a specific list of products and those lists are still growing. So we want to offer them a couple of purchase lists with the items the department needs, so they can add those products easy to their cart. Because those lists are still growing is very important that we can add new products to the purchase lists. Some list have 100 or more products on it, so we can safe them if they shouldn't create a whole new list to add 1 product to a purchase list.
Lists can be created programmatically or imported programmatically but that may get more complex:
Based on the above, this will be a good way for us to manage the lists of our clients. But if you have another good solution, then please let me know.
After adding the code snippet in the previous message and updating B2BKing Pro, you should now be able to see multiselect active in purchase lists, as shown here: https://prnt.sc/wgyoPT15kszj
If that doesn't work for you the same way, we can check it directly on the site - for that we'd need a backend login to the site or staging site.
You mentioned "So we want to offer them a couple of purchase lists with the items the department needs, so they can add those products easy to their cart." - perhaps an alternative option would be to use some of the shortcode options to create forms that show specific products, categories or tags: https://woocommerce-b2b-plugin.com/docs/wholesale-bulk-order-form/#6-toc-title
For example, you can create a product tag such as 'client1', and then add [b2bking_bulkorder theme=cream tag="client1"] to a page - Then when the customer wants such a product added to the list you can simply give the product that tag, and it will be automatically shown in that order form list.
Regarding the multi-select option in purchase lists: it seems the B2BKing Pro version active on the site was 5.3.10, but this feature needed 5.3.23+ to work. After updating I am now able to see it:
Regarding importing lists, there is no built-in feature for that in B2BKing, but a list can be created programmatically using a simple PHP code snippet: https://pastecode.io/s/tn483uec
Or if you prefer to use something like the WP ALL Import plugin to import lists as user metadata, we could make something like that work as well.
It would help to know more about how you envision this working,
Hi support,
We're using B2BKing and we want that clients can add the products easely from the purchase lists. How can we add the 'Cream' style and functionallity on the purchase list pages?
Thank you and regards,
Mark Kokkelkoren Compass Digital
Hi Mark,
Thank you for purchasing B2BKing!
It is possible to make individual purchase lists display with the cream style, by adding this code snippet to your theme's functions.php file (or to any snippets plugin):
Let me know if you run into any issues or if I can assist,
Kind regards,
Stefan
Hi Stefan,
Ah perfect, thank you for this!
Another question. I've added some product variations to the purchase lists, but the variable product is shown with all the variations. Is it possible to show only the variations I've added as simple products on the purchase list?
Thank you.
Regards,
Mark Kokkelkoren
Hi Stefan,
I see that the multiselect option is still missing on the purchase list page. Can I add this, so that clients can select from the purchase lists which items they want to add to their cart?
Regards,
Mark
Hi Stefan,
Another question; when I've added the cream theme to the purchase list, it's not possible to add new items to the purchase list, is that right? Is there a solution for this?
Regards,
Mark Kokkelkoren
Hi Mark,
Thanks for your patience on these questions.
1. Regarding showing only specific variations instead of all variations in the purchase list - I believe I can help customize this behavior with a code snippet.
2. For the multiselect functionality on the purchase list page to select multiple items before adding to cart - this is also something I think we can implement with some custom code.
3. About adding new items to the purchase list with the cream theme - unfortunately this isn't possible as this particular purchase list format doesn't include a UI for searching and adding external items. This is quite difficult to resolve and I do not see a simple solution.
If you're okay with this limitation, I will start work on a code snippet for the other 2, please let me know.
Kind regards,
Stefan
Hi Stefan,
Thank you for your reply.
1 & 2: Yes, please a code snippet.
3: What solution do you have for this then? Should I create a new purchase list every time our clients wants to add a single or couple of products? Is there a import functions or something else for this?
Thank you and regards,
Mark Kokkelkoren
Hello Stefan,
I guess this isn't the solution. Yes, the multiselect option works now for bulkorder, but I need this solution active for the purchase lists and after adding the function, the multiselect option isn't enabled on the purchase lists.
More info:
We have specific clients (clinics) with multiple departments. Every department has a specific list of products and those lists are still growing. So we want to offer them a couple of purchase lists with the items the department needs, so they can add those products easy to their cart. Because those lists are still growing is very important that we can add new products to the purchase lists. Some list have 100 or more products on it, so we can safe them if they shouldn't create a whole new list to add 1 product to a purchase list.
Lists can be created programmatically or imported programmatically but that may get more complex:
Based on the above, this will be a good way for us to manage the lists of our clients. But if you have another good solution, then please let me know.
Regards,
Mark Kokkelkoren
Hi again,
After adding the code snippet in the previous message and updating B2BKing Pro, you should now be able to see multiselect active in purchase lists, as shown here: https://prnt.sc/wgyoPT15kszj
If that doesn't work for you the same way, we can check it directly on the site - for that we'd need a backend login to the site or staging site.
You mentioned "So we want to offer them a couple of purchase lists with the items the department needs, so they can add those products easy to their cart." - perhaps an alternative option would be to use some of the shortcode options to create forms that show specific products, categories or tags: https://woocommerce-b2b-plugin.com/docs/wholesale-bulk-order-form/#6-toc-title
For example, you can create a product tag such as 'client1', and then add [b2bking_bulkorder theme=cream tag="client1"] to a page - Then when the customer wants such a product added to the list you can simply give the product that tag, and it will be automatically shown in that order form list.
Kind regards,
Stefan
Hi again,
Thank you for the access details,
Regarding the multi-select option in purchase lists: it seems the B2BKing Pro version active on the site was 5.3.10, but this feature needed 5.3.23+ to work. After updating I am now able to see it:
Regarding importing lists, there is no built-in feature for that in B2BKing, but a list can be created programmatically using a simple PHP code snippet: https://pastecode.io/s/tn483uec
Or if you prefer to use something like the WP ALL Import plugin to import lists as user metadata, we could make something like that work as well.
It would help to know more about how you envision this working,
Kind regards,
Stefan