Skip to content

Commit

Permalink
initial import of files
Browse files Browse the repository at this point in the history
  • Loading branch information
jedateach committed May 4, 2012
0 parents commit ae6fb11
Show file tree
Hide file tree
Showing 18 changed files with 602 additions and 0 deletions.
4 changes: 4 additions & 0 deletions css/cart.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
input.ajaxQuantityField{
width:2em;
text-align:center;
}
4 changes: 4 additions & 0 deletions css/product.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
input.ajaxQuantityField{
width:2em;
text-align:center;
}
19 changes: 19 additions & 0 deletions css/productcategory.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.productItem{
height:200px;
margin-bottom:15px;
}

.productItem .title{
line-height:1.2em;
display:block;
height:45px;
overflow:hidden;
}

.productItem .price{
margin-bottom:7px;
}

.filterbar{
margin-bottom:1em;
}
10 changes: 10 additions & 0 deletions templates/EcomQuantityField.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<div class="ecomquantityfield">
<a class="addlink" href="$DecrementLink" title="<% sprintf(_t("REMOVEONE","Remove one of &quot;%s&quot; from your cart"),$Item.TableTitle) %>">
<i class="icon-minus-sign"></i>
</a>
$Field
<a class="removelink" href="$IncrementLink" title="<% sprintf(_t("ADDONE","Add one more of &quot;%s&quot; to your cart"),$Item.TableTitle) %>">
<i class="icon-plus-sign"></i>
</a>
$AJAXLinkHiddenField
</div>
90 changes: 90 additions & 0 deletions templates/Includes/Cart.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<% require themedCSS(cart) %>
<h3 class="orderInfo"><% _t("ORDERINFORMATION","Order Information") %></h3>
<table class="cart table table-bordered" summary="<% _t("TABLESUMMARY","Current contents of your cart.") %>">
<colgroup class="image"/>
<colgroup class="product title"/>
<colgroup class="unitprice" />
<colgroup class="quantity" />
<colgroup class="total"/>
<colgroup class="remove"/>
<thead>
<tr>
<th scope="col"></th>
<th scope="col"><% _t("PRODUCT","Product") %></th>
<th scope="col"><% _t("UNITPRICE","Unit Price") %></th>
<th scope="col"><% _t("QUANTITY", "Quantity") %></th>
<th scope="col"><% _t("TOTALPRICE","Total Price") %> ($Currency)</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
<% control Items %><% if ShowInTable %>
<tr id="$TableID" class="$Classes $EvenOdd $FirstLast">
<td>
<% if Product.Image %>
<div class="image">
<a href="$Link" title="<% sprintf(_t("READMORE","View &quot;%s&quot;"),$Title) %>">
<% control Product %>$Image.setWidth(45)<% end_control %>
</a>
</div>
<% end_if %>
</td>
<td id="$TableTitleID">
<h5>
<% if Link %>
<a href="$Link" title="<% sprintf(_t("READMORE","View &quot;%s&quot;"),$Title) %>">$TableTitle</a>
<% else %>
$TableTitle
<% end_if %>
</h5>
<% if SubTitle %><p class="subtitle">$SubTitle</p><% end_if %>
</td>
<td>$UnitPrice.Nice</td>
<td>$QuantityField</td>
<td id="$TableTotalID">$Total.Nice</td>
<td>
<a href="$removeallLink" title="<% sprintf(_t("REMOVEALL","Remove all of &quot;%s&quot; from your cart"),$TableTitle) %>">
<i class="icon-trash"></i>
</a>
</td>
</tr>
<% end_if %><% end_control %>
</tbody>
<tfoot>
<tr class="subtotal">
<th colspan="4" scope="row"><% _t("SUBTOTAL","Sub-total") %></th>
<td id="$TableSubTotalID">$SubTotal.Nice</td>
<td>&nbsp;</td>
</tr>
<% if Modifiers %>
<% control Modifiers %>
<% if ShowInTable %>
<tr id="$TableID" class="$Classes">
<th id="$TableTitleID" colspan="4" scope="row">
<% if Link %>
<a href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$TableTitle) %>">$TableTitle</a>
<% else %>
$TableTitle
<% end_if %>
</th>
<td id="$TableTotalID">$TableValue.Nice</td>
<td>
<% if CanRemove %>
<strong>
<a class="ajaxQuantityLink" href="$removeLink" title="<% sprintf(_t("REMOVE","Remove &quot;%s&quot; from your order"),$TableTitle) %>">
<i class="icon-trash"></i>
</a>
</strong>
<% end_if %>
</td>
</tr>
<% end_if %>
<% end_control %>
<% end_if %>
<tr class="gap Total">
<th colspan="4" scope="row"><% _t("TOTAL","Total") %></th>
<td id="$TableTotalID"><span class="value">$Total.Nice</span> <span class="currency">$Currency</span></td>
<td></td>
</tr>
</tfoot>
</table>
31 changes: 31 additions & 0 deletions templates/Includes/Order.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<% require themedCSS(order) %>
<div id="OrderInformation">
<% include Order_Shipping %>
<% include Order_Content %>
<% if Payments %>
<% include Order_Payments %>

