2013-05-29 1 views
0

J'ai plutôt Productimage a Flowplayer qui montre Productmovies.Vignette URL de l'image du produit Magento in Flowplayer

Dans cette extension, il y a aussi une petite thumbnailpreview: http://demo.icebergcommerce.com/htc-touch-diamond.html?vgds=3 TAB "VIDEOS"

Maintenant, je veux mettre Miniature-aperçu au lieu de VideoFrame-aperçu dans Flowplayer.

Je pourrais résoudre pour montrer une image, mais pas la vignette.

Dans ce qui suit le code:

  ...flashvars='config={"playlist":["URL THUMBNAIL HERE",{"scaling":"fit", {$autoplayConfig} "url":"{$this->getUrl($this->video_value)}"}],"canvas":{"backgroundColor":"#000000","backgroundGradient":"none"}}' />... 

Je trouve aussi dans un autre fichier, où vignette est affiché, le code source ceci:

<div class="more-views"> 
     <h2><?php echo $this->__('Videos') ?></h2> 
     <?php if (count($this->getVideoGallery()) > 0): ?> 
     <ul class="video-gallery-links"> 
     <?php foreach ($this->getVideoGallery() as $_video): ?> 
      <li> 
       <a class="video-thumb" href="<?php echo $this->getVideoGalleryUrl($_video); ?>" style="width:78px; height:56px" target="_blank" onclick="<?php echo $this->getJsObjectName(); ?>.setVideo('<?php echo $_video['value_id']; ?>'); return false;" title="<?php echo $this->htmlEscape($_video['label']) ?>"> 
        <span></span> 
        <img style="margin-top:-11px" src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'thumbnail', $_video['file'])->resize(78,78); ?>" width="78" height="78" alt="<?php echo $this->htmlEscape($_video['label']) ?>" /> 
       </a> 
      </li> 
     <?php endforeach; ?> 
     </ul> 
     <?php endif;?> 
    </div> 

Alors quel code je dois mettre en œuvre que pour chaque vidéo au lieu de videoframe le produit spécifique-vignette-image sera montré?

Répondre

0

Essayez ceci:

<img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(300); ?>" width="300" height="300" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /> 

Vous pouvez changer la taille de ce que vous voulez, mais ce n'est la miniature de la page list.phtml produit.

+0

Merci beaucoup, mais cela n'a pas fonctionné. maintenant je vois juste écran noir: 'code' \t init ($ _ produit,' small_image ') -> resize (300);?> "width =" 300 "height =" 300 "alt =" stripTags ($ this-> getImageLabel ($ _produit, 'small_image'), null, true)?> "/>", {"mise à l'échelle": "fit", {$ autoplayConfig} "url": "{$ this-> getUrl ($ this-> valeur_vidéo)}"}], "canvas": {" backgroundColor ":" # 000000 "," backgroundGradient ":" none "}} '/> ' code' – MagentoUserGermany

Questions connexes