string(166) " AND (DATE_ADD(p.added, INTERVAL 45 DAY) > NOW()
OR DATE_ADD(p.marked_as_new, INTERVAL 45 DAY) > NOW())
AND p.newest_excluded != "Yes" AND p.is_stealth = 0 "
string(937) "
SELECT DISTINCT p.*,
IF(p.url_custom="", p.url_default,p.url_custom) AS product_url,
c.name AS cat_name,
IF(c.url_custom="",c.url_default,c.url_custom) AS cat_url,
manufacturer_name
FROM products AS p
INNER JOIN catalog AS c ON p.cid=c.cid AND c.is_visible="Yes"
LEFT JOIN manufacturers AS m ON p.manufacturer_id = m.manufacturer_id AND m.is_visible=1
WHERE p.is_visible="Yes" AND p.product_id <> "gift_certificate" AND
(
-- No stock control, pull the data
p.inventory_control = "No"
OR
-- Has any stock at all
p.stock > 0
OR
-- Has Display Out Of Stock rule
p.inventory_rule = "OutOfStock"
OR
(p.inventory_control = "AttrRuleInc" AND p.stock >= 0)
)
AND (DATE_ADD(p.added, INTERVAL 45 DAY) > NOW()
OR DATE_ADD(p.marked_as_new, INTERVAL 45 DAY) > NOW())
AND p.newest_excluded != "Yes" AND p.is_stealth = 0
ORDER BY LIMIT -8, 8"
PerfumeOils.com: Wholesale Perfume Oils®, Body Oils & Fragrance Oils
All Orders are processed and shipped within 48 to 96 hours.