Shopware 6 Custom Product Availability Plugin

Job ID: 39141189

Budget: €250 – €750 EUR

Products available according to Customer Type

We need a plugin that provides the following features:

We have a client using Shopware 6 who serves different types of customers:
• Domestic B2C
• Domestic B2B
• International B2C
• International B2B

The availability of certain products depends on the type of customer logged in, mainly due to shipping restrictions.

Example 1: Frozen Sausage

This product can only be ordered by domestic B2B customers, as it requires special transportation for frozen goods.

Example 2: The same frozen sausage

If a customer—regardless of their type—wants to order the product and pick it up in-store, they should be allowed to do so.

Example 3: Large-sized product (larger than 1m x 1m)

This product is only available for domestic B2B and international B2B customers, as these customers meet the minimum order requirements and use truck transportation instead of standard parcel delivery.

For each of these rules, a message should be displayed on the product card in the frontend, explaining why the product is unavailable for the user. This message should be editable from the admin panel and allow custom background colors.

Possible approach:
• Develop a plugin
• Create or map the four customer groups
• Add a custom field to products (e.g., “Frozen Product” flag)
• Implement logic to display product-specific messages
• Display a message and allow purchase
• Display a message and restrict purchase
• Do not display anything
• Implement cart validation logic to ensure product compatibility with the chosen shipping method
• Show a warning message in the cart
• Map the available shipping methods
Related categories: PHP eCommerce MySQL Symfony PHP Plugin