Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get the total price of all product in cart using react

<td>total price :{data.reduce((total, item)=>total+(item.aprice*item.quantity),0)}</td>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #total #price #product #cart #react
ADD COMMENT
Topic
Name
4+5 =