LogoLogo
Connectors
SAP Commerce Cloud Extension 1.2
SAP Commerce Cloud Extension 1.2
  • SAP Commerce Cloud Extension 1.2
  • Introduction
    • Extension support
    • General workflow
    • Features
    • Enable features
  • Install the extension
    • Step 1: Download the extension
    • Step 2: Update the localextensions.xml
    • Step 3: Run the installation command
    • Step 4: OOB code changes
    • Step 5: Rebuild the system
    • Step 6: Update the system
    • Step 7: Run project data ImPex files
    • Step 8: Enable the B2B feature
  • Configure the extension
    • Step 1: Configure the Digital River configuration page
    • Step 2: Attach the Base Store configuration
    • Step 3: Load the Digital River tax groups
    • Step 4: Configure the product
    • Step 5: Run cron jobs
    • Step 6: Set up regulatory fees
    • Step 7: Enable support for digital products
    • Step 8: Run the confirmation email body template
    • Step 9: Set up Wire Transfer
    • Step 10: Add the Digital River compliance statement
    • Step 11: Customize the locale, OMS, and webhooks
  • Test the extension
  • Support
Powered by GitBook
On this page
  1. Configure the extension

Step 7: Enable support for digital products

Learn how to enable support for digital products.

To enable support for digital products, the checkout flow has been changed by extending the MultiStepCheckoutController.java and addCheckoutStepsToModel() methods in various checkout steps controllers. Digital River automatically fulfills digital products by default.

Include the following override methods in the DefaultDigitalRiverFacade.java file.

@Override
	public boolean isDigitalProduct(final String productCode)
	{
		return digitalRiverPaymentService.isDigitalProduct(productCode);
	}

	@Override
	public boolean isDigitalCart()
	{
		return digitalRiverPaymentService.isDigitalCart();
	}

	@Override
	public boolean isDigitalOrder(final OrderModel order)
	{
		return digitalRiverPaymentService.isDigitalOrder(order);
	}
@Override
	public boolean hasDigitalProduct(final OrderModel order)
	{
		return digitalRiverPaymentService.hasDigitalProduct(order);
	}

	@Override
	public String getDigitalEntryStatus(final String code, final OrderEntryData orderEntry)
	{
		return digitalRiverPaymentService.getDigitalEntryStatus(code, orderEntry);
	}

Products marked as Digital in the DRProductType attribute of the product configuration will be treated as a digital product in this extension.

PreviousStep 6: Set up regulatory feesNextStep 8: Run the confirmation email body template

Last updated 3 years ago

See for digital product-related changes in the confirmation email.

See section for OMS-related changes for digital products.

Step 8: Run the confirmation email body template
Step 11: Customize the locale, OMS, and webhooks