I am using magento ver. 1.9.0.1 I am using slider to slide main product image in media.phtml page but it didn't work not even show any error.
Please see the below code: media.phtml
<?php if ('true' == (string) Mage::getConfig()->getNode('modules/Amasty_Label/active')): ?>
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product, 'product') ?>
<?php endif; ?>
<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
<div class="product-image">
<div style="position: relative;">
<ul class="bxslider">
<?php foreach ($this->getGalleryImages() as $_image): ?>
<li>
<img id="amasty_zoom" data-zoom-image="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>" src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize($imageWidth, $imageHeight); ?>" width="<?php echo $imageWidth;?>" height="<?php echo $imageHeight;?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"/>
</li>
<?php endforeach; ?>
</ul>
<?php if (count($this->getGalleryImages()) > $itemCount && Mage::getStoreConfig('amconf/carousel/enable')): ?>
<div id="prevGallery" style="top:<?php echo $smallImageSize/2 - 17;?>px" class="MagicScrollArrows MagicScrollArrowPrev"></div>
<div id="nextGallery" style="top:<?php echo $smallImageSize/2 - 17;?>px" class="MagicScrollArrows MagicScrollArrowNext"></div>
<?php if (Mage::getStoreConfig('amconf/carousel/pagination')): ?>
<div id="ampagination" style="margin-top: 10px;"></div>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php else: ?>
<div class="product-image">
<div style="position: relative;">
<ul class="bxslider">
<?php foreach ($this->getGalleryImages() as $_image): ?>
<li>
<img id="amasty_zoom" data-zoom-image="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile()); ?>"src="<?php echo $this->helper('catalog/image')->init($this->getProduct(), 'image', $_image->getFile())->resize($imageWidth, $imageHeight); ?>" width="<?php echo $imageWidth;?>" height="<?php echo $imageHeight;?>" alt="<?php echo $this->htmlEscape($_image->getLabel()) ?>" title="<?php echo $this->htmlEscape($_image->getLabel()) ?>"/>
</li>
<?php endforeach; ?>
</ul>
<?php if (count($this->getGalleryImages()) > $itemCount && Mage::getStoreConfig('amconf/carousel/enable')): ?>
<div id="prevGallery" style="top:<?php echo $smallImageSize/2 - 17;?>px" class="MagicScrollArrows MagicScrollArrowPrev"></div>
<div id="nextGallery" style="top:<?php echo $smallImageSize/2 - 17;?>px" class="MagicScrollArrows MagicScrollArrowNext"></div>
<?php if (Mage::getStoreConfig('amconf/carousel/pagination')): ?>
<div id="ampagination" style="margin-top: 10px;"></div>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php if ('true' == (string)Mage::getConfig()->getNode('modules/Amasty_Label/active')): ?>
</div>
<?php endif; ?>
<?php if (count($this->getGalleryImages()) > 0): ?>
<div class="more-views">
</div>
<?php endif;?>
<script src="http://urbanior.grapesdigital.com/skin/frontend/rwd/default/js/owl.carousel.js"></script>
<script src="http://urbanior.grapesdigital.com/skin/frontend/rwd/default/js/jquery.bxslider.js"></script>
<script>
jQuery(document).ready(function($){
$('.bxslider').bxSlider1({
mode: 'fade'
});
$(".testi").owlCarousel({
items : 5,
itemsCustom : false,
itemsDesktop : [2000, 1],
itemsDesktopSmall : [979, 1],
itemsTablet : [768, 1],
itemsTabletSmall : false,
itemsMobile : [479, 1],
});
});
</script>
Please see the code and tell me how to solve this issue. Thanks
__('More Views') ?>
` this is how I do