URL Parameters for Adding Items to the Cart

NetSuite supports two different URLs for adding items to the shopping cart:

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

buyid

Passes the internal ID for the item which is added to the cart.

qty

Passes the quantity of the item to add to cart.

amount

Only functions with donation items. This parameter sets the price for the item added to the cart.

category

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.

multi<id,qty;...>

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

redirect

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.

continue=<url>

Sets the URL for the Continue Shopping button in an External Catalog Web site. For more information, see Setting Up an External Catalog Site.

showcart

When you add showcart=T to the URL, this parameter displays the cart after items are added to the shopping cart.

/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

selcurrency

Use the internal ID of the currency you want to set.

selsubsidiary

Use the internal ID of the subsidiary you want to set.

selshopperlanguage

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.

Note:

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.

Related Topics

URL Parameters for Displaying Shopping Pages
URL Parameters for Passing Marketing Information
URL Parameters for Setting Values in Your OneWorld Web Store
URL Parameters for Setting the Currency on your Website
Website URL Parameters

General Notices