# __LIST_PRODUCTS___

## Lorem, ipsum dolor sit amet consectetur adipisicing elitsit amet consectetur adipisicing

require_once DOL_DOCUMENT_ROOT.'/core/class/translate.class.php'; require_once DOL_DOCUMENT_ROOT.'/product/class/product.class.php'; require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php'; $user = new User($db); $product = new Product($db); $products = $product->getProductsToPreviewInEmail(4); if (empty($products)){ print '

No Products

'; }else { foreach($products as $product){ if ($i % 2 == 0) { print '
'; } print '

### '.$product["ref"].'

'.$product["description"].'

'; if ($i % 2 == 1 || $i == $num - 1) { print '
'; } $i++; } }