B2Bsellers Suite
API Referenceswww.b2b-sellers.comPublic demoshopRoadmap
v2.X.X+v3.X.X (Shopware 6.5/6.6)
v2.X.X+v3.X.X (Shopware 6.5/6.6)
  • Home
  • Product Tour
    • Plans & Plugin Concept
    • Public Demoshops
    • Get a personal B2B demo store?
    • Changes Made to Customers - What Are Companies, Employees and Sales Representatives
  • User Guide
    • Installation, Setup & Upgrade
      • Installation
      • Upgrade
      • Requirements
      • Easy activate all Addons and Features
      • Use Test-Customers
      • License Settings
      • Common Installation and Upgrade Errors
    • User Documentation (Alpha)
    • Configuration
      • Shop Admin Configurations
      • License, purchaseable Addons and Features configuration
      • E-Mail Templates
      • B2B Flow/Business Events
      • Registration process
      • PDP variant list
    • Configuration of purchasable Addons
      • E-Procurement (OCI-Punchout)
      • E-Procurement (cXML Purchase Order / Ariba)
      • Register Requests (wip)
      • Order Lists
      • URL Authentication
    • Performance
    • FAQs
    • Support Lifecycle & Release Strategy
    • Customer Support
  • Using HTTP Cache for Logged-In Users
  • Developer Guides
    • First Steps
      • Getting Started
      • Concept of Extensions
      • Dockware Setup (Docker)
      • How to start the b2b-platform vue.js watcher
      • How to build the b2b-platform (vue.js)
      • How to extend the B2B Platform (Storefront Vue.js)
      • Protection of the Store-API
      • How to develop your first extensions
      • CLI-Commands
        • Migration of existing Shopware Customers
      • Frosh Shopware-CLI Admin-Watcher
      • Cronjobs
      • Development Helpers
      • Example Plugins
    • Smart developer helpers
      • B2bPlatformContext
      • B2bContextTrait
      • EmployeePermissionTrait
      • B2B Body Classes
      • UseCustomer URL Parameter
      • Useful Vue.js Components for the B2B Platform
      • Useful Storefront Shopping World Elements
      • How to import external orders and offers?
    • How to's
      • Using B2Bsellers Suite with Shopware frontends
      • Add or remove subscription intervals
      • Add additional data to the order confirmation mail
    • Guides for ERP-Interface
      • Overview - Full integrated ERP-Systems
      • Integration of ERP orders to Shopware 6
      • Integration Customers and Employees from ERP
    • Tips for Deployment / Continuous Integration
    • Typical errors
  • API-References
    • Database Schema
    • Entities
      • Custom Fields for existing Shopware Entities
      • Budget
      • BudgetEmployee
      • CollectionAccount
      • CustomerPrice
      • Employee
        • EmployeeCustomer
        • EmployeePermission
        • EmployeeRole
      • CustomerActivity
        • CustomerActivityType
      • Offer
        • OfferAddress
        • OfferCustomer
        • OfferItem
        • OfferStatus
      • ProductSubscription
      • ProductSubscriptionOrder
      • PasswordlessLogin
      • PaymentCondition
      • ProductExplodedView
      • B2bProductList
        • B2bProductListItem
        • B2bProductListType
      • RegisterRequest
        • RegisterRequestStatus
        • RegisterRequestActivity
      • SalesRepresentativeCustomer
    • Store API
    • Store-API
      • Account Request
      • Customer Activity
      • Customer Activity Type
      • Customer Last Orders
      • Customer List
      • Customer Price
      • Customer Sales Ranking
      • Customer Search
      • Delivery Interval
      • Delete Product Subscription
      • Document
      • Employee
      • Employee Permission
      • Employee Role
      • Employee Order
      • Login Target List
      • Offer Document
      • Offer
      • Offer Mail
      • Offer Order
      • Offer Status
      • Ordered Products
      • Platform Cms
      • Product List
      • Product Table Listing
      • Product Subscription
      • Product Subscription List
      • Sales Statistic
      • Snippet
    • Admin API
      • General Admin-API Info
      • Order Extension
  • Release Notes
    • B2BsellersCore
      • Version v3.x.x
        • Version v3.3.2
        • Version v3.3.1
        • Version v3.3.0
        • Version v3.2.2
        • Version v3.2.1
        • Version v3.2.0
        • Version v3.1.6
        • Version v3.1.5
        • Version v3.1.4
        • Version v3.1.3
        • Version v3.1.2
        • Version v3.1.1
        • Version v3.1.0
        • Version v3.0.3
        • Version v3.0.2
        • Version v3.0.1
        • Version v3.0.0
      • Version v2.x.x
        • Version v2.4.2
        • Version v2.4.1
        • Version v2.4.0
        • Version v2.3.6
        • Version v2.3.5
        • Version v2.3.4
        • Version v2.3.3
        • Version v2.3.2
        • Version v2.3.1
        • Version v2.3.0
        • Version v2.2.6
        • Version v2.2.5
        • Version v2.2.4
        • Version v2.2.3
        • Version v2.2.2
        • Version v2.2.1
        • Version v2.2.0
        • Version v2.1.2
        • Version v2.1.1
        • Version v2.1.0
        • Version v2.0.2
        • Version v2.0.1
        • Version v2.0.0
      • Version v1.x.x
        • Version v1.1.8
        • Version v1.1.7
        • Version v1.1.6
        • Version v1.1.5
        • Version v1.1.4 - security update
        • Version v1.1.3
        • Version v1.1.2
        • Version v1.1.1
        • Version v1.1.0
        • Version v1.0.4
        • Version v1.0.3
        • Version v1.0.2
        • Version v1.0.1 - Hotfix
        • Version v1.0.0
      • Version v0.x.x (beta)
        • Version v0.9.6
        • Version v0.9.5
        • Version v0.9.4
        • Version v0.9.3
        • Version v0.9.2
        • Version v0.9.1
  • Help
    • Core Settings
      • Permanent Shopping Cart Settings Changes April 2024