<table id="OutstandingTable" class="infotable table table-bordered">
<tbody>
<tr class="gap summary" id="Outstanding">
<th colspan="4" scope="row" class="threeColHeader"><strong><% _t("TOTALOUTSTANDING","Total outstanding") %></strong></th>
<td class="right"><strong>$TotalOutstanding.Nice </strong></td>
</tr>
</tbody>
</table>
<% end_if %>
<% if CustomerOrderNote %>
<table id="NotesTable" class="infotable table table-bordered">
<thead>
<tr class="gap mainHeader">
<th colspan="4" class="left" scope="col"><% _t("CUSTOMERORDERNOTE","Customer Note") %></th>
</tr>
</thead>
</tbody>
<tr class="summary odd first">
<td colspan="4" class="left fourRolDetail">$CustomerOrderNote</td>
</tr>
</tbody>
</table>
<% end_if %>
</div>
62 changes: 62 additions & 0 deletions templates/Includes/Order_Content.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<table id="InformationTable" class="infotable ordercontent table table-bordered">
<colgroup class="image"/>
<colgroup class="product title"/>
<colgroup class="unitprice" />
<colgroup class="quantity" />
<colgroup class="total"/>
<thead>
<tr>
<th scope="col"></th>
<th scope="col"><% _t("PRODUCT","Product") %></th>
<th scope="col"><% _t("UNITPRICE","Unit Price") %></th>
<th scope="col"><% _t("QUANTITY", "Quantity") %></th>
<th scope="col"><% _t("TOTALPRICE","Total Price") %> ($Currency)</th>
</tr>
</thead>
<tbody>
<% control Items %>
<tr class="itemRow $EvenOdd $FirstLast">
<td>
<% if Product.Image %>
<div class="image">
<a href="$Link" title="<% sprintf(_t("READMORE","View &quot;%s&quot;"),$Title) %>">
<% control Product %>
<img src="<% control Image.setWidth(45) %>$Me.AbsoluteURL<% end_control %>" alt="$Title"/>
<% end_control %>
</a>
</div>
<% end_if %>
</td>
<td class="product title" scope="row">
<h5>
<% if Link %>
<a href="$Link" title="<% sprintf(_t("READMORE","View &quot;%s&quot;"),$Title) %>">$TableTitle</a>
<% else %>
$TableTitle
<% end_if %>
</h5>
<% if SubTitle %><p class="subtitle">$SubTitle</p><% end_if %>
</td>
<td class="center unitprice">$UnitPrice.Nice</td>
<td class="center quantity">$Quantity</td>
<td class="right total">$Total.Nice</td>
</tr>
<% end_control %>
<tr class="gap summary" id="SubTotal">
<td colspan="4" scope="row" class="threeColHeader subtotal"><% _t("SUBTOTAL","Sub-total") %></td>
<td class="right">$SubTotal.Nice</td>
</tr>
<% control Modifiers %>
<% if ShowInTable %>
<tr class="modifierRow $EvenOdd $FirstLast $Classes">
<td colspan="4" scope="row">$TableTitle</td>
<td class="right">$TableValue.Nice</td>
</tr>
<% end_if %>
<% end_control %>
<tr class="gap summary total" id="Total">
<td colspan="4" scope="row" class="threeColHeader total"><% _t("TOTAL","Total") %></td>
<td class="right">$Total.Nice $Currency</td>
</tr>
</tbody>
</table>
40 changes: 40 additions & 0 deletions templates/Includes/Order_Member.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<table class="address" cellspacing="0" cellpadding="0">
<tr>
<th><% _t("NAME","Name") %></th>
<td>$FirstName $Surname</td>
</tr>
<% if Address %>
<tr>
<th><% _t("ADDRESS","Address") %></th>
<td>$Address<% if AddressLine2 %><br/>$AddressLine2<% end_if %></td>
</tr>
<% end_if %>
<% if City %>
<tr>
<th><% _t("CITY","City") %></th>
<td>$City</td>
</tr>
<% end_if %>
<% if CountryTitle %>
<tr>
<th><% _t("COUNTRY","Country") %></th>
<td>$CountryTitle</td>
</tr>
<% end_if %>
<% if HomePhone %>
<tr>
<th><% _t("PHONE","Phone") %></th>
<td>$HomePhone</td>
</tr>
<% end_if %>
<% if MobilePhone %>
<tr>
<th><% _t("MOBILE","Mobile") %></th>
<td>$MobilePhone</td>
</tr>
<% end_if %>
<tr>
<th><% _t("EMAIL","Email") %></th>
<td>$Email</td>
</tr>
</table>
25 changes: 25 additions & 0 deletions templates/Includes/Order_Payments.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<table id="PaymentTable" class="infotable table table-bordered">
<thead>
<tr class="gap mainHeader">
<th colspan="10" class="left"><% _t("PAYMENTS","Payment(s)") %></th>
</tr>
<tr>
<th scope="row" class="twoColHeader"><% _t("DATE","Date") %></th>
<th scope="row" class="twoColHeader"><% _t("AMOUNT","Amount") %></th>
<th scope="row" class="twoColHeader"><% _t("PAYMENTSTATUS","Payment Status") %></th>
<th scope="row" class="twoColHeader"><% _t("PAYMENTMETHOD","Method") %></th>
<th scope="row" class="twoColHeader"><% _t("PAYMENTNOTE","Note") %></th>
</tr>
</thead>
<tbody>
<% control Payments %>
<tr>
<td class="price">$LastEdited.Nice24</td>
<td class="price">$Amount.Nice $Currency</td>
<td class="price">$Status</td>
<td class="price">$PaymentMethod</td>
<td class="price">$Message.NoHTML</td>
</tr>
<% end_control %>
</tbody>
</table>
13 changes: 13 additions & 0 deletions templates/Includes/Order_Shipping.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<table id="ShippingTable" class="infotable table table-bordered">
<tr>
<th><% _t("BILLTO","Bill To") %></th><th><% _t("SHIPTO","Ship To") %></th>
</tr>
<tr>
<td>
$FullBillingAddress
</td>
<td>
$FullShippingAddress
</td>
</tr>
</table>
27 changes: 27 additions & 0 deletions templates/Includes/ProductGroupItem.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<div class="productItem span2 thumbnail">
<% if Image %>
<a href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$Title) %>">
<img src="$Image.Thumbnail.URL" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
</a>
<% else %>
<a class="noimage" href="$Link" title="<% sprintf(_t("READMORE","Click here to read more on &quot;%s&quot;"),$Title) %>>">
<img src="http://placehold.it/140x100" alt="<% sprintf(_t("IMAGE","%s image"),$Title) %>" />
</a>
<% end_if %>
<div class="caption">
<h5 class="title"><a href="$Link" title="<% sprintf(_t("READMORE"),$Title) %>">$Title</a></h5>
<div class="price"><% if Price %><strong class="price">$Price.Nice</strong> <span class="currency">$Currency</span><% end_if %></div>
<div class="actions">
<a class="btn btn-mini" href="$Link" title="<% sprintf(_t("VIEW","View &quot;%s&quot;"),$Title) %>">
<i class="icon-eye-open"></i>
<% _t("VIEW","View") %>
</a>
<% if canPurchase %>
<a class="btn btn-primary btn-mini" href="$addLink" title="<% sprintf(_t("ADD","Add &quot;%s&quot; to your cart"),$Title) %>">
<i class="icon-shopping-cart icon-white"></i>
<% _t("ADDLINK","Add") %>
</a>
<% end_if %>
</div>
</div>
</div>
23 changes: 23 additions & 0 deletions templates/Includes/ProductGroupPagination.ss
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<% if Products.MoreThanOnePage %>
<div class="pagination pagination-centered">
<ul>
<% if Products.NotFirstPage %>
<li><a class="prev" href="$Products.PrevLink" title="View the previous page"><% _t('ProductGroup.PREVIOUS','previous') %></a></li>
<% else %>
<li class="disabled"><a href="#"><% _t('ProductGroup.PREVIOUS','previous') %></a></li>
<% end_if %>
<% control Products.PaginationSummary(4) %>
<% if CurrentBool %>
<li class="active"><a href="$Link" title="view page $PageNum">$PageNum</a></li>
<% else %>
<li><a href="$Link" title="view page $PageNum">$PageNum</a></li>
<% end_if %>
<% end_control %>
<% if Products.NotLastPage %>
<li><a class="next" href="$Products.NextLink" title="View the next page"><% _t('ProductGroup.NEXT','next') %></a></li>
<% else %>
<li class="disabled"><a href="#"><% _t('ProductGroup.NEXT','next') %></a></li>
<% end_if %>
</ul>
</div>
<% end_if %>
Loading

0 comments on commit ae6fb11

Please sign in to comment.