cart.twig (5875B)
1 {{ header }} 2 <div id="checkout-cart" class="container"> 3 <ul class="breadcrumb"> 4 {% for breadcrumb in breadcrumbs %} 5 <li><a href="{{ breadcrumb.href }}">{{ breadcrumb.text }}</a></li> 6 {% endfor %} 7 </ul> 8 {% if attention %} 9 <div class="alert alert-info"><i class="fa fa-info-circle"></i> {{ attention }} 10 <button type="button" class="close" data-dismiss="alert">×</button> 11 </div> 12 {% endif %} 13 {% if success %} 14 <div class="alert alert-success alert-dismissible"><i class="fa fa-check-circle"></i> {{ success }} 15 <button type="button" class="close" data-dismiss="alert">×</button> 16 </div> 17 {% endif %} 18 {% if error_warning %} 19 <div class="alert alert-danger alert-dismissible"><i class="fa fa-exclamation-circle"></i> {{ error_warning }} 20 <button type="button" class="close" data-dismiss="alert">×</button> 21 </div> 22 {% endif %} 23 <div class="row">{{ column_left }} 24 {% if column_left and column_right %} 25 {% set class = 'col-sm-6' %} 26 {% elseif column_left or column_right %} 27 {% set class = 'col-sm-9' %} 28 {% else %} 29 {% set class = 'col-sm-12' %} 30 {% endif %} 31 <div id="content" class="{{ class }}">{{ content_top }} 32 <h1>{{ heading_title }} 33 {% if weight %} 34 ({{ weight }}) 35 {% endif %} </h1> 36 <form action="{{ action }}" method="post" enctype="multipart/form-data"> 37 <div class="table-responsive"> 38 <table class="table table-bordered"> 39 <thead> 40 <tr> 41 <td class="text-center">{{ column_image }}</td> 42 <td class="text-left">{{ column_name }}</td> 43 <td class="text-left">{{ column_model }}</td> 44 <td class="text-left">{{ column_quantity }}</td> 45 <td class="text-right">{{ column_price }}</td> 46 <td class="text-right">{{ column_total }}</td> 47 </tr> 48 </thead> 49 <tbody> 50 51 {% for product in products %} 52 <tr> 53 <td class="text-center">{% if product.thumb %} <a href="{{ product.href }}"><img src="{{ product.thumb }}" alt="{{ product.name }}" title="{{ product.name }}" class="img-thumbnail" /></a> {% endif %}</td> 54 <td class="text-left"><a href="{{ product.href }}">{{ product.name }}</a> {% if not product.stock %} <span class="text-danger">***</span> {% endif %} 55 {% if product.option %} 56 {% for option in product.option %} <br /> 57 <small>{{ option.name }}: {{ option.value }}</small> {% endfor %} 58 {% endif %} 59 {% if product.reward %} <br /> 60 <small>{{ product.reward }}</small> {% endif %} 61 {% if product.recurring %} <br /> 62 <span class="label label-info">{{ text_recurring_item }}</span> <small>{{ product.recurring }}</small> {% endif %}</td> 63 <td class="text-left">{{ product.model }}</td> 64 <td class="text-left"><div class="input-group btn-block" style="max-width: 200px;"> 65 <input type="text" name="quantity[{{ product.cart_id }}]" value="{{ product.quantity }}" size="1" class="form-control" /> 66 <span class="input-group-btn"> 67 <button type="submit" data-toggle="tooltip" title="{{ button_update }}" class="btn btn-primary"><i class="fa fa-refresh"></i></button> 68 <button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="cart.remove('{{ product.cart_id }}');"><i class="fa fa-times-circle"></i></button> 69 </span></div></td> 70 <td class="text-right">{{ product.price }}</td> 71 <td class="text-right">{{ product.total }}</td> 72 </tr> 73 {% endfor %} 74 {% for voucher in vouchers %} 75 <tr> 76 <td></td> 77 <td class="text-left">{{ voucher.description }}</td> 78 <td class="text-left"></td> 79 <td class="text-left"><div class="input-group btn-block" style="max-width: 200px;"> 80 <input type="text" name="" value="1" size="1" disabled="disabled" class="form-control" /> 81 <span class="input-group-btn"> 82 <button type="button" data-toggle="tooltip" title="{{ button_remove }}" class="btn btn-danger" onclick="voucher.remove('{{ voucher.key }}');"><i class="fa fa-times-circle"></i></button> 83 </span></div></td> 84 <td class="text-right">{{ voucher.amount }}</td> 85 <td class="text-right">{{ voucher.amount }}</td> 86 </tr> 87 {% endfor %} 88 </tbody> 89 90 </table> 91 </div> 92 </form> 93 {% if modules %} 94 <h2>{{ text_next }}</h2> 95 <p>{{ text_next_choice }}</p> 96 <div class="panel-group" id="accordion"> {% for module in modules %} 97 {{ module }} 98 {% endfor %} </div> 99 {% endif %} <br /> 100 <div class="row"> 101 <div class="col-sm-4 col-sm-offset-8"> 102 <table class="table table-bordered"> 103 {% for total in totals %} 104 <tr> 105 <td class="text-right"><strong>{{ total.title }}:</strong></td> 106 <td class="text-right">{{ total.text }}</td> 107 </tr> 108 {% endfor %} 109 </table> 110 </div> 111 </div> 112 <div class="buttons clearfix"> 113 <div class="pull-left"><a href="{{ continue }}" class="btn btn-default">{{ button_shopping }}</a></div> 114 <div class="pull-right"><a href="{{ checkout }}" class="btn btn-primary">{{ button_checkout }}</a></div> 115 </div> 116 {{ content_bottom }}</div> 117 {{ column_right }}</div> 118 </div> 119 {{ footer }}