| Line 836... |
Line 836... |
| 836 |
except:
|
836 |
except:
|
| 837 |
item[0]['ppq'] = 0
|
837 |
item[0]['ppq'] = 0
|
| 838 |
if filterData is None:
|
838 |
if filterData is None:
|
| 839 |
if item[0]['category_id']!=6:
|
839 |
if item[0]['category_id']!=6:
|
| 840 |
try:
|
840 |
try:
|
| 841 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=brand&brands='+str(int(item[0]['brand_id']))
|
841 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+item[0]['brand']+'&filter=brand&brands='+str(int(item[0]['brand_id']))
|
| 842 |
item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
|
842 |
item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
|
| 843 |
except:
|
843 |
except:
|
| 844 |
item[0]['filterLink'] = ""
|
844 |
item[0]['filterLink'] = ""
|
| 845 |
item[0]['filterText'] = ""
|
845 |
item[0]['filterText'] = ""
|
| 846 |
else:
|
846 |
else:
|
| 847 |
try:
|
847 |
try:
|
| 848 |
if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
|
848 |
if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
|
| 849 |
raise
|
849 |
raise
|
| 850 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
|
850 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+item[0]['subCategory']+'&filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
|
| 851 |
item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
|
851 |
item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
|
| 852 |
except:
|
852 |
except:
|
| 853 |
item[0]['filterLink'] = ''
|
853 |
item[0]['filterLink'] = ''
|
| 854 |
item[0]['filterText'] = ""
|
854 |
item[0]['filterText'] = ""
|
| 855 |
try:
|
855 |
try:
|
| Line 1814... |
Line 1814... |
| 1814 |
except:
|
1814 |
except:
|
| 1815 |
item[0]['ppq'] = 0
|
1815 |
item[0]['ppq'] = 0
|
| 1816 |
|
1816 |
|
| 1817 |
if item[0]['category_id']!=6:
|
1817 |
if item[0]['category_id']!=6:
|
| 1818 |
try:
|
1818 |
try:
|
| 1819 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=brand&brands='+str(int(item[0]['brand_id']))
|
1819 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+item[0]['brand']+'&filter=brand&brands='+str(int(item[0]['brand_id']))
|
| 1820 |
item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
|
1820 |
item[0]['filterText'] = 'More %s items'%(item[0]['brand'])
|
| 1821 |
except:
|
1821 |
except:
|
| 1822 |
item[0]['filterLink'] = ""
|
1822 |
item[0]['filterLink'] = ""
|
| 1823 |
item[0]['filterText'] = ""
|
1823 |
item[0]['filterText'] = ""
|
| 1824 |
else:
|
1824 |
else:
|
| 1825 |
try:
|
1825 |
try:
|
| 1826 |
if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategor']:
|
1826 |
if item[0]['subCategory']=='' or item[0]['subCategory'] is None or item[0]['subCategoryId']==0:
|
| 1827 |
raise
|
1827 |
raise
|
| 1828 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
|
1828 |
item[0]['filterLink'] = '/category/'+str(int(item[0]['category_id']))+'?searchFor='+item[0]['subCategory']+'&filter=subcategory&subcategories='+str(int(item[0]['subCategoryId']))
|
| 1829 |
item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
|
1829 |
item[0]['filterText'] = 'More %s'%(item[0]['subCategory'])
|
| 1830 |
except:
|
1830 |
except:
|
| 1831 |
item[0]['filterLink'] = ''
|
1831 |
item[0]['filterLink'] = ''
|
| 1832 |
item[0]['filterText'] = ""
|
1832 |
item[0]['filterText'] = ""
|
| 1833 |
try:
|
1833 |
try:
|