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 on an external catalog site or on a website composed of hosted HTML pages.
  • /app/site/backend/intl/additemtocart.nl: Use this URL specifically in a web store associated with a OneWorld account. It allows creating “Add to Cart” buttons that can set multiple parameters in a single request, such as subsidiary and currency.

/app/site/backend/additemtocart.nl

Use the parameters below to create “Add to Cart” buttons for items on an external catalog site or on a website made of hosted HTML pages.

URL Parameters

  • buyid: Passes the internal ID of the item to add to the cart.
  • qty: Specifies the quantity of the item to add to the cart.
  • amount: Used for donation items to set the price of the item added to the cart.
  • category: Required for tracking customer activity on your website, though not necessary for successfully adding an item to the cart.
  • multi<id,qty;…>: Adds multiple items to the cart in one request. Note that this parameter does not support item options.
  • redirect: Redirects shoppers to a specified page on your website after adding an item to the cart. This is effective when the preference “After Shopper Adds an Item to the Cart” is set to stay on the same page, configured on the Shopping subtab of the Web Site Setup form.
  • continue=<url>: Sets the URL for the “Continue Shopping” button in an External Catalog website.
  • showcart: Adding showcart=T to the URL displays the cart after items are added.

/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.

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: Pass a locale key (e.g., en_US, en_UK, fr_FR) to set the shopper’s language.

Leave a comment

Your email address will not be published. Required fields are marked *