Okay
  Public Ticket #4482538
Roadmap and Custom code
Open

Comments

  •  5
    Jose MARTINEZ started the conversation

    Hi There,

    Where could I find the roadmap?

    Could we get some custom code done in the admin side to improve the quote system? (Add Columns as RegularPrice, WholeSale Price with Discount Value compared to Regular Price, Discount) or get some hooks to extend the admin quote side as explained in Add a custom column on the backend B2BKing Customers page.


    Best Regards  

  •  2,510
    WebWizards replied

    Hi Jose,

    Regarding the roadmap - we don't currently maintain a public roadmap. Generally our goals right now are to improve on existing features: we're looking to redesign dynamic rules to add more options and improve the UI and loading, we are looking to do performance optimizations, improvements to bulk order form loading and search functionality, etc.

     

    For the custom hooks code in the admin side - we're glad to assist with any info as well as to add hooks per your request. You can edit the plugin files directly and add hooks and let us know where you need them - we can then add that to the official version. However if you need customization work, we don't do that ourselves directly.

    I can add a hook for you in the admin side where you can show custom data like regular price. Getting wholesale price would be more complex though (depends on customer, group, tax status of customer).

    Prices could also be added as text here https://prnt.sc/uTKA_FiB2EnB .

     

    Kind regards,
    Stefan

  •  5
    Jose MARTINEZ replied

    Hi Stefan,

    Many thanks for the answer.
    I am coming back in you comment below: 

    I can add a hook for you in the admin side where you can show custom data like regular price. Getting wholesale price would be more complex though (depends on customer, group, tax status of customer).

    Thanks for adding it. It will be helpful for regular pricing.

    Concerning the wholesale price, don't you deliver a function called to get it ? B2BKing_wholesale_price that based on user it gives you the price of a product?

    Best Regards
    Jose

  •  2,510
    WebWizards replied

    Hi Jose,

    1. Could you please share a screenshot highlighting where exactly you wish to show the price, so I can add the hook in the proper place for your needs.

    2. Regarding a complete function - we don't have one because there are too many factors that go into the pricing: group prices, tiered pricing, dynamic rules, multiple types of rules can stack, tax exemption status, etc.

    However, you can use this code snippet for group prices only (the prices on the product page): https://pastecode.io/s/tw2h5wgu

    After adding this snippet to your theme's functions.php or a code snippets plugin, you can use `get_b2bking_group_price($user_id, $product_id)` to get the pricing.

    Kind regards,
    Stefan

  •  5
    Jose MARTINEZ replied

    Hi Stefan,

    Here is the screenshot. The idea is to get extra columns that could be text only with Regular Price, WholesSales regular Price and Wholesales Sales price. This 3 columns could be between Procud name and Quantity.

    Another idea could be to add an extra html field (ACF fields?)where we could add any dynamic text info after Product line. This is to connect with the info sent by Messaging quote text as seen in another Snippet.

    Best Regards
    Jose

  •  5
    Jose MARTINEZ replied

    Better with the screenshot

    Attached files:  WholeSalesQuoteIssue9.jpg

  •  2,510
    WebWizards replied

    Hi Jose,

    I created the following code snippet (with a bit of help from AI): https://pastecode.io/s/djtiri5a

     

    It shows several prices in the backend when editing a quote request: 

    4767526583.png

     

    There are 4 prices shown:
    1. The customer's actual price (as saved in the metadata at the time of the quote request. This is the price the user would have seen in cart)
    2. The retail regular price
    3. The user's group regular price
    4. The user's group sale price

     


    Kind regards,
    Stefan