2016-04-14 11 views
0

Kategori menüsünde ürünlerin her bir kategorisinde 2 fotoğraf göstermem gerekiyor. Daha fazla açıklama için lütfen this linkine bakınız. Bunu yapmak için, ben sublayouts klasördeki ve products.php dosyalarında kod aşağıda kullanmış:virtuemart3 mouse hover ile 2 fotoğraf gösteriyor

<div class="img-wrapper"> 
           <?php 
             $image = $product->images[0]->displayMediaThumb('class="browseProductImage featuredProductImageFirst" id="Img_to_Js_'.$product->virtuemart_product_id.'" border="0"',false) ; 
             if(!empty($product->images[1])){ 
             $image2 = $product->images[1]->displayMediaThumb('class="browseProductImage featuredProductImageSecond" border="0"',false) ; 
             } else {$image2= $product->images[0]->displayMediaThumb('class="browseProductImage featuredProductImageSecond" border="0"',false) ;} 
             echo JHTML::_('link', JRoute::_('index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id='.$product->virtuemart_product_id.'&virtuemart_category_id='.$product->virtuemart_category_id),'<div class="front">'.$image.'</div><div class="back">'.$image2.'</div>'); 
           ?> 
           </div> 

ama sadece bir resim canlı demo gösterileri out.It işe yaramadı: http://new.decoricor.com/decoricor-jewelery/hair-style

cevap

0

yoktur bir Kategori görünümünde birden fazla resmi göstermek için gizli yapılandırma. Burada değerlerini ayarlayabilirsiniz: /administrator/components/com_virtuemart/virtuemart.cfg

prodimg_browse 2

Bu kategorinin view.html.php denir = 2. prodimg_browse için ayarlanması gerekir görünüm.

Bundan sonra dizinizde iki resim yer alacaktır. Gizli yapılandırma için

Dokümantasyon: http://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html