Subversion Repositories SmartDukaan

Rev

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

Rev 17679 Rev 17714
Line 834... Line 834...
834
                item[0]['ppq'] = 0
834
                item[0]['ppq'] = 0
835
            if filterData is None:
835
            if filterData is None:
836
                if item[0]['category_id']!=6:
836
                if item[0]['category_id']!=6:
837
                    try:
837
                    try:
838
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=brand&brands='+str(int(item[0]['brand_id']))
838
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=brand&brands='+str(int(item[0]['brand_id']))
839
                        item[0]['filterText'] = 'View more %s items'%(item[0]['brand'])
839
                        item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
840
                    except:
840
                    except:
841
                        item[0]['filterLink'] = ""
841
                        item[0]['filterLink'] = ""
842
                        item[0]['filterText'] = ""
842
                        item[0]['filterText'] = ""
843
                else:
843
                else:
844
                    try:
844
                    try:
845
                        if item[0]['subCategory']=='' or item[0]['subCategory'] is None:
845
                        if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategor']:
846
                            raise
846
                            raise
847
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
847
                        item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
848
                        item[0]['filterText'] = 'View more %s'%(item[0]['subCategory'])
848
                        item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
849
                    except:
849
                    except:
850
                        item[0]['filterLink'] = ''
850
                        item[0]['filterLink'] = ''
851
                        item[0]['filterText'] = ""
851
                        item[0]['filterText'] = ""
852
            temp.append(item[0])
852
            temp.append(item[0])
853
        if len(temp) > 1:
853
        if len(temp) > 1: