Salesforce B2C Commerce 24.7 > Merchandising Your Site > Campaigns and Promotions > Controlling Promotions > Qualifiers > Using Source Codes as Qualifiers > Defining Source Code Groups
Adding a Second Incoming URL for Source Codes
You can map two sets of incoming URLs to the same target.
Note: Salesforce B2C Commerce allows only one source code group
to be active at a time.
-
Select
site > Online Marketing
> Source Code Groups..
- Click Find to view the list of source code groups.
- Open the selected source code group.
- On the Codes tab, enter SpringSale into the Source Code Specification field and click Add.
- On the Redirects tab, select the Active: Category option.
- Enter JA as the category code and click Apply.
-
Select
site > Merchant Tools > Site Preferences > Source
Codes.
- On the Source Codes Preferences page, enter src into the URL Parameter Name control.
- Click Apply.
-
Select
site > Merchant Tools > Site
URLs > Aliases.
- On the Aliases page, enter www.yourstore.com.
- Click Save.
- Select site > Merchant Tools > Site URLs > Dynamic Mapping.
-
On the Dynamic Mapping page, enter these two mapping code
lines:
-
/
specials
/?src=* p,,,SourceCodeRedirect-Start,,src,{0}
-
/
seasonal
/?src=* p,,,SourceCodeRedirect-Start,,src,{0}
-
-
Click Save.
A customer can navigate via either:
www.yourstore.com/specials/?src=SpringSale www.yourstore.com/seasonal/?src=SpringSale
The result is the same regardless of the incoming URL. The category page corresponding to code
JA
appears.
Infocenter Retirement: On June 30, 2023, the Infocenter was retired, and documentation currently hosted on the Infocenter will be published to Salesforce Help, Commerce Cloud Developer Center, and Salesforce B2C Commerce Developer Documentation Resources. For more information, see the release note.