added delivery costs to total / added ribica logo just for fun / added validation check when confirming delivery

This commit is contained in:
Senad Uka
2015-03-13 07:04:44 +01:00
parent e3abc09891
commit 648dee4636
17 changed files with 208 additions and 31 deletions

View File

@@ -5,6 +5,10 @@ var React = require('react'),
var Router = require('react-router');
var CartTotal = React.createClass({
render: function() {
@@ -20,9 +24,20 @@ var CartTotal = React.createClass({
});
var deliveryCosts = this.props.deliveryCosts.get('delivery_price');
return (
<div className="col-md-3 cart-total">
Ukupno: {Globals.FormatCurrency(total)} + Dostava
<div>
Roba: {Globals.FormatCurrency(total)}
</div>
<div>
Dostava: {Globals.FormatCurrency(deliveryCosts)}
</div>
<div>
Ukupno: {Globals.FormatCurrency(total + (+deliveryCosts))}
</div>
</div>
);