Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
387 rajveer 1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1325 varun.gupt 2
<html xmlns="http://www.w3.org/1999/xhtml">
507 rajveer 3
<head>
1258 varun.gupt 4
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
5
	<meta name="Description" content="$action.getPageMetaDescSnippet()" />
6
	<meta name="Keywords" content="$action.getPageMetaKeywordsSnippet()" />
1323 varun.gupt 7
	<!--link rel="image_src" href="http://saholic.com/images/$action.getProductId()/default.jpg"/>
1272 varun.gupt 8
	<link rel="canonical" href="$action.getProductUrl()" />
1269 varun.gupt 9
 
1258 varun.gupt 10
	<meta property="og:url" content="$action.getProductUrl()" />
1269 varun.gupt 11
	<meta property='og:image' content="http://saholic.com/images/$action.getProductId()/default.jpg">
1258 varun.gupt 12
	<meta property='og:type' content="product" />
13
	<meta property='og:title' content="$action.getProductName()" />
14
	<meta property='og:site_name' content="Saholic" />
1270 varun.gupt 15
	<meta property="og:description" content="$action.getPageMetaDescSnippet()"/>
1323 varun.gupt 16
	<meta property='fb:admins' content="100002073769572" /> <Facebook ID of Saholic Shopa-->
1258 varun.gupt 17
	<title>$action.getPageTitleSnippet()</title>
449 rajveer 18
 
568 rajveer 19
#include ( "templates/commoncssfiles.vm" )
1019 vikas 20
#include ( "templates/commonjsfiles.vm" )
449 rajveer 21
 
943 vikas 22
#set($userinfo = $action.getUserInfo())
23
</head>
24
 
25
<body>
26
	<noscript>
27
		<p id="noScript">Please allow <em>Javascript</em> in order to function this website correctly!</p>
28
	</noscript>
29
 
30
	$action.getHeaderSnippet()			
31
     <!-- Wrapper start -->
32
	<div id="main">
33
		$action.getMainMenuSnippet()
34
		$action.getSearchBarSnippet()
35
 
36
		<!-- wrapper-->
37
		<div id="wrapper">
38
			<input id="defaultpincode" name="defaultpincode" value=$userinfo.getPincode() type="hidden" />
39
			$action.getProductSummarySnippet()
40
			<!-- slide guide -->
41
			<div id="slideGuide">
42
			$action.getSocialUtilsSnippet()
43
			$action.getSlideGuideSnippet()
44
			</div>
45
			<!-- /slide guide -->
46
        </div>
47
		<!-- /wrapper-->
48
 
49
		<!-- sidebar-->
50
		<div id="sidebar">
51
			$action.getCustomerServiceSnippet()
52
			$action.getMyResearchSnippet()
53
			$action.getBrowseHistorySnippet()
54
			<div style="clear:both;padding:2px;">&nbsp;</div>
55
		</div>
56
		<!-- /sidebar-->
57
 
58
   		<div class="clearBoth"></div>
59
    </div><!-- /main -->
60
 
61
	 $action.getFooterSnippet()
62
 
449 rajveer 63
<script type="text/javascript" charset="utf-8">
64
/*youtube video init*/
65
google.load("swfobject", "2.1");
66
 
67
$(function(){
68
     $('#loopedSlider').loopedSlider();
69
});
70
 
71
$(function() {
72
runEffect();
73
});
74
 
75
 
387 rajveer 76
$(document).ready(
77
function() {
1235 vikas 78
          $(".controls").tabs();
449 rajveer 79
});
80
 
81
$(function() {
82
     $('#forgot_username_link').tipsy({gravity: 'w'});
83
});
84
 
85
function changeSignInClass(){
86
     if(document.getElementById("signinClass").className.indexOf("signin1")> -1){
87
          document.getElementById("signinClass").className='signin';
88
     }else{
89
          document.getElementById("signinClass").className='signin1';
90
     }
91
}
92
 
994 vikas 93
$(document).ready(function() {
94
   // Main "Add to Cart" 
95
    $("#zipcode").val($("#defaultpincode").val()); 
96
 
97
    $("#colorselector").change(onSelectChange);
98
 
99
	function onSelectChange(){
100
	    var selected = $("#colorselector option:selected");
101
    	var output = "";
102
		var itemid = selected.val();
103
		//alert("SP for item id" + itemid + " is " + PARAMETERS[itemid].SP);
104
		$('#sp').html(PARAMETERS[itemid].SP);
105
		$('#mrp').html(PARAMETERS[itemid].MRP);
106
		$('#saving').html(PARAMETERS[itemid].SAVING);
107
		$("#item_id").val(itemid);
108
		return false;
109
	}
110
 
111
    $("a.colorselector").click(function() {
112
				//alert("color is"+$(this).attr('color') + "item id"+ $(this).attr('itemid'));
113
				$('.a.colorselector').addClass('deselect');
114
				$(this).addClass('deselect');
115
				var itemid = $(this).attr('itemid')
116
        		//alert("SP for item id" + itemid + " is " + PARAMETERS[itemid].SP);
117
				$('#sp').html(" "+PARAMETERS[itemid].SP);
118
				$('#mrp').html(" "+PARAMETERS[itemid].MRP);
119
				$('#saving').html(PARAMETERS[itemid].SAVING);
120
				$("#item_id").val(itemid);
121
				return false;
122
    });
123
 
124
 
125
 
126
   $("#addcart").click(function(){
127
 
128
     // alert("AJAX request to add products in Cart. Product ID: "+$("#item_id").val());
129
 
130
     jQuery.ajax({
131
          type: "POST",
132
          url: "../cart",
133
          data: "productid="+$("#item_id").val(),
134
          success: function(msg){
135
               $("#cartItemCount").html((msg*1));
136
          //     alert( "Data Saved: " + msg );
137
          }
138
     });
139
   });
140
 
141
    jQuery.ajax({
142
      type: "GET",
143
      url: "../estimate/"+$("#zipcode").val()+"_"+$("#item_id").val(),
144
      beforeSend: function(){ $("#shipping_time").html("<img src='../images/loader_l.gif'>"); },
145
      success: function(msg){
146
	  	//	alert( "delivery estimate is " + msg);
147
           $("#shipping_time").html(msg);
148
      }
149
 });
150
 
151
 
152
});
153
 
154
function updateEstimate(){
155
jQuery.ajax({
156
      type: "GET",
157
      url: "../estimate/"+$("#zipcode").val()+"_"+$("#item_id").val(),
158
      beforeSend: function(){ $("#days").html("<img src='../images/loader_l.gif'>"); },
159
      success: function(msg){
160
	  		//alert( "delivery estimate is " + msg);
161
           $("#shipping_time").html(msg);
162
      }
163
 });
164
}
165
 
166
</script>
167
 
507 rajveer 168
</body>
169
</html>