Public Ticket #4527543

custom quote requests

Closed
Comments
4 Tickets 2
faizaan started the conversation 10 months ago on December 19, 2025 at 7:36am

Good day

Is it possible for custom quote requests to come as normal orders not as conversations? Then from there we send an offline quote and they can make payment. Because my POS system links to the normal order process not the conversation tab and if i send a customn quote through b2bking it does not pull correctly into my POS system.


Regards

1
4 Tickets 2
faizaan replied 10 months ago on December 19, 2025 at 7:53am

I want to hide prices for B2B users and instead of add to cart they add to quote. Then for checkout they checkout normally but the payment method will say "Quotation" and they will checkout as usual so my POS system reads it

1
2,762
KingsPlugins replied 10 months ago on December 19, 2025 at 4:22pm

Hi Faizaan,

 

To hide prices for B2B users and replace the "Add to Cart" button with "Add to Quote", you can go to B2BKing -> Dynamic Rules and create a rule with the action Replace cart with quote system. You can set this to apply specifically to your B2B users.

However, please note that by default, this creates a "Quote Request" (Conversation), not a standard WooCommerce Order. Because it is not a standard order, your POS system likely won't pick it up automatically.

 

To have this create a standard order immediately, custom coding would be required. You would need to create a custom function that programmatically generates a standard order when the quote is submitted.

To do this, a developer can hook into the following action:

do_action( 'b2bking_after_send_quote_cart', $conversationid, $productsstring, get_current_user_id());

Inside that hook, you can add logic to create the order programmatically.

Unfortunately, we are not able to write that custom code for you as we are focusing exclusively on the plugin development,

Kind regards,
Stefan

4 Tickets 2
faizaan replied 10 months ago on December 20, 2025 at 9:50am

Thanks fo the response. My developer is struggling to get this done because he is not sure how B2BKing sends the data from the conversation/quote request. The code he wrote results in a blank order coming through with no products. He says he thinks the issue is that he is not sure the exact format B2BKing uses when sending the data. He assumed it sent as "ID:Quantity" but this didnt work.

2,762
KingsPlugins replied 10 months ago on December 20, 2025 at 11:13pm

Hi Faizaan,

Thanks for the update. I understand your developer is looking for the specific data format used in that hook to get the order generation working correctly.

I would be happy to check this in more detail with our technical team to get that specific information for you.

Could you please share your purchase code or the purchase email for the plugin? I will need to reference that when consulting with them regarding the codebase.

Kind regards,
Stefan

4 Tickets 2
faizaan replied 10 months ago on December 22, 2025 at 8:18am

Good day Stefan

Unfortunately my site was built by a different developer a while ago who is no longer managing the site and who is unwilling to share the purchase information, however my domain is limpopocc.co.za.


I will keep trying to get the info fromthe previous developer but I hope that the domain will suffice 


Regards

2,762
KingsPlugins replied 9 months ago on December 26, 2025 at 7:14pm

Hi Faizaan,

Thanks for clarifying,

I was able to find your website active in our database. The license key associated with it is 315753838-chre4942d001ff5-5e4a4e910a.

It appears this license is currently owned by "urbanlabdigital". I would strongly recommend you ask them to transfer the license to you. Since they currently own the key, they could potentially deactivate your site in the future or activate a different site via the license management panel. In that case, your website would no longer receive auto-updates. It is much safer if you own the license under an email that you control.

 

Regarding the custom code issue, I can certainly clarify the data format for your developer.

Previously I mentioned using this hook:

do_action( 'b2bking_after_send_quote_cart', $conversationid, $productsstring, get_current_user_id());

Inside that hook, the $productsstring variable contains the data your developer needs. This variable contains a string formatted like this:

"product_270;1;555|product_188;1;9|product_49;1;100"

Here is how to read that data:
- product_270 means the product ID is 270.
- 1 is the quantity.
- 555 is the price.
- The | symbol separates different products in the quote.

Your developer needs to parse that string to extract the product details and generate the order.

 

Kind regards,
Stefan

Sign In