delivery costs on cart page shown only when address is saved

This commit is contained in:
Senad Uka
2015-11-07 07:57:06 +01:00
parent 11b3669270
commit ba3ae18669
2 changed files with 5 additions and 1 deletions

View File

@@ -46,8 +46,10 @@ var CartPage = React.createClass({
<div className="col-lg-6 text-right">
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} /><br />
<span className={this.state.deliveryDestinationValid ? 'shown' : 'hidden'}>
<CartTotal deliveryCosts={this.state.deliveryCosts} instantDelivery={this.state.deliveryDestination.get('instant_delivery')}/><br />
<CartTotal items={this.state.items} itemCounts={this.state.itemCounts} deliveryCosts={this.state.deliveryCosts} instantDelivery={this.state.deliveryDestination.get('instant_delivery')}/>
</span>
</div>
</div>

File diff suppressed because one or more lines are too long