Powered by GitBook
On this page
  • Features
  • Planned features
  • Enable subscription per product
  • Functions/extensions in the frontend
  • In the product overview
  • In the shopping cart
  • Subscription management in the B2B platform
  • Technical information:
  • Entities

Was this helpful?

  1. User Guide
  2. Configuration of purchasable Addons

Subscription Article

Directory: custom/plugins/B2BSellersCore/addons/B2bProductSubscription

With the B2Bsellers product subscriptions plugin, the shop operator has the option of offering his customers interval deliveries in the form of subscriptions. For this purpose, the shop operator decides which products are eligible for subscription and which discount should be granted for a subscription.

Costumers and buyers have thereby the advantage of being able to trigger recurring orders automatically.

Features

  • Individual products can be configured to subscription products by the shop operator.

    Custom field on product: b2b_subscription_enabled

  • Each subscription product can be given its own discount value to convince the buyer to order a subscription.

  • Subscriptions can be managed by the buyer in the B2B platform

    • View all subscriptions

    • Change delivery intervals

    • Delete subscription

  • Subscribed products can only be paid with the payment methods "invoice" and "prepayment" (third-party providers such as PayPal are not supported).

Planned features

  • Subscriptions cannot later be changed by customers/purchasers, but must be terminated. Considering the termination period, etc.

  • Show subscription products exclusively as interval products.

    Thus, it can be decided separately for each product whether a one-time delivery can be accepted at all.

  • Display of subscriptions in the Shopware admin area

On the current roadmap, it is not planned to allow subscription orders via payment service providers like PayPal. If you wish to do so, please contact us.

Enable subscription per product

  1. Navigate to "Catalogues" -->"Products" in the administration and open the product you want to enable as a subscription product.

  2. Navigate to the Specifications tab

  3. Scroll down to the menu item "Additional fields".

  4. Activate "Allow subscription option".

  5. Enter the discount (in percent) which the customer should receive through this subscription.

Functions/extensions in the frontend

In the product overview

By activating the subscription function, customers/buyers have the option of selecting a subscription in addition to the one-off delivery.

The associated savings through a discount are displayed next to the selection button. If customers/buyers choose the subscription, they will be given a further selection option to set the delivery interval.

In the shopping cart

Products for which a subscription has been taken out are marked with a subscription badge in the shopping cart. Hence, it is for costumers/buyers directly recognizable that it is a subscription product.

Subscription management in the B2B platform

Under "My products" is provided the menu item "Subscriptions".

Here customers/buyers can view their completed subscriptions and the following details:

  • Article name

  • Current unit price (the original price is displayed next to it)

  • Quantity (per delivery)

  • Created on

  • Delivery interval with the option to change it

  • Billing address

  • Delivery address

  • Next delivery

In addition, the subscription can be deleted here.

Technical information:

Data structure:

b2b_subscription_enabled

Is this product a subscription product?

b2b_subscription_discount

Discount rate if the buyer decides for recurring deliveries.

Database table in which all subscriptions are stored: b2b_product_subscription

Automatic execution of the order

Through a Shell-command 'php bin/console b2b:product-subscription:order' all subscription orders that have to be executed for the executed day will be executed.

A cronjob should be set up that automatically executes this command 1x per day.

Entities

Was this helpful?

ProductSubscription
ProductSubscriptionOrder
Activate subscription per product
Extensions in the frontend - product overview
Extensions in the frontend - Shopping Cart
Management of the subscription in the B2B platform