Victory
Използваме "бисквитки", за да ви предложим по-добро сърфиране. .Повече информация
POSTVAR
GETVAR
Data Base - dentallc_arabicscentsbgnewexplain
select
m.idProduct, m.Num, m.CImage, m.OptRequired, m.State, m.AddDate
, m.idTaxClass, m.Price, m.PriceTax
, sp.Price as SPrice, sp.PriceTax as SPriceTax, sp.Rate as SRate
, dp.Price as DPrice, dp.PriceTax as DPriceTax
, IF(m.MaxQuantity <> 0, LEAST(m.MaxQuantity, m.Quantity), m.Quantity) as Quantity, IF(m.MinQuantity, m.MinQuantity, 1) as MinQuantity
, ml.Name, ml.Description, ml.URLAlias
, mols.Name as StateName
, '1' as opt
, m.idManufacturer, sm.CImage as ManuImage, mlm.Name as ManuName, mlm.URLAlias as MURLAlias
, m.idCategory, cl.Name as CName, cl.URLAlias as CURLAlias
from
mod_StoreProduct as m
inner join (
select
tm.*
from
mod_StoreProduct as tm
where (1)
and (tm.State & '435')
and (tm.idProduct in ('401','397','620','1581','1584','1585','758','1707','1635','1588','1641','2011','2207','1715','1645','1644','1631','1655','1630','1640','1712','1618','1621','1607','1619','1704','813','357','800','1613','389','1577','1259','1615','1606','1617','724'))
order by rand()
limit 37
) as t on (t.idProduct = m.idProduct)
inner join mod_StoreLang ml on (t.idProduct = ml.idProduct) and (ml.idLanguage = 'bg')
inner join CategoryLang cl on (cl.idCategory = t.idCategory) and (cl.idLanguage = 'bg')
left join mod_StoreOtherLang mols on (mols.Source = 'state') and (mols.idRec = m.idState) and (mols.idLanguage = 'bg')
left join
(
SELECT
idProduct, Price, PriceTax, Rate, EndDate
FROM v_StoreDiscount
WHERE
(Special = 1)
AND (idUGroup IN (COALESCE('0', 0), 0))
)
as sp on (sp.idProduct = m.idProduct)
left join
(
SELECT
idProduct, Price, PriceTax, Rate, EndDate
FROM v_StoreDiscount
WHERE
(Special = 0) AND (Quantity = 1)
AND (idUGroup IN (COALESCE('0', 0), 0))
)
as dp on (dp.idProduct = m.idProduct)
left join mod_StoreManufacturer as sm on (sm.idManufacturer = m.idManufacturer)
left join mod_StoreMLang as mlm on (mlm.idManufacturer = m.idManufacturer) and (mlm.idLanguage = 'bg')
where (1)
| # | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
| 1 | 1 | PRIMARY | <derived2> | ALL | NULL | NULL | NULL | NULL | 37 | |
| 2 | 1 | PRIMARY | m | eq_ref | PRIMARY | PRIMARY | 4 | t.idProduct | 1 | |
| 3 | 1 | PRIMARY | mols | eq_ref | PRIMARY,idRec,Source,idLanguage | PRIMARY | 100 | dentallc_arabicscentsbgnew.m.idState,const,const | 1 | Using where |
| 4 | 1 | PRIMARY | cl | eq_ref | PRIMARY,idCategory,idLanguage | PRIMARY | 18 | t.idCategory,const | 1 | Using where |
| 5 | 1 | PRIMARY | ml | eq_ref | PRIMARY,idProdict,idLanguage | PRIMARY | 15 | t.idProduct,const | 1 | Using where |
| 6 | 1 | PRIMARY | <derived5> | ref | key0 | key0 | 4 | t.idProduct | 1 | Using where |
| 7 | 1 | PRIMARY | <derived7> | ref | key0 | key0 | 4 | t.idProduct | 1 | Using where |
| 8 | 1 | PRIMARY | sm | eq_ref | PRIMARY | PRIMARY | 4 | dentallc_arabicscentsbgnew.m.idManufacturer | 1 | |
| 9 | 1 | PRIMARY | mlm | eq_ref | PRIMARY,idLanguage,idManufacturer | PRIMARY | 15 | dentallc_arabicscentsbgnew.m.idManufacturer,const | 1 | Using where |
| 10 | 7 | LATERAL DERIVED | sd | ref | idProdict,idUGroup,Special | idProdict | 4 | t.idProduct | 1 | Using index condition; Using where; Using temporary; Using filesort |
| 11 | 7 | LATERAL DERIVED | <derived8> | ref | key0 | key0 | 9 | dentallc_arabicscentsbgnew.sd.idProduct,dentallc_arabicscentsbgnew.sd.Special,dentallc_arabicscentsbgnew.sd.idUGroup | 1 | Using where |
| 12 | 8 | DERIVED | mod_StoreDiscount | ALL | idProdict,idUGroup,Special | NULL | NULL | NULL | 2031 | Using where; Using temporary; Using filesort |
| 13 | 5 | LATERAL DERIVED | sd | ref | idProdict,idUGroup,Special | idProdict | 4 | t.idProduct | 1 | Using index condition; Using where; Using temporary; Using filesort |
| 14 | 5 | LATERAL DERIVED | <derived6> | ref | key0 | key0 | 9 | dentallc_arabicscentsbgnew.sd.idProduct,dentallc_arabicscentsbgnew.sd.Special,dentallc_arabicscentsbgnew.sd.idUGroup | 1 | Using where |
| 15 | 6 | DERIVED | mod_StoreDiscount | ALL | idProdict,idUGroup,Special | NULL | NULL | NULL | 2031 | Using where; Using temporary; Using filesort |
| 16 | 2 | DERIVED | tm | range | PRIMARY | PRIMARY | 4 | NULL | 37 | Using where; Using temporary; Using filesort |
n/a
| # | File | lines |
| 1. | /home/dentallc/new.arabicscents.bg/index.php | 6 |
| 2. | /home/dentallc/new.arabicscents.bg/conf.inc.php | 25 |
| 3. | /home/dentallc/new.arabicscents.bg/constants.inc.php | 94 |
| 4. | /home/dentallc/new.arabicscents.bg/include/errors.inc.php | 97 |
| 5. | /home/dentallc/new.arabicscents.bg/class/builder.class.php | 463 |
| 6. | /home/dentallc/new.arabicscents.bg/class/db.class.php | 279 |
| 7. | /home/dentallc/new.arabicscents.bg/class/autoloader.class.php | 96 |
| 8. | /home/dentallc/new.arabicscents.bg/lib/bpage/autoload.php | 45 |
| 9. | /home/dentallc/new.arabicscents.bg/lib/easytpl/autoload.php | 39 |
| 10. | /home/dentallc/new.arabicscents.bg/include/functions.inc.php | 1801 |
| 11. | /home/dentallc/new.arabicscents.bg/include/utf8/utf8.php | 77 |
| 12. | /home/dentallc/new.arabicscents.bg/include/utf8/mbstring/core.php | 140 |
| 13. | /home/dentallc/new.arabicscents.bg/include/utf8/substr_replace.php | 24 |
| 14. | /home/dentallc/new.arabicscents.bg/include/utf8/ucfirst.php | 34 |
| 15. | /home/dentallc/new.arabicscents.bg/include/utf8/ucwords.php | 44 |
| 16. | /home/dentallc/new.arabicscents.bg/include/utf8/pathinfo.php | 48 |
| 17. | /home/dentallc/new.arabicscents.bg/include/constants_db.inc.php | 209 |
| 18. | /home/dentallc/new.arabicscents.bg/template/bagshop/settings.inc.php | 9 |
| 19. | /home/dentallc/new.arabicscents.bg/include/rights.inc.php | 145 |
| 20. | /home/dentallc/new.arabicscents.bg/class/rights.class.php | 150 |
| 21. | /home/dentallc/new.arabicscents.bg/class/session.class.php | 389 |
| 22. | /home/dentallc/new.arabicscents.bg/include/compmanager.inc.php | 236 |
| 23. | /home/dentallc/new.arabicscents.bg/class/component.class.php | 105 |
| 24. | /home/dentallc/new.arabicscents.bg/class/cache-hellper.class.php | 75 |
| 25. | /home/dentallc/new.arabicscents.bg/class/cache.class.php | 72 |
| 26. | /home/dentallc/new.arabicscents.bg/lib/stash/autoload.php | 25 |
| 27. | /home/dentallc/new.arabicscents.bg/class/events.class.php | 208 |
| 28. | /home/dentallc/new.arabicscents.bg/include/events.inc.php | 9 |
| 29. | /home/dentallc/new.arabicscents.bg/modules/store/events.inc.php | 7 |
| 30. | /home/dentallc/new.arabicscents.bg/modules/user/events.inc.php | 10 |
| 31. | /home/dentallc/new.arabicscents.bg/class/trafficsource.class.php | 195 |
| 32. | /home/dentallc/new.arabicscents.bg/include/langs/language_bg.inc.php | 1712 |
| 33. | /home/dentallc/new.arabicscents.bg/modules/store/store.inc.php | 1845 |
| 34. | /home/dentallc/new.arabicscents.bg/class/log.class.php | 37 |
| 35. | /home/dentallc/new.arabicscents.bg/modules/tag/tag.mod.php | 182 |
| 36. | /home/dentallc/new.arabicscents.bg/include/layoutfs.inc.php | 1139 |
| 37. | /home/dentallc/new.arabicscents.bg/template/bagshop/layoutfs.inc.php | 181 |
| 38. | /home/dentallc/new.arabicscents.bg/template/bagshop/navigator.inc.php | 351 |
| 39. | /home/dentallc/new.arabicscents.bg/class/navigator.class.php | 583 |
| 40. | /home/dentallc/new.arabicscents.bg/modules/store/store.tag.php | 39 |
| 41. | /home/dentallc/new.arabicscents.bg/include/subcomponent.inc.php | 39 |
| 42. | /home/dentallc/new.arabicscents.bg/template/bagshop/tag/tag.tpl.php | 52 |
| 43. | /home/dentallc/new.arabicscents.bg/modules/notification/notification-ad.mod.php | 60 |
| 44. | /home/dentallc/new.arabicscents.bg/template/bagshop/notification/notification-ad-toast.tpl.php | 91 |
| 45. | /home/dentallc/new.arabicscents.bg/modules/gdpr/gdpr-ad.mod.php | 21 |
| 46. | /home/dentallc/new.arabicscents.bg/template/bagshop/gdpr/gdpr-ad.tpl.php | 219 |
| 47. | /home/dentallc/new.arabicscents.bg/modules/store/store-locator-ad.mod.php | 177 |
| 48. | /home/dentallc/new.arabicscents.bg/class/extention.class.php | 188 |
| 49. | /home/dentallc/new.arabicscents.bg/class/filemanager.class.php | 970 |
| 50. | /home/dentallc/new.arabicscents.bg/template/bagshop/cache/store/store-locator-ad.tpl.php | 42 |
| 51. | /home/dentallc/new.arabicscents.bg/modules/text/text.mod.php | 32 |
| 52. | /home/dentallc/new.arabicscents.bg/template/bagshop/cache/text/text.tpl.php | 2 |
| 53. | /home/dentallc/new.arabicscents.bg/modules/store/store-search-ad.mod.php | 142 |
| 54. | /home/dentallc/new.arabicscents.bg/template/bagshop/cache/store/store-search-ad.tpl.php | 118 |
| 55. | /home/dentallc/new.arabicscents.bg/modules/store/store-basket-ad.mod.php | 223 |
| 56. | /home/dentallc/new.arabicscents.bg/class/currency.class.php | 284 |
| 57. | /home/dentallc/new.arabicscents.bg/modules/store/totals/sub_total.inc.php | 84 |
| 58. | /home/dentallc/new.arabicscents.bg/modules/store/totals/shipping.inc.php | 69 |
| 59. | /home/dentallc/new.arabicscents.bg/modules/store/totals/coupon.inc.php | 100 |
| 60. | /home/dentallc/new.arabicscents.bg/modules/store/totals/tax.inc.php | 42 |
| 61. | /home/dentallc/new.arabicscents.bg/modules/store/totals/total.inc.php | 21 |
| 62. | /home/dentallc/new.arabicscents.bg/modules/store/store-gift-ex.mod.php | 719 |
| 63. | /home/dentallc/new.arabicscents.bg/template/bagshop/store/basket-summary.tpl.php | 167 |
| 64. | /home/dentallc/new.arabicscents.bg/template/bagshop/cache/store/store-basket-ad.tpl.php | 70 |
| 65. | /home/dentallc/new.arabicscents.bg/modules/store/store-item-ex.mod.php | 314 |
| 66. | /home/dentallc/new.arabicscents.bg/template/bagshop/store/store-item-ex-carosel.tpl.php | 70 |
| 67. | /home/dentallc/new.arabicscents.bg/template/bagshop/store/product-thumb-ex.tpl.php | 53 |
| 68. | /home/dentallc/new.arabicscents.bg/modules/store/store-measure.mod.php | 182 |
| 69. | /home/dentallc/new.arabicscents.bg/_admin_/modules/store/measure/autoload.php | 43 |
| Total | 15819 |