Bonjour,
Il suffit de supprimer le code:
<span id="hikashop_product_price_main" class="hikashop_product_price_main" itemprop="offers" itemscope itemtype="https://schema.org/Offer">
<?php
$main =& $this->element;
if(!empty($this->element->main))
$main =& $this->element->main;
if(!empty($main->product_condition)){
?>
<meta itemprop="itemCondition" itemtype="https://schema.org/OfferItemCondition" content="https://schema.org/<?php echo $main->product_condition; ?>" />
<?php
}
// LAYOUT listing_price
if($this->params->get('show_price') && (empty($this->displayVariants['prices']) || $this->params->get('characteristic_display') != 'list')) {
$this->row =& $this->element;
$this->setLayout('listing_price');
echo $this->loadTemplate();
?>
<meta itemprop="availability" content="https://schema.org/<?php echo ($this->row->product_quantity != 0) ? 'InStock' : 'OutOfstock' ;?>" />
<meta itemprop="priceCurrency" content="<?php echo $this->currency->currency_code; ?>" />
<?php
}
?>
</span>
et de le rajouter, entouré de ?> et <?php après le code:
if(!$this->params->get('catalogue') && ($this->config->get('display_add_to_cart_for_free_products') || ($this->config->get('display_add_to_wishlist_for_free_products', 1) && hikashop_level(1) && $this->params->get('add_to_wishlist') && $this->config->get('enable_wishlist', 1)) || !empty($this->element->prices))) {
if(!empty($this->itemFields)) {
$form = ',\'hikashop_product_form\'';
if ($this->config->get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') {
?>
<input type="hidden" name="popup" value="1"/>
<?php
}
// LAYOUT show_block_custom_item
$this->setLayout('show_block_custom_item');
echo $this->loadTemplate();
}
}
Les <?php et ?> permette de passer d'un morceau de PHP à un morceau d'HTML. Donc il faut bien respecter cela et pas mettre un morceau d'HTML dans des tags de code PHP car sinon la page crashe.