Będziemy Cię na bieżąco informować o najświeższych nowościach i propozycjach, abyś niczego nie przeoczył
ZOSTAW SWÓJ E-MAIL I UZYSKAJ KREM DO RĄK W PREZENCIE
YOUR COOKIE PREFERENCES
Continue without accepting
You can change your preferences at any time by going to the "Cookies" module or to the "Privacy Policy" sub-section of the "LEGAL & PRIVACY" section. They are accessible through links at the bottom of any eu.sistersaroma.com website page.
select `code`, `domen`, `systems_store`.`store_id`, (SELECT `code` FROM `language` WHERE `id` = systems_store.language_default) as language_default from `systems_store` leftjoin `store_language` on `store_language`.`store_id` = `systems_store`.`store_id` leftjoin `language` on `language`.`id` = `store_language`.`language_id` where (SELECT `code` FROM `language` WHERE `id` = systems_store.language_default) <> `language`.`code` OR `systems_store`.`store_id` =4
select IFNULL(CONCAT(products.id,"_",products_options.option_id,"_",products_options.value_id),CONCAT(products.id,"_","_")) as id, IFNULL(CONCAT(products.id,"_",products_options.option_id,"_",products_options.value_id),CONCAT(products.id,"_","_")) as product_id, `products_descriptions`.`name`, `products_options`.`option_id`, `products_options`.`value_id`, `products`.`type_product`, IF(products.show =1, 1,(SELECTCOUNT(*) FROM `product_role` WHERE `product_id` = products.id AND `role` IN (3,60))) as not_show, `products`.`sort` as `index`, `products_descriptions`.`name` as `alt`, IFNULL(products_options.articl,(SELECT vendor FROM `products_store` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` LIMIT 1)) as articl , concat("/pl/",(SELECT `url` FROM `categories_store` WHERE categories_store.store_id = products_descriptions.store_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1 LIMIT 1) LIMIT 1),"/",`products_store`.`url`,"/") as link, (SELECT `name` FROM `categories_descriptions` WHERE categories_descriptions.store_id = products_descriptions.store_id AND categories_descriptions.language_id = products_descriptions.language_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)) as category, (SELECT `name` FROM `categories_descriptions` WHERE categories_descriptions.store_id = products_descriptions.store_id AND categories_descriptions.language_id = products_descriptions.language_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)) as item_list_name, (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1 LIMIT 1) as category_id, (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1 LIMIT 1) as item_list_id, (SELECT `pl_available` FROM `categories_store` WHERE categories_store.store_id = products_descriptions.store_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1 LIMIT 1) LIMIT 1) as pl_available, CONCAT(
(SELECT `name` FROM `option_descriptions` WHERE `language_id` = "4" AND `option_id` = `products_options`.`option_id` LIMIT 1),
":",
(SELECT `name` FROM `option_value_descriptions` WHERE `language_id` = "4" AND `value_id` = `products_options`.`value_id` LIMIT 1)
) as optionName, "0" as quantity, "zł" as currency, IFNULL(
(SELECT `sell_id` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `sale_id` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1)
) as sell_id, IFNULL(products_options.weight,products_store.weight) as weight, IFNULL(
IFNULL(
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) as price, IFNULL(
(SELECT `bonus` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1),
(SELECT `bonus` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
) as bonus, IFNULL(IFNULL(
(SELECT `qty` FROM `products_options_partners_qty` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `partner_id` = "4" LIMIT 1),
IFNULL((SELECT `max_quantity` FROM `product_quantity_role` WHERE `product_id` = `products`.`id` AND `role` = "38" LIMIT 1),(SELECT `qty` FROM `products_partners_qty` WHERE `product_id` = `products`.`id` AND `partner_id` = "4" LIMIT 1))
),0) as quantityMax, ROUND(IFNULL(
(SELECT IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`)) FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
IFNULL(
(SELECT IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`)) FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
"0"
)
)) as sell_price, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "catalog" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"/img/no_image.png") as url, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "cart" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"") as cart, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "main" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"/img/no_image.png") as hover from `products` leftjoin `products_descriptions` on `products_descriptions`.`product_id` = `products`.`id` leftjoin `products_options` on ((`products_options`.`product_id` = products.id and `products_options`.`store_id` =3)) leftjoin `products_store` on `products_store`.`product_id` = `products`.`id` where (`products`.`status` =1and `products_descriptions`.`store_id` =3and `products_descriptions`.`language_id` =4and `products_store`.`store_id` =3) and1<>1groupby IFNULL(CONCAT(products.id,"_",products_options.option_id,"_",products_options.value_id),CONCAT(products.id,"_","_"))
select IFNULL(CONCAT(products.id,"_",`products_options`.`option_id`,"_",`products_options`.`value_id`),CONCAT(products.id,"_","_")) as id, `products`.`id` as `product_id`, `products`.`sort`, IF(products.show =1, 1,(SELECTCOUNT(*) FROM `product_role` WHERE `product_id` = products.id AND `role` IN (3,60))) as not_show, IF(products.type_product =4, 1,0) as notAddToCard, `stikers_descriptions`.`title` as `custom_label`, `stikers_descriptions`.`custom_label_size`, `stikers_descriptions`.`custom_label_size_mob`, `stikers_descriptions`.`sub_title` as `custom_label_sub`, `stikers_descriptions`.`custom_label_sub_size`, `stikers_descriptions`.`custom_label_sub_size_mob`, `stikers_descriptions`.`text_color` as `custom_label_color`, `stikers_descriptions`.`text_stiker` as `custom_label_background`, `products`.`date_edit` as `date`, `products_descriptions`.`name`, `products_descriptions`.`seo_title`, `products_descriptions`.`seo_description`, `products_descriptions`.`title_description`, `products_store`.`color`, `products_store`.`products_status` as `labelType`, "" as opt, REPLACE((SELECT `name` FROM `product_status_description` WHERE `status_id` = `products_store`.`products_status` AND `store_id` = "3" AND `language_id` = "4" LIMIT 1), "(Local)", "") as labelText, products_options.id as value_id, "" as mob_url, concat("/pl/",(SELECT `url` FROM `categories_store` WHERE categories_store.store_id = products_descriptions.store_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)),"/",`products_store`.`url`,"/") as link, concat("/pl/",(SELECT `url` FROM `categories_store` WHERE categories_store.store_id = products_descriptions.store_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)),"/") as link_cat, products_store.credit, products_store.qty_products_set, products_store.recommen_products as recommend, products.type_product, products_descriptions.seconde_description , (SELECTCOUNT(*) FROM `users_favorites` WHERE `product_id` = `products`.`id` AND `user_id` = "0") as favorite, (SELECT `name` FROM `categories_descriptions` WHERE categories_descriptions.store_id = products_descriptions.store_id AND categories_descriptions.language_id = products_descriptions.language_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)) as item_list_name, (SELECTAVG(`rating`) FROM `reviews` WHERE `reviews`.`product_id` = `products`.`id` AND `reviews`.`type_id` =1AND `reviews`.`status` = "1" AND `reviews`.`store_id` = "3" AND `reviews`.`language_id` = "4" ) as reviews_star, (SELECTCOUNT(`rating`) FROM `reviews` WHERE `reviews`.`product_id` = `products`.`id` AND `reviews`.`type_id` =1AND `reviews`.`status` = "1" AND `reviews`.`store_id` = "3" AND `reviews`.`language_id` = "4" ) as reviews_count, (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1 LIMIT 1) as item_list_id, (SELECT `name` FROM `categories_descriptions` WHERE categories_descriptions.store_id = products_descriptions.store_id AND categories_descriptions.language_id = products_descriptions.language_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)) as category, "0" as type, products.sort as sort_banner, "0" as alt, "zł" as currency, IFNULL(
IFNULL(
(SELECT `hidden_sell_sticker` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `hidden_sell_sticker` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `hidden_sell_sticker` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `hidden_sell_sticker` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) as hidden_sell_sticker, IFNULL(
IFNULL(
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) as price,
IFNULL(IFNULL(
(SELECT `sell_show` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `sell_show` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1)
), 0) as sell_show, IFNULL(
(SELECT GROUP_CONCAT(ROUND(IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`))) ORDERBYstartDESC SEPARATOR ",") FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1ANDend<= "2025-04-05 23:14:30"),
IFNULL(
(SELECT GROUP_CONCAT(ROUND(IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`))) ORDERBYstartDESC SEPARATOR ",") FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1ANDend<= "2025-04-05 23:14:30"),
"0"
)
) as old_sell_price, CAST(IFNULL(
(SELECT IF(`type` =1,(`value`),((`value`/`price`)*100)) FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
IFNULL(
(SELECT IF(`type` =1,(`value`),((`value`/`price`)*100)) FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
"0"
)
) AS UNSIGNED) as sell_price_proc, ROUND(IFNULL(
(SELECT IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`)) FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
IFNULL(
(SELECT IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`)) FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
"0"
)
)) as sell_price, CONCAT(
(SELECT `name` FROM `option_descriptions` WHERE `language_id` = "4" AND `option_id` = `products_options`.`option_id` LIMIT 1),
":",
(SELECT `name` FROM `option_value_descriptions` WHERE `language_id` = "4" AND `value_id` = `products_options`.`value_id` LIMIT 1)
) as optionName, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "catalog" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"/img/no_image.png") as url, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "main" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"/img/no_image.png") as hover, IFNULL(IFNULL(
(SELECT `qty` FROM `products_options_partners_qty` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `partner_id` = "4" ORDERBY qty DESC LIMIT 1),
IFNULL((SELECT `max_quantity` FROM `product_quantity_role` WHERE `product_id` = `products`.`id` AND `role` = "38" LIMIT 1),(SELECT `qty` FROM `products_partners_qty` WHERE `product_id` = `products`.`id` AND `partner_id` = "4" LIMIT 1))
),0) as quantityMax from `products` leftjoin `products_descriptions` on `products_descriptions`.`product_id` = `products`.`id` leftjoin `products_store` on `products_store`.`product_id` = `products`.`id` leftjoin `products_options` on ((`products_options`.`product_id` = products.id and `products_options`.`store_id` =3)) leftjoin `stikers_descriptions` on ((`stikers_descriptions`.`stiker_id` = products_store.stiker_products and `stikers_descriptions`.`language_id` =4)) where (`products`.`status` =1and `products_descriptions`.`store_id` =3and `products_descriptions`.`language_id` =4and `products_store`.`store_id` =3and `products_store`.`available` =1and IFNULL(
IFNULL(
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) >0) and0=1and (`products`.`status` =1and `products_descriptions`.`store_id` =3and `products_descriptions`.`language_id` =4and `products_store`.`store_id` =3and IFNUll( IFNULL(
(SELECT `qty` FROM `products_options_partners_qty` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `partner_id` = "4" LIMIT 1),
(SELECT `qty` FROM `products_partners_qty` WHERE `product_id` = `products`.`id` AND `partner_id` = "4" LIMIT 1)
), 0) <>0) orderby `products_options`.`sort` asc
selectcount(*) as aggregate from `blogs_store` leftjoin `blogs_descriptions` on `blogs_descriptions`.`blog_id` = `blogs_store`.`blog_id` leftjoin `blogs` on `blogs`.`id` = `blogs_store`.`blog_id` leftjoin `blogs_categories` on `blogs_categories`.`blog_id` = `blogs_store`.`blog_id` where (`blogs_store`.`store_id` =3and `blogs_store`.`status` =1and `blogs`.`status` =1and `blogs_descriptions`.`store_id` =3and `blogs_descriptions`.`language_id` =4and (SELECT `slag` FROM `blogs_categories_descriptions` WHERE `store_id` = `blogs_store`.`store_id` AND `language_id` = `blogs_descriptions`.`language_id` AND `categorie_id` = `blogs_categories`.`blog_categorie_id`) <>''and (SELECT `slag` FROM `blogs_categories_descriptions` WHERE `store_id` = `blogs_store`.`store_id` AND `language_id` = `blogs_descriptions`.`language_id` AND `categorie_id` = `blogs_categories`.`blog_categorie_id`) ='skincare')
select `id` from `categories` whereexists (select*from `categories_store` where `categories`.`id` = `categories_store`.`categorie_id` and (`store_id` =3and `available` =1)) and (`stock` isnulland `status` =1and `parent` =0) and `id` notin (select `categories_id` from `categories_role` where `role` =3or `role` ='60') and `id` <>21
selectdistinct `language_id`, `name`, `code`, "0" as home, IF(language_default = language.id,1,0) as language_default, IF(language_default = language.id,"",CONCAT("/",code,"/")) as url from `store_language` leftjoin `systems_store` on `systems_store`.`store_id` = `store_language`.`store_id` leftjoin `language` on `language`.`id` = `store_language`.`language_id` where (`store_language`.`store_id` =3)
selectcount(*) as aggregate from `categories` where (`id` =17and `status` =1and (SELECT `available` FROM `categories_store` WHERE `categorie_id` =17AND `store_id` = "3") =1)
select IFNULL(CONCAT(products.id,"_",`products_options`.`option_id`,"_",`products_options`.`value_id`),CONCAT(products.id,"_","_")) as id, `products`.`id` as `product_id`, `products`.`sort`, IF(products.show =1, 1,(SELECTCOUNT(*) FROM `product_role` WHERE `product_id` = products.id AND `role` IN (3,60))) as not_show, IF(products.type_product =4, 1,0) as notAddToCard, `stikers_descriptions`.`title` as `custom_label`, `stikers_descriptions`.`custom_label_size`, `stikers_descriptions`.`custom_label_size_mob`, `stikers_descriptions`.`sub_title` as `custom_label_sub`, `stikers_descriptions`.`custom_label_sub_size`, `stikers_descriptions`.`custom_label_sub_size_mob`, `stikers_descriptions`.`text_color` as `custom_label_color`, `stikers_descriptions`.`text_stiker` as `custom_label_background`, `products`.`date_edit` as `date`, `products_descriptions`.`name`, `products_descriptions`.`seo_title`, `products_descriptions`.`seo_description`, `products_descriptions`.`title_description`, `products_store`.`color`, `products_store`.`products_status` as `labelType`, "" as opt, REPLACE((SELECT `name` FROM `product_status_description` WHERE `status_id` = `products_store`.`products_status` AND `store_id` = "3" AND `language_id` = "4" LIMIT 1), "(Local)", "") as labelText, products_options.id as value_id, "" as mob_url, concat("/pl/",(SELECT `url` FROM `categories_store` WHERE categories_store.store_id = products_descriptions.store_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)),"/",`products_store`.`url`,"/") as link, concat("/pl/",(SELECT `url` FROM `categories_store` WHERE categories_store.store_id = products_descriptions.store_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)),"/") as link_cat, products_store.credit, products_store.qty_products_set, products_store.recommen_products as recommend, products.type_product, products_descriptions.seconde_description , (SELECTCOUNT(*) FROM `users_favorites` WHERE `product_id` = `products`.`id` AND `user_id` = "0") as favorite, (SELECT `name` FROM `categories_descriptions` WHERE categories_descriptions.store_id = products_descriptions.store_id AND categories_descriptions.language_id = products_descriptions.language_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)) as item_list_name, (SELECTAVG(`rating`) FROM `reviews` WHERE `reviews`.`product_id` = `products`.`id` AND `reviews`.`type_id` =1AND `reviews`.`status` = "1" AND `reviews`.`store_id` = "3" AND `reviews`.`language_id` = "4" ) as reviews_star, (SELECTCOUNT(`rating`) FROM `reviews` WHERE `reviews`.`product_id` = `products`.`id` AND `reviews`.`type_id` =1AND `reviews`.`status` = "1" AND `reviews`.`store_id` = "3" AND `reviews`.`language_id` = "4" ) as reviews_count, (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1 LIMIT 1) as item_list_id, (SELECT `name` FROM `categories_descriptions` WHERE categories_descriptions.store_id = products_descriptions.store_id AND categories_descriptions.language_id = products_descriptions.language_id AND categorie_id = (SELECT `categorie_id` FROM `products_categories` WHERE `product_id` = `products`.`id` AND `type` =1)) as category, "0" as type, products.sort as sort_banner, "0" as alt, "zł" as currency, IFNULL(
IFNULL(
(SELECT `hidden_sell_sticker` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `hidden_sell_sticker` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `hidden_sell_sticker` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `hidden_sell_sticker` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) as hidden_sell_sticker, IFNULL(
IFNULL(
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) as price,
IFNULL(IFNULL(
(SELECT `sell_show` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `sell_show` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1)
), 0) as sell_show, IFNULL(
(SELECT GROUP_CONCAT(ROUND(IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`))) ORDERBYstartDESC SEPARATOR ",") FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1ANDend<= "2025-04-05 23:14:30"),
IFNULL(
(SELECT GROUP_CONCAT(ROUND(IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`))) ORDERBYstartDESC SEPARATOR ",") FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1ANDend<= "2025-04-05 23:14:30"),
"0"
)
) as old_sell_price, CAST(IFNULL(
(SELECT IF(`type` =1,(`value`),((`value`/`price`)*100)) FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
IFNULL(
(SELECT IF(`type` =1,(`value`),((`value`/`price`)*100)) FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
"0"
)
) AS UNSIGNED) as sell_price_proc, ROUND(IFNULL(
(SELECT IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`)) FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
IFNULL(
(SELECT IF(`type` =1,(`price`-((`price`/100)*`value`)),(`price`-`value`)) FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
"0"
)
)) as sell_price, CONCAT(
(SELECT `name` FROM `option_descriptions` WHERE `language_id` = "4" AND `option_id` = `products_options`.`option_id` LIMIT 1),
":",
(SELECT `name` FROM `option_value_descriptions` WHERE `language_id` = "4" AND `value_id` = `products_options`.`value_id` LIMIT 1)
) as optionName, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "catalog" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"/img/no_image.png") as url, IFNULL((SELECT `url` FROM `products_images` WHERE `type` = "main" AND `store_id` = `products_store`.`store_id` AND `product_id` = `products`.`id` LIMIT 1),"/img/no_image.png") as hover, IFNULL(IFNULL(
(SELECT `qty` FROM `products_options_partners_qty` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `partner_id` = "4" ORDERBY qty DESC LIMIT 1),
IFNULL((SELECT `max_quantity` FROM `product_quantity_role` WHERE `product_id` = `products`.`id` AND `role` = "38" LIMIT 1),(SELECT `qty` FROM `products_partners_qty` WHERE `product_id` = `products`.`id` AND `partner_id` = "4" LIMIT 1))
),0) as quantityMax from `products` leftjoin `products_descriptions` on `products_descriptions`.`product_id` = `products`.`id` leftjoin `products_store` on `products_store`.`product_id` = `products`.`id` leftjoin `products_options` on ((`products_options`.`product_id` = products.id and `products_options`.`store_id` =3)) leftjoin `stikers_descriptions` on ((`stikers_descriptions`.`stiker_id` = products_store.stiker_products and `stikers_descriptions`.`language_id` =4)) where (`products`.`status` =1and `products_descriptions`.`store_id` =3and `products_descriptions`.`language_id` =4and `products_store`.`store_id` =3and `products_store`.`available` =1and IFNULL(
IFNULL(
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_options_price` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
),
IFNULL(
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" AND `sell_status` =1AND `start` <= "2025-04-05 23:14:30" ANDend>= "2025-04-05 23:14:30" LIMIT 1),
(SELECT `price` FROM `products_price` WHERE `product_id` = `products`.`id` AND `store_id` = `products_store`.`store_id` AND `group_id` = "38" AND `currency_id` = "4" LIMIT 1)
)
) >0) and0=1and (`products`.`status` =1and `products_descriptions`.`store_id` =3and `products_descriptions`.`language_id` =4and `products_store`.`store_id` =3and IFNUll( IFNULL(
(SELECT `qty` FROM `products_options_partners_qty` WHERE `product_id` = `products`.`id` AND `product_option_id` = `products_options`.`id` AND `partner_id` = "4" LIMIT 1),
(SELECT `qty` FROM `products_partners_qty` WHERE `product_id` = `products`.`id` AND `partner_id` = "4" LIMIT 1)
), 0) <>0) orderby `products_options`.`sort` asc