Hi,
I'm trying to make "Customers also bought" as the default tab (instead of the "Send to friend" tab) when viewing the product details page.
I figured the file to edit is /skin/common_files/customer/main/ui-tabs.tpl
but I'm unable to make head or tail of the JQuery part to make this work:
Code:
(xcart ver 4.5.5)
<script type="text/javascript">
//<![CDATA[
$(function() {ldelim}
var days = ('function' != typeof window.func_is_allowed_cookie || func_is_allowed_cookie('ui-tabs-')) ? 1 : -1;
var tOpts = {ldelim}
idPrefix: '{$prefix|default:"ui-tabs-"}', cookie: {ldelim} expires: days {rdelim}{if $selected}, selected: '{$selected}'{/if}
{rdelim};
$('#{$prefix}container').tabs(tOpts);
{rdelim});
//]]>
</script>
The rendered HTML is:
Code:
<script type="text/javascript">
//<![CDATA[
$(function() {
var days = ('function' != typeof window.func_is_allowed_cookie || func_is_allowed_cookie('ui-tabs-')) ? 1 : -1;
var tOpts = {
idPrefix: 'product-tabs-', cookie: { expires: days } };
$('#product-tabs-container').tabs(tOpts);
});
//]]>
</script>
<div id="product-tabs-container">
<ul>
<li><a href="#product-tabs-send2friend">Send to friend</a></li>
<li><a href="#product-tabs-recommends">Customers also bought</a></li>
<li><a href="#product-tabs-feedback">Customer feedback</a></li>
</ul>
Can anyone please help me or point me to the right direction?
Thanks.