Hi Xavier,
PRODUCT LISTINGS:
When the product is sold out it disappears from the product listings page. I would like it to remain on the page and display a "Sold Out" button/message.
PRODUCT DESCRIPTION PAGE:
If the user clicks on the "Sold Out" product to view the description, I would like the "Sold Out" button/message to display the same way a badge displays.
This works fine now on the PRODUCT LISTINGS page but it does not show on the product description page as per above. I assume I need to move the code to another view as well? If so, where please?
<div style="position:relative;text-align:center;clear:both;width:<?php echo $divWidth;?>px;margin: auto;" class="hikashop_product_main_image_subdiv"> <?php echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image'.$variant_name.'" style="display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width, $height);
if(!empty($this->element->badges) && @$this->element->product_quantity == @$this->element->badges[0]->badge_quantity );
?>
</div>
[code]
Thank you very much for your help with this.[code]
<div style="position:relative;text-align:center;clear:both;width:<?php echo $divWidth;?>px;margin: auto;" class="hikashop_product_main_image_subdiv"> <?php echo $this->image->display(@$image->file_path,true,@$image->file_name,'id="hikashop_main_image'.$variant_name.'" style="display:inline-block;vertical-align:middle"','id="hikashop_main_image_link"', $width, $height);
if(!empty($this->element->badges) && @$this->element->product_quantity == @$this->element->badges[0]->badge_quantity );
?>
</div>
Thank you very much for your help with this.[code]
Thank you very much for your help with this.