Okay
  Public Ticket #3605477
Filter product list for b2b customers
Closed

Comments

  •  3
    Christian started the conversation

    Hello,

    I want to create a filter on the product catalog page. 

    I have a lot of products in the shop (more than 11k). Some of them have a custom price for special B2B groups. 

    When a B2B group customer is logged in, a special catalog page should appear. It should only show the products which have a custom price added for this customer B2B group.

    I am using the filter everything pro plugin. It may apply filters to custom (meta) fields. Maybe that would be a way?


  •  2,214
    WebWizards replied

    Hello Christian,

    Just to let you know in case you're not aware, B2BKing also has a visibility feature that allows you to control which products can be seen by which users or user groups: https://woocommerce-b2b-plugin.com/docs/faq-product-visibility-is-not-working-how-to-set-up-product-visibility/ - this can be used to hide products (everywhere) for B2B users. A B2B user would login and would only see the products set as visible for them.


    In case you're generally trying to create a filter that only shows products with a certain meta, I can certainly send you more details about how this works in our plugin.

    The group pricing of each product is set in these 2 meta keys:

    b2bking_regular_product_price_group_GROUPID
    b2bking_sale_product_price_group_GROUPID  

    This article explains it in more detail: https://woocommerce-b2b-plugin.com/docs/release-1-8-0-price-lists-csv-import-export-pricing-in-the-product-page/

    Technically it would be possible to create a filter that only shows products which have one of those meta keys "not empty", although I don't know much about the capabilities of the filter everything plugin.

    Kind regards,

    Stefan

  •  3
    Christian replied

    Btw. I created a wordpress plugin, which is showing only the products having a special b2b group price. It extends the flatsome ux-builder with a b2bking products element.

    If anyone is interested in that, feel free to contact me at [email protected] ;)