I just have a few programming questions about downloadable products.
As usual Varien didn’t gave us any technical details about a new feature.
So I read the core classes. I found several great functionalities but not how to know if a product is a downloadable one.
When I list products of a category for example, I would like to test if a product is downloadable to display them differently than others.
But I have the feeling that downloadable product has not been implemented as a product type, unlike bundled, grouped or virtual for example. Anyone can help me with that ? Is it possible to have a code like :
<?php if($_product->isDownloadable()): ?>
<a href="<?php $_product->getDownloadLink() ?>" ....</a>
<?php endif ?>
[Disclaimer] This code is just a way to explain what kind of features I wan’t to do, of course those methods doesn’t exist !