Subversion Repositories SmartDukaan

Rev

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

Rev 19163 Rev 19167
Line 159... Line 159...
159
                                    } else {
159
                                    } else {
160
                                        priceToCompare = response.products[i].netPriceAfterCashBack;
160
                                        priceToCompare = response.products[i].netPriceAfterCashBack;
161
                                        priceToShow = response.products[i].available_price;
161
                                        priceToShow = response.products[i].available_price;
162
                                        if(response.products[i].source_id == 4 && response.products[i].showNetPrice == 1 && response.products[i].cash_back >0 && response.products[i].cash_back_type > 0){
162
                                        if(response.products[i].source_id == 4 && response.products[i].showNetPrice == 1 && response.products[i].cash_back >0 && response.products[i].cash_back_type > 0){
163
                                        	priceToShow = response.products[i].netPriceAfterCashBack;
163
                                        	priceToShow = response.products[i].netPriceAfterCashBack;
164
                                        	saholic_cash = '<span style="font-size:10px;color:#555;">(</span><span style="font-size:10px;color:red;">&#8377;'+response.products[i].available_price+'</span> <span style="font-size:10px;color:#555;">less </span>';
164
                                        	saholic_cash = '<span style="font-size:10px;color:#555;">(</span><span style="font-size:10px;color:red;">&#8377; '+response.products[i].available_price+'</span> <span style="font-size:10px;color:#555;">less </span>';
165
                                        	if(response.products[i].cash_back_type == 2){
165
                                        	if(response.products[i].cash_back_type == 2){
166
                                        		saholic_cash =  saholic_cash+'<span style="font-size:10px;color:green">&#8377;'+response.products[i].cash_back+'</span><span style="font-size:10px;color:#555;">)</span>';
166
                                        		saholic_cash =  saholic_cash+'<span style="font-size:10px;color:green">&#8377; '+response.products[i].cash_back+' Cashback</span><span style="font-size:10px;color:#555;">)</span>';
167
                                        	}
167
                                        	}
168
                                        	if(response.products[i].cash_back_type == 1){
168
                                        	if(response.products[i].cash_back_type == 1){
169
                                        		saholic_cash =  saholic_cash+'<span style="font-size:10px;color:green">'+response.products[i].cash_back+'%</span><span style="font-size:10px;color:#555;">)</span>';
169
                                        		saholic_cash =  saholic_cash+'<span style="font-size:10px;color:green">'+response.products[i].cash_back+'% Cashback</span><span style="font-size:10px;color:#555;">)</span>';
170
                                        	}
170
                                        	}
171
                                        }
171
                                        }
172
                                    }
172
                                    }
173
                                }
173
                                }
174
                                inStock = true;                             
174
                                inStock = true;                             
Line 212... Line 212...
212
                        $(that).html(minprice).siblings('.cashbackamount').html(getcashbackstring(response.products[minpriceindex].cash_back_type,response.products[minpriceindex].cash_back)).parent().addClass('viewproduct');
212
                        $(that).html(minprice).siblings('.cashbackamount').html(getcashbackstring(response.products[minpriceindex].cash_back_type,response.products[minpriceindex].cash_back)).parent().addClass('viewproduct');
213
                        
213
                        
214
                        if($(that).parent().data('storename') == "Saholic")
214
                        if($(that).parent().data('storename') == "Saholic")
215
                        {
215
                        {
216
                        	if(saholic_cash !=""){
216
                        	if(saholic_cash !=""){
217
                        		$(that).html(minprice).siblings('.cashbackamount').html(saholic_cash);
217
                        		$(that).html(minprice).siblings('.cashbackamount').html("<div>"+saholic_cash+"</div>");
218
                        	} 
218
                        	} 
219
                            if (priceRange != "") {
219
                            if (priceRange != "") {
220
                                        $(that).html(priceRange);
220
                                        $(that).html(priceRange);
221
                            }
221
                            }
222
                            var url = minpriceurl;
222
                            var url = minpriceurl;