Skip to main content

Microdata on Product Page plugin

More
14 years 3 months ago - 14 years 3 months ago #53306 by erickb
je viens d'installer la 1.5.8 et d'activer Microdata on Product Page plugin , quels fichiers ça modifie ?

je trouve bien itemscope itemtype=" schema.org/Product " mais je suppose qu'on doit manuellement ajouter dans les view tout le reste ? itemprop="price" ect ...

en tout cas c'est une excellente idee

merci
Last edit: 14 years 3 months ago by erickb.

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #53315 by nicolas
C'est just le début pour ce plugin. Dans la prochaine version, il gèrera plus d'attributs.
Pour répondre à la question pour les autres: C'est sur la page produit que le plugin ajoute des attributs dans l'HTML pour le support du microdata en utilisant les définitions de schema.org
Cela permettra une belle mise en page des liens google dans les résultats de recherche et dans le future une meilleur position dans le référencement.

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago #53336 by erickb
ok donc en attendant je vais rajouter itemprop="price" name ect ...

merci

Please Log in or Create an account to join the conversation.

More
14 years 3 months ago - 14 years 3 months ago #53382 by erickb
si ca peut aider

exemple du templates/TPL/html/com_hikashop/product/listing_img_title.php
Code:
<div class="hk-shoes-item" itemscope itemtype="http://schema.org/Product"> <h4 class="hk_shoes_name"> <?php if($this->params->get('link_to_product_page',1)){ ?> <a href="<?php echo $link;?>" itemprop="url"> <?php } echo $name; if($this->params->get('link_to_product_page',1)){ ?> </a> <?php } ?> </h4> <div class="hk_product_image"> <a href="<?php echo $link;?>" title="<?php echo $this->escape($this->row->product_name); ?>" itemprop="url"> <?php echo $this->image->display(@$this->row->file_path,false,$this->escape($this->row->product_genre . ' ' . $this->row->product_description), 'itemprop="image"' , '' , $this->image->main_thumbnail_x, $this->image->main_thumbnail_y);?> </a> </div> <div class="hk_shoes_price" itemprop="offers" itemscope itemtype="http://schema.org/Offer"> <meta itemprop="priceCurrency" content="EUR" /> <link itemprop="availability" href="http://schema.org/InStock" /> <meta itemprop="seller" content="Sacapuce" /> <?php $this->setLayout('listing_price'); echo $this->loadTemplate(); ?> </div> <div class="hk_shoes_descr"><p class="hk_shoes_descr_p" itemprop="description"><? echo $this->row->product_description ; ?></p></div> </div>

et itemprop price dans le listing_price
Last edit: 14 years 3 months ago by erickb.
The following user(s) said Thank You: nicolas

Please Log in or Create an account to join the conversation.

Time to create page: 0.182 seconds
Powered by Kunena Forum