| 7285 |
rajveer |
1 |
<html>
|
|
|
2 |
<head>
|
| 7345 |
rajveer |
3 |
<title>Dashboard for store pricing</title>
|
| 7285 |
rajveer |
4 |
<style>
|
|
|
5 |
table { font-size: 12px; }
|
|
|
6 |
td { border-color: #000000; }
|
|
|
7 |
.payments, .carts { text-align: center; }
|
|
|
8 |
</style>
|
|
|
9 |
</head>
|
|
|
10 |
<body>
|
|
|
11 |
|
|
|
12 |
<form name="itemstring" action="$action.getServletContextPath()/store-admin" method="get">
|
|
|
13 |
Search Item: <input type="text" name="itemString">
|
|
|
14 |
<input type="submit" value="Submit">
|
|
|
15 |
</form>
|
|
|
16 |
|
|
|
17 |
#set($items = $action.searchItem())
|
|
|
18 |
|
|
|
19 |
#if($items && !$items.isEmpty())
|
|
|
20 |
<table border="1" cellspacing="0" cellpadding="4">
|
|
|
21 |
<thead>
|
|
|
22 |
<tr>
|
|
|
23 |
<th>ItemId</th>
|
|
|
24 |
<th>Product</th>
|
|
|
25 |
<th>Active For Store?</th>
|
|
|
26 |
<th>Action</th>
|
| 7306 |
rajveer |
27 |
<th>Min Price</th>
|
|
|
28 |
<th>Max Price</th>
|
|
|
29 |
<th>Min Advance Price</th>
|
| 7351 |
rajveer |
30 |
<th>Absolute Advance Price</th>
|
| 7306 |
rajveer |
31 |
<th>Recommended Price</th>
|
| 7308 |
rajveer |
32 |
<th>Freebie ItemId</th>
|
|
|
33 |
<th>Best Deal Text</th>
|
| 7285 |
rajveer |
34 |
</tr>
|
|
|
35 |
</thead>
|
|
|
36 |
<tbody>
|
| 7306 |
rajveer |
37 |
#set($sps = $action.getStorePricings($items))
|
|
|
38 |
#set($i = 0)
|
| 7285 |
rajveer |
39 |
#foreach($item in $items)
|
| 7306 |
rajveer |
40 |
#set($sp = $sps.get($i))
|
|
|
41 |
#set($i = $i + 1)
|
| 7285 |
rajveer |
42 |
<tr>
|
|
|
43 |
<td>$item.getId()</td>
|
|
|
44 |
<td>$action.getProductNameFromItem($item)</td>
|
| 7308 |
rajveer |
45 |
<td>#if($item.isActiveOnStore())$item.isActiveOnStore()#end</td>
|
| 7285 |
rajveer |
46 |
<td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
|
| 7306 |
rajveer |
47 |
<td>$sp.getMinPrice()</td>
|
|
|
48 |
<td>$sp.getMaxPrice()</td>
|
|
|
49 |
<td>$sp.getMinAdvancePrice()</td>
|
|
|
50 |
<td>$sp.getRecommendedPrice()</td>
|
| 7351 |
rajveer |
51 |
<td>$sp.getAbsoluteMinPrice()</td>
|
| 7308 |
rajveer |
52 |
<td>$sp.getFreebieItemId()</td>
|
|
|
53 |
<td>$sp.getBestDealText()</td>
|
| 7285 |
rajveer |
54 |
</tr>
|
|
|
55 |
#end
|
|
|
56 |
</tbody>
|
|
|
57 |
</table>
|
|
|
58 |
#end
|
|
|
59 |
|
| 7308 |
rajveer |
60 |
#set($sp1 = $action.getStorePricing())
|
| 7285 |
rajveer |
61 |
|
| 7308 |
rajveer |
62 |
#if($sp1)
|
|
|
63 |
#set($item = $action.getItem($sp1.getItemId()))
|
| 7285 |
rajveer |
64 |
<form name="storepricing" action="$action.getServletContextPath()/store-admin" method="post">
|
| 7308 |
rajveer |
65 |
ItemId: <input type="text" readonly name="itemId" value="$sp1.getItemId()"><br>
|
| 7285 |
rajveer |
66 |
Product Detail <input type="text" disabled name="productName" value="$action.getProductNameFromItem($item)"><br>
|
| 7308 |
rajveer |
67 |
Min Price: <input type="text" name="minPrice" value="$sp1.getMinPrice()"><br>
|
|
|
68 |
Max Price: <input type="text" name="maxPrice" value="$sp1.getMaxPrice()"><br>
|
|
|
69 |
Min Advance Amount: <input type="text" name="minAdvancePrice" value="$sp1.getMinAdvancePrice()"><br>
|
|
|
70 |
Recommended Selling Price: <input type="text" name="recommendedPrice" value="$sp1.getRecommendedPrice()"><br>
|
| 7351 |
rajveer |
71 |
Absolute Minimum Price: <input type="text" name="absoluteMinPrice" value="$sp1.getAbsoluteMinPrice()"><br>
|
| 7308 |
rajveer |
72 |
Freebie ItemId: <input type="text" name="freebieItemId" value="$sp1.getFreebieItemId()"><br>
|
|
|
73 |
Best Deal Text: <input type="text" name="bestDealText" value="$sp1.getBestDealText()"><br>
|
| 7285 |
rajveer |
74 |
Active on store: <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
|
|
|
75 |
<input type="submit" value="Update">
|
|
|
76 |
</form>
|
|
|
77 |
|
|
|
78 |
#end
|
|
|
79 |
<br>
|
|
|
80 |
<br>
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
</body>
|
|
|
84 |
</html>
|