Okay
  Public Ticket #4527543
custom quote requests
Open

Comments

  • faizaan started the conversation

    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

  • faizaan replied

    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

  •  2,619
    WebWizards replied

    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