Best Practice for Creating an External Catalog Site (WSDK)
This section shares best practices for creating an External Catalog Site.
-
You have the option to use your primary website domain in WSDK links and scripts. You can replace the default domain displayed on the page with your primary website domain. Use the domain marked Primary Web Site URL on the Domains subtab of the website record (Commerce > Websites > Website List).
-
Beware of browsers’ SameSite cookie policies, especially when it comes to WSDK working with Google Chrome. The best way to use WSDK with Chrome is to keep the same domain for your external catalog, shopping, and checkout pages. For example:
-
For external shopping catalog: www.example.com
-
For NetSuite shopping: cart.example.com
-
(Optional) For NetSuite checkout: checkout.example.com
-
-
Be consistent with the domain you use in the WSDK links and scripts. For example, don't add items to the cart with your primary domain and then get the cart count using the default domain from the Item Script page.
-
If you change the domain in your links and scripts, use a file editor to find and replace every instance of the domain in your website files. If there are inconsistencies, shoppers might not be able to add items to the cart and checkout successfully.
-
For more information, read Setting Up an External Catalog Site.