Extension - Image Preview v1

Extension Filter

Search

Categories

License

Version

Currency

Image Preview v1

Image Preview v1
Extension Name Image Preview v1 Rating 1 2 3 4 5
License Free Votes 9
Developer mapetshi Views 5612
Date Added 25 May 2012 Request Support
Date Modified 25 May 2012 Report extension
Allows your customer to preview the product image in large without leaving the page when mouse over. Applicable in home, category and manufacturer page.
Download Name Compatibility Action
Image Preview v1 v1.5.2.1 [ Download ]

[Compatibility]
Supports OpenCart Version 1.5.2.1 Up

[Installation]

1. No files or data will be overridden
2. Copy 'admin' and 'catalog' folders into the root folder of your website
3. Add the module in home, category and manufacturer page.

[Other]

Replace Line 110 to Line 201 in \catalog\view\theme\default\template\product\category.tpl with this to enable image preview when display change to grid or list.

<script type="text/javascript"><!--
function display(view) {
if (view == 'list') {
$('.product-grid').attr('class', 'product-list');

$('.product-list > div').each(function(index, element) {
html = '<div class="right">';
html += ' <div class="cart">' + $(element).find('.cart').html() + '</div>';
html += ' <div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += ' <div class="compare">' + $(element).find('.compare').html() + '</div>';
html += '</div>';

html += '<div class="left">';

var image = $(element).find('.image').html();

if (image != null) {
html += '<div class="image">' + image + '</div>';
}

var price = $(element).find('.price').html();

if (price != null) {
html += '<div class="price">' + price + '</div>';
}

html += ' <div class="name">' + $(element).find('.name').html() + '</div>';
html += ' <div class="description">' + $(element).find('.description').html() + '</div>';

var rating = $(element).find('.rating').html();

if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}

html += '</div>';


$(element).html(html);

$.preview();
});

$('.display').html('<b><?php echo $text_display; ?></b> <?php echo $text_list; ?> <b>/</b> <a onclick="display(\'grid\');"><?php echo $text_grid; ?></a>');

$.cookie('display', 'list');
} else {
$('.product-list').attr('class', 'product-grid');

$('.product-grid > div').each(function(index, element) {
html = '';

var image = $(element).find('.image').html();

if (image != null) {
html += '<div class="image">' + image + '</div>';
}

html += '<div class="name">' + $(element).find('.name').html() + '</div>';
html += '<div class="description">' + $(element).find('.description').html() + '</div>';

var price = $(element).find('.price').html();

if (price != null) {
html += '<div class="price">' + price + '</div>';
}

var rating = $(element).find('.rating').html();

if (rating != null) {
html += '<div class="rating">' + rating + '</div>';
}

html += '<div class="cart">' + $(element).find('.cart').html() + '</div>';
html += '<div class="wishlist">' + $(element).find('.wishlist').html() + '</div>';
html += '<div class="compare">' + $(element).find('.compare').html() + '</div>';

$(element).html(html);
$.preview();
});

$('.display').html('<b><?php echo $text_display; ?></b> <a onclick="display(\'list\');"><?php echo $text_list; ?></a> <b>/</b> <?php echo $text_grid; ?>');

$.cookie('display', 'grid');
}
}

view = $.cookie('display');

if (view) {
display(view);
} else {
display('list');
}
//--></script>

Tags Allows your customer to preview , category and manufacturer page.

Hosted by Arvixe Web Hosting