Subversion Repositories SmartDukaan

Rev

Rev 3018 | Rev 3870 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3018 Rev 3827
Line 1... Line 1...
1
<script>
1
<!-- Product Detail -->
-
 
2
				<div id="productDetail">
-
 
3
					<script type="text/javascript">
2
var PARAMETERS = {
4
var PARAMETERS = {
3
    \#foreach($item in $itemDetails)
5
    \#foreach($item in $itemDetails)
4
      \#if($velocityCount == 1)
6
      \#if($velocityCount == 1)
5
        $item.ITEM_ID : { "ITEM_ID" : "$item.ITEM_ID", "SP" : "$item.SP", "MRP" : "$item.MRP", "SAVING" : "$item.SAVING", "COLOR" : "$item.COLOR" }
7
        $item.ITEM_ID : { "ITEM_ID" : "$item.ITEM_ID", "SP" : "$item.SP", "MRP" : "$item.MRP", "SAVING" : "$item.SAVING", "COLOR" : "$item.COLOR" }
6
      \#else
8
      \#else
7
      ,$item.ITEM_ID : { "ITEM_ID" : "$item.ITEM_ID", "SP" : "$item.SP", "MRP" : "$item.MRP", "SAVING" : "$item.SAVING", "COLOR" : "$item.COLOR" }
9
      ,$item.ITEM_ID : { "ITEM_ID" : "$item.ITEM_ID", "SP" : "$item.SP", "MRP" : "$item.MRP", "SAVING" : "$item.SAVING", "COLOR" : "$item.COLOR" }
8
    \#end
10
    \#end
9
  
11
  
10
  \#end  
12
  \#end  
11
} ;
-
 
12
 
-
 
13
</script>
-
 
14
  
-
 
15
<!-- Product detail -->
-
 
16
<div id="productDetail">
-
 
17
  <div class="top">
-
 
18
    <div class="left">
-
 
19
      <div class="right">&nbsp;</div>
-
 
20
    </div>
-
 
21
  </div>
-
 
22
  
-
 
23
  <div class="middle">
-
 
24
    <div class="content">
-
 
25
        <div class="blockLeft">
-
 
26
          <!-- breadcrumb -->
-
 
27
          <div id="breadcrumb">
-
 
28
            <a href="/home">Home</a>&nbsp;&gt; 
-
 
29
            <a href="/$params.CATEGORY_URL">$params.CATEGORY_NAME</a>&nbsp;&gt; 
-
 
30
            <a #if($params.IS_MOBILE=="TRUE") href="/$params.BRAND_NAME.toLowerCase().replace(' ', '-')" #end class="deselect">$params.BRAND_NAME</a>
-
 
31
            <a class="deselect">$params.PRODUCT_NAME</a>
-
 
32
          </div>
-
 
33
          <!-- /breadcrumb -->
-
 
34
          
-
 
35
          <h1 id="productHeading">$params.TITLE
-
 
36
		   ## if there is only one item and that has color as empty, NA or null it will not 
-
 
37
		  \#if(!(($itemDetails.size() == 1) && (!($itemDetails.get(0).COLOR)) || ($itemDetails.get(0).COLOR=="NA") || ($itemDetails.get(0).COLOR=="")))
-
 
38
			<select class="colorselector" id="colorselector" name="colorselector">
-
 
39
          \#foreach($item in $itemDetails)
-
 
40
				<option value="$item.ITEM_ID" $item.IS_SELECTED >$item.COLOR</option>
-
 
41
          \#end
-
 
42
            </select>
-
 
43
          \#end
-
 
44
          </h1>
-
 
45
          <h2 id="productSubHeading">$params.TAGLINE</h2>
-
 
46
          \#set($item = $itemDetails.get(0))
-
 
47
          All Inclusive Price: <span class="finalPrice">Rs</span>
-
 
48
          \#if($item.SHOWMRP.equals("true"))
-
 
49
              <span id="mrp" class="mrpPrice">$item.MRP</span>
-
 
50
          \#end
-
 
51
              <span id="sp" class="finalPrice">$item.SP </span>
-
 
52
          \#if($item.SHOWMRP.equals("true"))
-
 
53
              (<span id="saving">$item.SAVING</span>% saving)
-
 
54
          \#end
-
 
55
          
-
 
56
          <div class="lineHeight_10px">&nbsp;</div>
-
 
57
          
-
 
58
          #if($params.WARRANTY && $params.WARRANTY != "")
-
 
59
          <span> $params.WARRANTY manufacturer warranty</span> <br />
-
 
60
          <div class="lineHeight_10px">&nbsp;</div>
-
 
61
          #else
-
 
62
          <span> </span> <br />
-
 
63
          <div class="lineHeight_10px">&nbsp;</div>
-
 
64
          #end
-
 
65
          
-
 
66
          <div class="floatLeft"><label for="zipcode">Ships to: </label></div>
-
 
67
          <div class="imgTextBox textbox-image">
-
 
68
              <input type="text" id="zipcode" name="zipcode" value="110001" class="textbox" maxlength="6" onSubmit="updateEstimate()" onblur="updateEstimate()" />
-
 
69
          </div>
-
 
70
          
-
 
71
          <div id="shipTime">
-
 
72
            <span id="shipping_time"> Within <span id="days"></span> business days</span>
-
 
73
          </div>
-
 
74
                          
-
 
75
          <div class="img"><a href="#"><img src="/images/buttons/free-shipping.jpg" width="111" height="13" alt="Free Shipping" title="Free Shipping" /></a></div>
-
 
76
          
-
 
77
          <div class="clearBoth"></div>
-
 
78
        </div>
-
 
79
        
-
 
80
        <div class="blockRight">
-
 
81
          <!-- add to cart -->
-
 
82
            <input id="item_id" name="item_id" value=$item.ITEM_ID type="hidden" />
-
 
83
            <input id="catalog_id" name="catalog_id" value=$item.CATALOG_ID type="hidden" />
-
 
84
            <div class="bigImgButton yellow-image">
-
 
85
                <input type="button" alt="Buy This Item" value="  Add to Cart >>  " class="button" id="addcart"  />
-
 
86
            </div>
-
 
87
          <!-- add to cart -->
-
 
88
                    
-
 
89
        </div>
-
 
90
      <div class="clearBoth"></div>
-
 
91
    </div>
-
 
92
  </div>
-
 
93
  
-
 
94
  <div class="bottom">
-
 
95
	<div class="left">
-
 
96
		<div class="right">&nbsp;</div>
-
 
97
	</div>
-
 
98
  </div>
-
 
99
</div>
-
 
100
<!-- /Product detail -->
-
 
101
 
-
 
102
<!-- Start Social Bar -->
-
 
103
<div id="actionBar">
-
 
104
<div class="left">
-
 
105
<div class="right">
-
 
106
<div class="center">
-
 
107
	
-
 
108
	<div class="blockLeft">
-
 
109
		
-
 
110
		<div class="smallImgButton btnWidth2_IE7 yellow-image">
-
 
111
			<input type="button" id="util_addnewresearch" class="button" value="Add to Research" onclick="javascript:addResearch('', 'single')" title="Add to Reasearch" name="">
-
 
112
		</div>
-
 
113
		
-
 
114
		<div class="smallImgButton yellow-image" style="margin-left:6px">
-
 
115
			<input type="button" alt="My Notes" value="Notes" class="button" id="view-mynotes" />
-
 
116
		</div>
-
 
117
		
-
 
118
		#if($params.IS_MOBILE=="TRUE")
-
 
119
		<div class="smallImgButton btnWidth1_IE7 yellow-image" style="margin-left:6px">
-
 
120
			<input type="button" title="Compare" class="button" value="Compare with" id="util_compare">
-
 
121
		</div>
-
 
122
		#end
-
 
123
		
-
 
124
		<input type="hidden" value="$params.CATALOG_ID" id="product_id" name="">
-
 
125
		<div class="clearBoth"></div>
-
 
126
	</div>
-
 
127
	
-
 
128
	<div class="blockRight">
-
 
129
		<div class="fblikeDiv"><div id="fb-root"></div>
-
 
130
			<iframe src="http://www.facebook.com/plugins/like.php?href=$params.PRODUCT_URL&amp;layout=button_count&amp;show_faces=true&amp;width=120&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:120px; height:23px;" allowTransparency="true"></iframe>
-
 
131
        </div>
-
 
132
		<span id="plusone">
-
 
133
			<g:plusone size="medium"></g:plusone>
-
 
134
        </span>
-
 
135
		<div class="tweetDiv">
-
 
136
			<a href="http://twitter.com/share" class="twitter-share-button" data-text="I chkd out $params.TITLE at" data-count="horizontal" data-via="saholic" style="margin-top:3">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
-
 
137
		</div>
-
 
138
	</div>
-
 
139
	<div class="clearBoth"></div>
-
 
140
		
-
 
141
</div>
-
 
142
</div>
-
 
143
</div>
-
 
144
</div>
-
 
145
13
};
-
 
