| 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 |
|
| 7382 |
rajveer |
17 |
#set($msgs = $action.getMessages())
|
|
|
18 |
#if($msgs)
|
|
|
19 |
#foreach($msg in $msgs)
|
|
|
20 |
<h3 style="color:red;">$msg</h3>
|
|
|
21 |
#end
|
|
|
22 |
#end
|
|
|
23 |
|
| 7285 |
rajveer |
24 |
#set($items = $action.searchItem())
|
|
|
25 |
|
| 7382 |
rajveer |
26 |
#if($itemString)
|
|
|
27 |
<h1>Search Results for : "$itemString"</h1>
|
|
|
28 |
#elseif($id)
|
|
|
29 |
<a href="$action.getServletContextPath()/store-admin">Back to Home</a><br><br>
|
|
|
30 |
<h1>Store Pring Details</h1>
|
|
|
31 |
|
|
|
32 |
#else
|
|
|
33 |
<h1>Latest Arrivals</h1>
|
|
|
34 |
#end
|
|
|
35 |
|
|
|
36 |
|
|
|
37 |
|
| 7285 |
rajveer |
38 |
#if($items && !$items.isEmpty())
|
|
|
39 |
<table border="1" cellspacing="0" cellpadding="4">
|
|
|
40 |
<thead>
|
|
|
41 |
<tr>
|
|
|
42 |
<th>ItemId</th>
|
|
|
43 |
<th>Product</th>
|
|
|
44 |
<th>Active For Store?</th>
|
|
|
45 |
<th>Action</th>
|
| 7485 |
rajveer |
46 |
<th>Min Price</th>
|
|
|
47 |
<th>Max Price</th>
|
| 7306 |
rajveer |
48 |
<th>Min Advance Price</th>
|
| 7383 |
rajveer |
49 |
<th>City Head Minimum</th>
|
| 7485 |
rajveer |
50 |
<th>Recommended Selling Price</th>
|
| 7308 |
rajveer |
51 |
<th>Freebie ItemId</th>
|
|
|
52 |
<th>Best Deal Text</th>
|
| 7285 |
rajveer |
53 |
</tr>
|
|
|
54 |
</thead>
|
|
|
55 |
<tbody>
|
| 7306 |
rajveer |
56 |
#set($sps = $action.getStorePricings($items))
|
|
|
57 |
#set($i = 0)
|
| 7285 |
rajveer |
58 |
#foreach($item in $items)
|
| 7306 |
rajveer |
59 |
#set($sp = $sps.get($i))
|
|
|
60 |
#set($i = $i + 1)
|
| 7382 |
rajveer |
61 |
#if(!(!$itemString && $item.isActiveOnStore()))
|
| 7285 |
rajveer |
62 |
<tr>
|
|
|
63 |
<td>$item.getId()</td>
|
|
|
64 |
<td>$action.getProductNameFromItem($item)</td>
|
| 7308 |
rajveer |
65 |
<td>#if($item.isActiveOnStore())$item.isActiveOnStore()#end</td>
|
| 7285 |
rajveer |
66 |
<td><a href="$action.getServletContextPath()/store-admin/$item.getId()">Store Pricing</a></td>
|
| 7306 |
rajveer |
67 |
<td>$sp.getMinPrice()</td>
|
|
|
68 |
<td>$sp.getMaxPrice()</td>
|
|
|
69 |
<td>$sp.getMinAdvancePrice()</td>
|
| 7485 |
rajveer |
70 |
<td>$sp.getAbsoluteMinPrice()</td>
|
| 7306 |
rajveer |
71 |
<td>$sp.getRecommendedPrice()</td>
|
| 7308 |
rajveer |
72 |
<td>$sp.getFreebieItemId()</td>
|
|
|
73 |
<td>$sp.getBestDealText()</td>
|
| 7285 |
rajveer |
74 |
</tr>
|
|
|
75 |
#end
|
| 7382 |
rajveer |
76 |
#end
|
| 7285 |
rajveer |
77 |
</tbody>
|
|
|
78 |
</table>
|
|
|
79 |
#end
|
|
|
80 |
|
| 7308 |
rajveer |
81 |
#set($sp1 = $action.getStorePricing())
|
| 7285 |
rajveer |
82 |
|
| 7308 |
rajveer |
83 |
#if($sp1)
|
|
|
84 |
#set($item = $action.getItem($sp1.getItemId()))
|
| 7285 |
rajveer |
85 |
<form name="storepricing" action="$action.getServletContextPath()/store-admin" method="post">
|
| 7308 |
rajveer |
86 |
ItemId: <input type="text" readonly name="itemId" value="$sp1.getItemId()"><br>
|
| 7285 |
rajveer |
87 |
Product Detail <input type="text" disabled name="productName" value="$action.getProductNameFromItem($item)"><br>
|
| 7485 |
rajveer |
88 |
Min Price: <input type="text" name="minPrice" value="$sp1.getMinPrice()"><br>
|
|
|
89 |
Max Price: <input type="text" name="maxPrice" value="$sp1.getMaxPrice()"><br>
|
| 7308 |
rajveer |
90 |
Min Advance Amount: <input type="text" name="minAdvancePrice" value="$sp1.getMinAdvancePrice()"><br>
|
| 7485 |
rajveer |
91 |
Recommended Selling Price: <input type="text" name="recommendedPrice" value="$sp1.getRecommendedPrice()"><br>
|
|
|
92 |
City Head Minimum: <input type="text" name="absoluteMinPrice" value="$sp1.getAbsoluteMinPrice()"><br>
|
| 7308 |
rajveer |
93 |
Freebie ItemId: <input type="text" name="freebieItemId" value="$sp1.getFreebieItemId()"><br>
|
| 7485 |
rajveer |
94 |
Best Deal Text: <input type="text" name="bestDealText" value="#if($sp1.getBestDealText()) $sp1.getBestDealText() #end"><br>
|
| 7285 |
rajveer |
95 |
Active on store: <input type="checkbox" name="activeonstore" #if($item.isActiveOnStore()) checked #end><br>
|
| 7382 |
rajveer |
96 |
Update All Colors: <input type="checkbox" name="allcolors" checked><br>
|
| 7285 |
rajveer |
97 |
<input type="submit" value="Update">
|
|
|
98 |
</form>
|
|
|
99 |
|
|
|
100 |
#end
|
|
|
101 |
<br>
|
|
|
102 |
<br>
|
|
|
103 |
|
|
|
104 |
|
|
|
105 |
</body>
|
|
|
106 |
</html>
|