When calling a Salesforce B2C Commerce storefront, you can call a pipeline start node
directly via a URL. This URL navigates the customer to one of two destinations, depending on
whether the source code is valid (active, enabled and a real source code).
-
From SourceCodeRedirect-Start:
- If the customer arrives at the storefront before the source
code expires, the product page opens. The source code selects a
price book.
- If the customer arrives at the storefront after the source
code expired, the category page opens.
-
To redirect from the URL, select
site > Merchant Tools > Online Marketing > Source Code
Groups.
-
Click Find to view the list of source code groups.
-
Open the selected source code group and click the Codes
tab.
-
On the Codes tab, enter SpringSale into the Source-Code
Specification field and click Add.
-
On the Redirects tab, select Active: Product.
-
Using the browse button, locate and select the product page you
want to show.
-
Select Inactive: Category.
-
Click the category page you want to show and click
Apply.
-
Select
site > Merchant Tools >
Online Marketing > Source Code Groups.
-
Click Find or enter a source code name to find source
codes.
-
Click a source code group name.
-
On the Price Books tab, enter or browse to the price book you
want to use, and click Add.
-
Select
site > Site Preferences
> Source-Codes, enter src into the URL Parameter Name
control and click Apply.
-
Select
site > SEO >
Aliases, enter www.yourstore.com and click
Save.
-
Select
site > Online Marketing
> Source-Code Groups > General.
-
Find the source code you want to edit.
-
Click the source code's name to open it.
-
Define its start and end dates.
-
Click Apply.
The customer will see one page while the source code is
valid and another in different situations.