Media Storefront
Note: Spartacus 4.x is no longer maintained. Please upgrade to the latest version.
Note: Spartacus 4.x was tested with SAP Commerce Cloud versions 1905 to 2205. Spartacus 4.x has not been verified to work with (and is not guaranteed to work with) SAP Commerce Cloud 2211 or later releases.
Note: This feature is introduced with version 3.1.0 of the TUA Spartacus libraries.
The Media Storefront feature enables customers browsing the Media SPA Store to see the product offerings and pricing details of the offerings that are defined by Business Administrators in the Backoffice. The product offerings are purchased from a dedicated product catalog.
To see a working example of the Media Storefront, see our public instance.
Table of Contents
Business Need
The feature is required as it allows customers to browse the Media SPA and purchase product offerings from a dedicated product catalog. Customers will be able to view all available product offerings and prices for each of the product offerings that are configured by Business Administrators in the Backoffice.
Business Use Case
As part of this feature, the customer can:
- Browse media products in a dedicated store
- Register new account and login to existing account
- View details in the Account section
- Add a product offering to cart
- Update and / or remove a cart entry
- Complete the checkout flow
- Purchase a BPO through a guided selling
- View prices and discounts for the product offerings
- Search product offerings
- Place an order
- View order list or details of the existing order
- View existing subscriptions and subscription usage details of the existing subscriptions
Media SPA Storefront Homepage
- Log in to TUA Spartacus. The Media SPA storefront homepage displays the following sections:
- Upper: Navigation bar that includes WATCH TV, MOVIES, MERCHANDISE, and SUBSCRIPTION PACKAGES.
- Middle: Includes two banners
- Lower: Includes information related to ACCELERATOR, HYBRIS, POLICIES, and FOLLOW US.
View Account Section – Order History
-
Click the Account dropdown to view different sections that are listed.
- Select Order History to view the details of an existing order.
-
Select the required Order number from the list of orders displayed. The Shipped section displays detailed information of the selected order.
View Account Section – Address Book
- Select Address Book to view the list of address that are already added.
- Click Add New Address to add a new address.
- Click Edit to update the existing address.
-
Click Delete to delete the existing address.
View Account Section – Payment Details
- Select Payment Details to view if any payment related details are saved.
- Payment details such as card details are saved during the checkout flow when the customer places an order.
-
Click Delete if the saved details need to be removed from this section.
View Account Section – Personal Details, Password, Email Address
- Select Personal Details to update name-related details.
- Select Password to add a new password.
- Select Email Address to add and request for new email address.
View Account Section – Consent Management
-
Select Consent Management to provide consent to store data and receive e-mails for marketing campaigns.
View Account Section – Close Account
- Select Close Account to close the account permanently.
View Account Section – Subscription and Usage Details
-
Select Subscriptions to view the available subscriptions.
-
Click the required subscription to view details of the active plan such as contract start and end date, order number, contract duration, and order prices.
-
Click Go Back To Subscriptions to go to the actual page from where the order was placed.
<img src="/spartacus-docs/assets/images/telco/subscription-order-details.png" alt="Subscription Order Details>
- Click Usage Details for the required subscriptions in the MY SUBSCRIPTIONS page.
-
The corresponding page displays usage related details in a pie chart format.
Cart Product Offering - Add. Update, Remove
To add a product offering to the cart:
- Click the top banner to view the price details.
-
Click Add To Cart.
- Add or remove the quantity, if required.
- Click View Cart.
-
Click Proceed to checkout.
Checkout Flow and Order Placement
The checkout flow starts from here, and it is similar to the Telco SPA and the Utilities SPA.
- Shipping Address
- Delivery Mode
- Payment Details
- Review Order
The Shipping Address is selected by default. If required, you can add a new address.
- Click Continue.
- Select the required Delivery Mode from the Shipping Method section.
- Click Continue.
- In the Payment Details section. the payment method is selected by default. Either continue with the selected card or click Add New Payment to add a new card.
- Click Continue.
- Review the order details before placing the order.
- Select the check box in the ORDER SUMMARY section.
-
Click Place Order.
Order Confirmation – Order List and Order Details
The order is placed and a confirmation page with the order details is displayed.
Purchase a BPO via a Guided Selling
-
Go to Homepage and click the second banner. The configured guided selling page is displayed where the Tricast Channels pack is configured.
-
Click Select to add the YTV Channel to the channel.
- Click Tricast Channels Plans.
- Click Select to add the Tv Starter to the channel plan.
- Click Add To Cart.
-
Click View Cart to view the cart details.
These details can either be modified or deleted.
- Click Proceed To Checkout.
- Go to the CGS checkout flow tabs by clicking Continue.
- In the Review Order tab, select the check box in the ORDER SUMMARY section.
-
Click Place Order.
The order is placed and a confirmation page with the order details is displayed.
Frontend and Backend Dependencies
Dependency | Detail |
---|---|
Spartacus | 1.x, 1.2x, < 3.0 |
Telco & Utilities Accelerator | Version 2102 (latest patch - 21.02) |
SAP Commerce Cloud | Version 2011 (latest patch) |
Configuring Media SPA
The client application allows customers to configure certain variables that are exposed through TmaB2cStorefrontModule
so that the application is flexible.
Configure the values in app.module.ts in the imports section under TmaB2cStorefrontModule.withConfig({ ... })
config.
Configurable Variables | Description | Syntax | Default Values |
---|---|---|---|
billingFrequency | List of billing frequency and their value in months. Used for converting billing frequency string into their value in months. |
Billing Frequency billingFrequency: [ { key: value: }, ... { key: value: } ], billingFrequency |
billingFrequency: [ { key: 'yearly', value: 12, }, { key: 'year', value: 12, }, { key: 'annually', value: 12, }, { key: 'annual', value: 12, }, { key: 'monthly', value: 1, }, { key: 'month', value: 1, }, { key: 'quarterly', value: 3, }, { key: 'quarter', value: 3, }, ], |