Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if($_product->isConfigurable()): ?>
- <?php // get attributes ?>
- <?php $attributes = $_product->getTypeInstance(true)->getConfigurableAttributes($_product) ?>
- <?php if(count($attributes)): ?>
- <span class="flavor_count"><?php echo count($attributes); ?> Flavors</span>
- <?php endif;?>
- <?php endif;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement