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