我在Magento实例中使用了ultimo主题,并安装了rapidcommerce infinite ajax scroll extension。安装页面滚动工作完美但是,悬停时的操作按钮不会出现在下一页产品上。
<script type="text/javascript">
<?php if ($useIas): ?>
jQuery.ias({
delay:600,
container : '.product-columns-3',
<?php if ($productListMode == 'grid'): ?>
item: '.products-grid',
<?php else: ?>
item: '.products-list',
<?php endif; ?>
pagination: '.toolbar .pager',
next: '.next',
loader: '<img src="<?php echo($this->getSkinUrl('images/ajaxscroll/loader.gif')); ?>" /> <?php echo __('Loading more products, please be patient...'); ?>',
<?php if($this->getGoogleAnalyticsEnabled()): ?>
onPageChange: function(pageNum, pageUrl, scrollOffset) {
// This will track a pageview every time the user scrolls up or down the screen to a different page.
path = jQuery('<a/>').attr('href',pageUrl)[0].pathname.replace(/^[^\/]/,'/');
_gaq.push(['_trackPageview', path]);
},
<?php endif; ?>
triggerPageThreshold: <?php echo $this->getIasTriggerpagethreshold(); ?>,
thresholdMargin: <?php echo $this->getIasThresholdmargin(); ?>,
trigger: '<?php echo __('Load more items'); ?>',
history: <?php echo ($this->getIasHistory()) ? 'true' : 'false'; ?>
});
<?php endif; ?>
<?php if ($useUitotop): ?>
jQuery(document).ready(function() {
jQuery().UItoTop({ easingType: 'easeOutQuart' });
});
<?php endif; ?>
</script>
请帮帮我们。
我曾尝试将模板文件复制到主题文件夹中,但没有运气:(