, 15 2014 . 14:06
+
:
-:
? .
2 :
Products:
id catID name price ... sort_order
add_cats,
catID sort_order productID
id . SQL
SELECT
*
FROM
SS_products p
WHERE (
(
p.productID IN (
139,
141,
142,
178,
179,
180,
181,
198,
280,
297,
-- ...
)
)
OR (p.categoryID IN (311))
)
AND (p.enabled = 1)
ORDER BY p.sort_order,
p.name
LIMIT 0, 10
sort_order. Shop-Script 3
http://www.weblancer.net/projects/622141.html