News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VM2.0.18a: Unpublised related products space reserved

Started by capricornio, February 02, 2013, 14:57:32 PM

Previous topic - Next topic

capricornio

If a product has four related products and one of them is set to unpublised, the product seems not to get filtered out in the divs of the default_relatedproducts.php, leaving space in the template.
I want to check whether the related product is unpublised, but what is the arrayfield for this and is it retrieved by default ? Or whatelse modification do I need to make in templated overrides ?

Milbo

You mean, you cant see the product, but the empty space is left? lol. Which version?


<?php
    
foreach ($this->product->customfieldsRelatedProducts as $field) {
    if(!empty($field->display)) {
?>
<div class="product-field product-field-type-<?php echo $field->field_type ?>">
    <span class="product-field-display"><?php echo $field->display ?></span>
</div>
<?php }
    } ?>



is changed for next version
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

capricornio