14
					</script>
-
 
15
					
-
 
16
					<div class="name">
-
 
17
						<span class="brand">$params.BRAND_NAME</span>
-
 
18
						<span class="product-name">$params.PRODUCT_NAME</span>
-
 
19
					</div>
-
 
20
					<div class="desc">$params.TAGLINE</div>
-
 
21
					<div class="price-n-warranty left">
-
 
22
						\#set($item = $itemDetails.get(0))
-
 
23
						<div class="price">
-
 
24
							<span class="label">All Inclusive Price: </span>
-
 
25
							<img alt="Rs." src="/images/rupee-symbol.png" />
-
 
26
						\#if($item.SHOWMRP.equals("true"))
-
 
27
							<span id="mrp" class="mrp bold">$item.MRP</span>
-
 
28
						\#end
-
 
29
							<span id="sp" class="list-price red bold">$item.SP</span>
-
 
30
						\#if($item.SHOWMRP.equals("true"))
-
 
31
							<span class="price-diff">(<span id="saving">$item.SAVING</span>% off)</span>
-
 
32
						\#end
-
 
33
						</div>
-
 
34
						<div class="warranty bold">
-
 
35
						#if($params.WARRANTY && $params.WARRANTY != "")
-
 
36
							$params.WARRANTY manufacturer's warranty - With proper bill
-
 
37
						#end
-
 
38
						</div>
-
 
39
					</div>
-
 
40
					<div class="container-color-selector left">
-
 
41
						\#if(!(($itemDetails.size() == 1) && (!($itemDetails.get(0).COLOR)) || ($itemDetails.get(0).COLOR=="NA") || ($itemDetails.get(0).COLOR=="")))
-
 
42
							<div class="label">Choose Color ($itemDetails.size())</div>
-
 
43
							<select id="colorSelector">
-
 
44
							\#foreach($item in $itemDetails)
-
 
45
								<option value="$item.ITEM_ID" $item.IS_SELECTED >$item.COLOR</option>
-
 
46
							\#end
-
 
47
							</select>
-
 
48
						\#end
-
 
49
					</div>
-
 
50
					<div class="shipping left">
-
 
51
						<div class="label">Check Delivery Time for Area PIN Code:</div>
-
 
52
						<div id="shippingEstimate" class="left">
-
 
53
							<input type="text" id="zipcode" class="searchbox left bold" value="110001" />
-
 
54
							<button id="computeShippingEstimate" class="button left">GO</button>
-
 
55
							<label for="zipcode" class="left">Area PIN Code</label>
-
 
56
						</div>
-
 
57
						<div class="estimate left">
-
 
58
							<div id="shipping_time">Receive in <label class="red">3 Business Days</label></div>
-
 
59
							<div>This item has <label class="red">Free Shipping</label>.</div>
-
 
60
							<div id="cod">You can pay by <span class="red">Cash on Delivery</span></div>
-
 
61
						</div>
-
 
62
					</div>
-
 
63
					<a id="addToCart" class="left">ADD TO CART</a>
-
 
64
				</div>
-
 
65
				<input id="item_id" name="item_id" value=$item.ITEM_ID type="hidden" />
-
 
66
				<input id="catalog_id" name="catalog_id" value=$item.CATALOG_ID type="hidden" />
-
 
67
				<input type="hidden" value="$params.CATALOG_ID" id="product_id" name="">
-
 
68
				<!-- /Product Detail -->
-
 
69
146
70