Subversion Repositories SmartDukaan

Rev

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

Rev 7317 Rev 7336
Line 158... Line 158...
158
			exportDir.mkdir();
158
			exportDir.mkdir();
159
		}
159
		}
160
 
160
 
161
		// This URL is used to ensure that images such as icon and thumbnail for
161
		// This URL is used to ensure that images such as icon and thumbnail for
162
		// a particular entity are always downloaded from the same location.
162
		// a particular entity are always downloaded from the same location.
163
		String staticurl = "http://static" + catalogId%3 + "." + domain;
163
		String staticurl = "http://static" + catalogId%3 + "." + (domain.contains("store") ? "saholic.com":domain);
164
		
164
		
165
		
165
		
166
		VelocityContext context = new VelocityContext();
166
		VelocityContext context = new VelocityContext();
-
 
167
		context.put("domain", domain.contains("store") ? "saholic.com":domain);
167
		context.put("itemDetails", itemDetails);
168
		context.put("itemDetails", itemDetails);
168
		context.put("minPriceItem", minPriceItem);
169
		context.put("minPriceItem", minPriceItem);
169
		context.put("domain", domain);
-
 
170
		context.put("staticurl", staticurl);
170
		context.put("staticurl", staticurl);
171
		context.put("OFFER_TEXT", offerText);
171
		context.put("OFFER_TEXT", offerText);
172
		context.put("OFFER_DETAIL_TEXT", offerDetailText);
172
		context.put("OFFER_DETAIL_TEXT", offerDetailText);
173
		context.put("OFFER_DETAIL_LINK", offerDetailLink);
173
		context.put("OFFER_DETAIL_LINK", offerDetailLink);
174
		context.put("AFTER_ARRIVAL", afterArrival);
174
		context.put("AFTER_ARRIVAL", afterArrival);
175
		context.put("SHOW_PRICE", showPrice);
-
 
176
		context.put("SHOW_PRICE", domain.contains("store")?"FALSE":"TRUE");
175
		context.put("SHOW_PRICE", domain.contains("store")?"FALSE":showPrice);
177
		context.put("IS_STORE", domain.contains("store")?"TRUE":"FALSE");
176
		context.put("IS_STORE", domain.contains("store")?"TRUE":"FALSE");
178
		List<String> filenames = new ArrayList<String>();
177
		List<String> filenames = new ArrayList<String>();
179
		filenames.add("ProductDetail");
178
		filenames.add("ProductDetail");
180
		filenames.add("WidgetSnippet");
179
		filenames.add("WidgetSnippet");
181
		filenames.add("HomeSnippet");
180
		filenames.add("HomeSnippet");