URL Parameters for Adding Items to the Cart
NetSuite supports two different URLs for adding items to the shopping cart:
-
/app/site/backend/additemtocart.nl – Use this URL to create add to cart buttons for items in an external catalog site or in a website made of hosted HTML pages.
-
/app/site/backend/intl/additemtocart.nl – Use this URL in a web store associated with a OneWorld account. Create add to cart buttons that set multiple parameters to be processed in one request, like subsidiary and currency, for example.
All the parameters listed in the tables below are used in either the POST or GET action that adds an item to the shopping cart.
For example, you can use the multi
parameter to create a URL for distribution to customers in a promotional email. This URL will add multiple items to the shopping cart when a customer clicks the link to visit your web store.
For information about adding multiple items to the shopping cart, see Adding Multiple Items to the Shopping Cart.
/app/site/backend/additemtocart.nl
Use the parameters below to create add to cart buttons for items in an external catalog site or in a website made of hosted HTML pages.
URL Parameter |
Notes |
---|---|
|
Passes the internal ID for the item which is added to the cart. |
|
Passes the quantity of the item to add to cart. |
|
Only functions with donation items. This parameter sets the price for the item added to the cart. |
|
This parameter is required for tracking customer activity on your website. However, it is not required for successfully adding an item to the shopping cart. |
|
Adds multiple items to the cart in one request. This parameter does not support item options. For more information, see Adding Multiple Items to the Shopping Cart |
|
Use the redirect parameter to take shoppers to a page on your website after they add an item to the cart. This parameter is used to determine the proper page to display after an item is added to the cart.
Note:
Only functions when the After Shopper Adds an Item to the Cart preference is set to stay on the same page. Set this preference on the Shopping subtab of the Web Site Setup form. |
|
Sets the URL for the Continue Shopping button in an External Catalog Web site. For more information, see Setting Up an External Catalog Site. |
|
When you add |
/app/site/backend/intl/additemtocart.nl
You can use this URL with the same parameters as the additemtocart URL above, except that you can use /app/site/backend/intl/additemtocart.nl
to set parameters for subsidiary, currency, and language.
URL Parameters |
Notes |
---|---|
|
Use the internal ID of the currency you want to set. |
|
Use the internal ID of the subsidiary you want to set. |
|
Use this parameter to pass a locale key. For example: en_US, en_UK, or fr_FR.
Note:
locale keys are not exposed in the NetSuite system. You may need to research which language code is appropriate. |
If your selected Out Of Stock Behavior option is Disallow back orders but display out-of-stock message or Remove out-of-stock items from store, you might still be able to add out of stock items to your cart using these URL parameters. However, when you try to place the order with such out of stock items in your shopping cart, an error message is displayed and you will not be able to place the order successfully.