Exemple #1
0
                echo JeproshopValidator::convertPrice($product->price_tax_exc);
            }
            ?>
							</span>
                                <meta itemprop="priceCurrency" content="<?php 
            echo $this->currency->iso_code;
            ?>
" />
                                <?php 
            if (isset($product->specific_prices) && $product->specific_prices && isset($product->specific_prices->reduction) && $product->specific_prices->reduction > 0) {
                ?>
                                    <?php 
                /* {hook h="displayProductPriceBlock" product=$product type="old_price"} */
                ?>
                                    <span class="old_price product_price"><?php 
                echo JeproshopValidator::displayPriceWithoutReduction($product->price_without_reduction);
                ?>
</span>
                                    <?php 
                //{hook h="displayProductPriceBlock" id_product=$product->id_product type="old_price"}
                ?>
                                    <?php 
                if ($product->specific_prices->reduction_type == 'percentage') {
                    ?>
                                        <span class="price_percent_reduction">-<?php 
                    echo $product->specific_prices->reduction * 100 . '%';
                    ?>
</span>
                                    <?php 
                }
                ?>