Opencart: mengubah default tampilan produk menjadi GRID

Opencart versi 1.5.5.1. File yang akan dimodifikasi ada di sini:

view\theme\default\template\product\category.tpl
view\theme\default\template\product\manufacturer_info.tpl
view\theme\default\template\product\search.tpl
view\theme\default\template\product\special.tpl

note: default adalah nama theme yang digunakan.
pada list code berikut, ubah display(‘list’); menjadi display(‘grid’);

if (view) {
	display(view);
} else {
	display('grid');
}

tambahkan script ini:

<script type="text/javascript">
	$(document).ready(function() { 
		if(typeof display == 'function') {
		display('grid'); 
		} 
	});
</script>

Thanks dbassa🙂
source : http://forum.opencart.com/viewtopic.php?t=58968

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s