Okay
  Public Ticket #4510558
Identifying CPT for Purchase Lists
Open

Comments

  •  1
    Michael started the conversation

    Hi there,

    I’m working on extending the “Purchase Lists” (Indkøbslister) feature in B2BKing and need a bit of technical clarification about how and where these lists are stored.

    Here’s what I’ve done so far:

    • I can see and manage my purchase lists perfectly under My Account → Purchase Lists (so the feature works).

    • However, when I inspect my WordPress setup, I don’t see a public CPT registered for them (for example, there’s no b2bking_purchase_list post type).

    • I’ve also checked user meta and found only b2bking_subaccounts_list and b2bking_user_payment_method_B2BKing_Purchase_Order_Gateway, neither of which seem to hold the list data or product references.

    I’m trying to build a small front-end integration that lets the main account add products to existing purchase lists directly from the product page (for example, through a “Add to Purchase List” button).

    Could you please confirm the following:

    1. Where exactly are Purchase Lists stored? (CPT name, user meta key, or custom database table?)

    2. If it’s a CPT, what’s the post type slug and which meta key contains the product IDs?

    3. If it’s stored elsewhere (like a custom table), could you share its structure or the function I can use to access and modify those lists programmatically?