View Single Post
  #30  
Old 01-11-2008, 06:48 PM
 
sales@webosusa.com sales@webosusa.com is offline
 

Senior Member
  
Join Date: Nov 2007
Location: Australia
Posts: 118
 

Default Re: Menu with Tabs for Product page

This is for who need this MOD with Multi-language option. you might like it. Just a little contribution for such a great work.

MoonDog, thanks again for this MOD. Has help me a lot.

================================================== =========

This include the following parts: Product Magnifier (Not translated), Send to a Friend, Detailed Images, Related Products, Recommended_Products, Customer Reviews and Full Description. For any other TAB that you may need or has been post on this thread you got do yourself once i do not the time do do now. Put full description as MoonDog says on post #14.

1. Ad a new label for US language (Automatically will generate the same for each country already installed on your X-Cart Shop) named as "txt_
no_detailed_images" and other named as "txt_no_detailed_images".

or on Admin > Patch/Upgrade execute the following code:

Code:
INSERT INTO xcart_languages VALUES ('US','txt_no_related_images','No Related Products','Text'); INSERT INTO xcart_languages VALUES ('US','txt_no_detailed_images','No detailed images','Text'); INSERT INTO xcart_languages VALUES ('US','lbl_more_tabs','More...','Text');


2. After the installation you will need go to Languages on Admin and translate each for the language related that you want. EX.: As in English will be "No detailed images.", in Portuguese

will be "Sem imagens detalhadas" and so on. Do the same for the other "VALUES".


3. Where was in the begin of this post (/skin1/customer/main/product.tpl):

instead this... (Before implement "Full Description")

Code:
<div class="tabber"> {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <div class="tabbertab"> <h2>Product Magnifier</h2> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} </div> {/if} {if $config.Appearance.send_to_friend_enabled eq 'Y'} <div class="tabbertab"> <h2>Send to Friend</h2> {include file="customer/main/send_to_friend.tpl" } </div> {/if} {if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')} <div class="tabbertab"> <h2>Detailed Images</h2> {include file="modules/Detailed_Product_Images/product_images.tpl" } </div> {/if} {if $active_modules.Upselling_Products ne ""} <div class="tabbertab"> <h2>Related Products</h2> {include file="modules/Upselling_Products/related_products.tpl" } </div> {/if} {if $active_modules.Recommended_Products ne ""} <div class="tabbertab"> <h2>Recommended Products</h2> {include file="modules/Recommended_Products/recommends.tpl" } </div> {/if} {if $active_modules.Customer_Reviews ne ""} <div class="tabbertab"> <h2>Reviews</h2> {include file="modules/Customer_Reviews/vote_reviews.tpl" } </div> {/if} </div>


change for this:

Code:
<div class="tabber" id="mytabber"> {if $active_modules.Magnifier ne "" && ($config.Magnifier.magnifier_image_popup ne 'Y' || $js_enabled ne 'Y')} <div class="tabbertab"> <h2>Product Magnifier</h2> {include file="modules/Magnifier/product_magnifier.tpl" productid=$product.productid} </div> {/if} {if $config.Appearance.send_to_friend_enabled eq 'Y'} <div class="tabbertab"> <h2>{$lng.lbl_send_to_friend}</h2> {include file="customer/main/send_to_friend.tpl" } </div> {/if} {if $active_modules.Detailed_Product_Images ne "" && ($config.Detailed_Product_Images.det_image_popup ne 'Y' || $js_enabled ne 'Y')} <div class="tabbertab"> <h2>{$lng.lbl_detailed_images}</h2> {include file="modules/Detailed_Product_Images/product_images.tpl" }</div> {/if} {if $active_modules.Upselling_Products ne ""} <div class="tabbertab"> <h2>{$lng.lbl_related_products}</h2> {include file="modules/Upselling_Products/related_products.tpl" }</div> {/if} <div class="tabbertab" id="description"> <h2>{$lng.lbl_full_description}</h2> {include file="customer/main/full_description.tpl"}</div> <div class="tabbertab"> <h2>{$lng.lbl_more_tabs}</h2> <div class="tabber" id="mytabber"> {if $active_modules.Recommended_Products ne ""} <div class="tabbertab tabbertabdefault"> <h2>{$lng.module_name_Recommended_Products}</h2> {include file="modules/Recommended_Products/recommends.tpl" }</div> {/if} {if $active_modules.Customer_Reviews ne ""} <div class="tabbertab"> <h2>{$lng.lbl_customer_reviews}</h2> {include file="modules/Customer_Reviews/vote_reviews.tpl" }</div> {/if}</div></div> </div>

4. Where was in the begin of this post (/skin1/customer/main/product.tpl):

instead this...

Code:
{else} {capture name=dialog} No detailed images. {/capture} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}


change for...

Code:
{else} {capture name=dialog} <strong>{$lng.txt_no_detailed_images}</strong> {/capture} {include file="dialog.tpl" title=$lng.lbl_detailed_images content=$smarty.capture.dialog extra="width=100%"}


5. Where was in the begin of this post (skin1/modules/Upselling_Products/related_products.tpl):

instead this...

Code:
{else} {capture name=dialog} No related products. {/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}


change for...

Code:
{else} {capture name=dialog} <strong>{$lng.txt_no_related_images}</strong>{/capture} {include file="dialog.tpl" title=$lng.lbl_related_products content=$smarty.capture.dialog extra="width=100%"}


=========================================

And done. Enjoy!
__________________
Pedro
digitalnotions.i2u.shop
shop.modestclassy.com.au4.1.9 X-Cart
X-Cart
Business 5.3.6.0
Multi-vendor 5.3.6.0


Reply With Quote