Reputation: 13
I see something like:
<?php if(!$_item->isComposite() && $_item->isSaleable()): ?>
and this
<?php if(!$_product->isGrouped()): ?>
But couldn't find a way to target only the Simple Product type in similar manner.
Upvotes: 0
Views: 1834
Reputation: 37700
As an alternative possibility you could assume a Simple product is on that is no other type.
<?php if (!$_item->isComposite() && !$_item->isSuper() && !$_item->isVirtual()): ?>
<!-- Simple type only -->
<?php endif; ?>
Upvotes: 1
Reputation: 37700
There is already a template file catalog/product/view/type/simple.phtml
that only displays for Simple type products.
If that doesn't show in the right place for you look in layout/catalog.xml
for <PRODUCT_TYPE_simple>
to see how to make your own Simple-only template file.
Upvotes: 1