Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SuiteCommerce Web Site : SuiteCommerce General Settings : Scriptable Cart : Sample Scripts for Scriptable Cart : Accepting Charitable Donations

...

Create an item record for display on the web store as a charitable donation item. The shopper adds this item to the shopping cart and enters the amount of donation he or she wants to make. After the item is added to the cart, the total amount of the order is recalculated to include the non taxable donation.

Step-by-step guide

Setup

Use the steps below to create the charitable donation item record, and custom item options required to run the sample script. Note that you must complete the following setup steps to use the code sample successfully.

...

nlapiSetCurrentLineItemValue('item', 'amount', amount, true, true);

}

//END UTILITY FUNCTIONS 


Deploy Your Script to the Shopping Cart

NetSuite recommends that you test your script thoroughly before running it in the shopping cart. You must follow a series of steps to load the script into your NetSuite account, and then run the script for testing purposes.

...

Filter by label (Content by label)
showLabelsfalse
max5
spacesDOC
sortmodified
showSpacefalse
reversetrue
typepage
labelskb-how-to-article