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
  • Create a SKU
  • Create a SKU group job
  • Create a fee job
  • Retry fulfillment job
  1. Configure the extension

Step 5: Run cron jobs

Learn how to run cron jobs.

PreviousStep 4: Configure the productNextStep 6: Set up regulatory fees

Last updated 3 years ago

Create a SKU

Before performing this step, complete the , , , and steps.

To create a SKU for the Digital River system, run the ImpEx script below to create the cron job at the merchant application after updating the product catalog ID and store ID. The cron job runs every 5 minutes and uploads all approved products that were added or updated within that timeframe.

ImpEx for SKU cron job
$siteUid=electronics
$storeUid=electronics
$productCatalog=electronicsProductCatalog
INSERT_UPDATE CreateSKUCronJob;code[unique=true];job(code)[default=createSKUJob];
sessionLanguage(isoCode)[default=en];productCatalog;baseStore(uid)
;$siteUid-CreateSKUCronJob;;;$productCatalog;$storeUid


INSERT_UPDATE Trigger;cronJob(code)[unique=true];cronExpression
;$siteUid-CreateSKUCronJob;0 0/5 * 1/1 * ? *

Create a SKU group job

You can fetch the Digital River SKU groups and store them in SAP Hybris by running the SKUGroupConJob. This cron job will be created against the Digital River API key.

ImPex for SKU grop cron job
INSERT_UPDATE ServicelayerJob ;code[unique=true];springId
;skuGroupJob;skuGroupJob


$drConfig=DRConfig

INSERT_UPDATE SKUGroupCronJob;code[unique=true];job(code)[default=skuGroupJob];sessionLanguage(isoCode)[default=en];drConfig(code)
;SKUGroupCronJob;skuGroupJob;en;$drConfig


INSERT_UPDATE Trigger;cronJob(code)[unique=true];cronExpression
;SKUGroupCronJob$siteUid-SKUGroupCronJob;0 0/5 * 1/1 * ? *Ce

You can later map the SKU groups stored in SAP Hybris to the respective products using the Digital River SKU Group attribute.

Create a fee job

Use the ImpEx script below to create the fee. The cron job runs every 5 minutes and uploads syncs the fee attribues that were added or updated within that timeframe.

ImpEx for fee cron job
$siteUid=electronics
$storeUid=electronics
$productCatalog=electronicsProductCatalog
INSERT_UPDATE CreateFeeCronJob;code[unique=true];job(code)
[default=createRegulatoryFeeJob];sessionLanguage(isoCode)[default=en];
baseStore(uid)
;$siteUid-CreateFeeCronJob;;;$storeUid


INSERT_UPDATE Trigger;cronJob(code)[unique=true];cronExpression
;$siteUid-CreateFeeCronJob;0 0/5 * 1/1 * ? *

Retry fulfillment job

This cron job gets the pending consignment list and creates a Digital River fulfillment.

ImpEx for retry fulfillment cron job
$siteUid=electronics
$storeUid=electronics
$productCatalog=electronicsProductCatalog
INSERT_UPDATE  FulfillmentRetryJob;code[unique=true];job(code)
[default=createFulfillmentRetryJob];sessionLanguage(isoCode)[default=en];
baseStore(uid)
;$siteUid-FulfillmentRetryJob;;;$storeUid

Digital River Configuration
Base Store Configuration
Digital River Tax Group
Product Configuration