View Single Post
  #118  
Old 12-08-2005, 03:09 AM
  just_me's Avatar 
just_me just_me is offline
 

Advanced Member
  
Join Date: Oct 2005
Location: Spain
Posts: 69
 

Default Tabbed content menu for product page with dynamic labels

We have implemented this DIY mod and are absolutely enthusiastic about it. Thanks.
We have changed the way the tabs text is shown in order to accommodate our trilingual webstore. The original text, for example "Recommended Products", has been replaced by it's equivalent label, in this case, {$lng.lbl_recommends}.

The other labels are:
{$lng.lbl_send_to_friend}

{$lng.lbl_detailed_images}

{$lng.lbl_customer_reviews}

{$lng.lbl_related_products}

Here is the revised code:



<a name="tabs"></a>
<ul id="tablist">[*]{$lng.lbl_detailed_images} [*]{$lng.lbl_send_to_friend}[*]{$lng.lbl_related_products}[*]{$lng.lbl_recommends}[*]{$lng.lbl_customer_reviews} [/list]
<DIV id="tabcontentcontainer">

<div id="sc1" class="tabcontent">
{include file="modules/Detailed_Product_Images/product_images.tpl" }
</div>

<div id="sc2" class="tabcontent">
{include file="customer/main/send_to_friend.tpl" }
</div>

<div id="sc3" class="tabcontent">
{if $active_modules.Upselling_Products ne ""}
{include file="modules/Upselling_Products/related_products.tpl" }
{/if}
</div>

<div id="sc4" class="tabcontent">
{include file="modules/Recommended_Products/recommends.tpl" }
</div>

<div id="sc5" class="tabcontent">
{if $active_modules.Customer_Reviews ne ""}
{include file="modules/Customer_Reviews/vote_reviews.tpl" }
{/if}
</div>

</DIV>

{if $active_modules.Product_Options ne '' && $product_options ne ''}
<SCRIPT type="text/javascript" language="JavaScript 1.2">
check_options();
</SCRIPT>
{/if}


We also changed the order so that sc1, the default tab shown, is the detailed image instead of send to a friend. Because all our products have detailed images and because of the nature of the product we sell, that is what the customer wants to see first.

You can see it at work here:
http://www.mercalydia.com/tienda/catalog/english/index.html

Again, thanks for sharing this mod. I just wanted to share my little bit here.
__________________
Cordially,
Just me
X-Cart Gold
Version 4.2.3
Multilingual shop: Spanish, French and US English
Reply With Quote