delivery costs are now shown

This commit is contained in:
Senad Uka
2015-07-05 13:22:47 +02:00
parent 52a03f3334
commit f5664dee88
7 changed files with 76 additions and 59 deletions

View File

@@ -40,12 +40,17 @@ var CartPage = React.createClass({
var cartTotal = (
<div>
<div className="row cart-total">
<div className="col-lg-6">Ukupno</div>
<div className="col-lg-6">
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} deliveryCosts={this.state.deliveryCosts}/>
<div className="col-lg-6">Roba:<br />Dostava:<br />Ukupno:</div>
<div className="col-lg-6 text-right">
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} /><br />
<CartTotal deliveryCosts={this.state.deliveryCosts}/><br />
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} deliveryCosts={this.state.deliveryCosts}/>
</div>
</div>
<div className="row">
<div className="col-lg-12 pull-left">
<button className="mybutton" onClick={this._onOrderClick}>Završi narudžbu</button>