Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

display customer reviews out of tabs

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-23-2012, 06:36 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default display customer reviews out of tabs

Is there a way to pull customer reviews out of tabs on product page?

I have tabs enabled and do like having "Send to friend", etc. in tabs but would like to display reviews below tabs.

I looked in the module files but didn't see where it tells it to display in tabs,
product_details template only says "if tabs are enabled" than tabs_ui template uses "foreach" statement to display extra items (including reviews obviously).

Is this controlled somewhere in core files?
Anyone knows which files?

Thanks.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #2  
Old 03-24-2012, 08:35 PM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: display customer reviews out of tabs

in common_files/customer/main/product.tpl comment out
Code:
{*{if $product_tabs} {if $show_as_tabs} {include file="customer/main/ui_tabs.tpl" prefix="product-tabs-" mode="inline" tabs=$product_tabs} {else} {foreach from=$product_tabs item=tab key=ind} {include file=$tab.tpl} {/foreach} {/if} {/if}*}

And add this below this code....
Code:
{include file="customer/main/send_to_friend.tpl"} {include file="modules/Recommended_Products/recommends.tpl"} {include file="modules/Customer_Reviews/vote_reviews.tpl"}

Hope that works
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote

The following user thanks Toora Designs for this useful post:
Powertrain (03-24-2012)
  #3  
Old 03-24-2012, 10:25 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Re: display customer reviews out of tabs

Thanks but that takes all 3 modules out of tabs, I'd like to keep "Send to friend" and "Recommended products" in tabs but display only reviews separate/below tabs.

Is there a way to control individual modules to go in tabs or not?

Which file determines this?
Like I said I looked in the Reviews module files but did not see anything so it must be somewhere in core files I assume.

I guess I could hard code ui_tabs and just include modules I want to show but I'm not sure what other modules can be displayed in tabs if enabled so I'd like to keep original ui_tabs code but modify Reviews module itself (or wherever the code for it is) to not display in tabs, if possible.

Thanks.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #4  
Old 03-24-2012, 10:28 PM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,197
 

Default Re: display customer reviews out of tabs

Unfortunately QT hard coded the tabs. You need to modify include/product_tabs.php and comment out the code for recommended products

Code:
if (!empty($active_modules['Recommended_Products']) && !empty($recommends)) { $product_tabs[] = array( 'title' => func_get_langvar_by_name('txt_recommends_comment'), 'tpl' => 'modules/Recommended_Products/recommends.tpl', 'anchor' => 'recommends' ); }

then in product.tpl add

Code:
{include file="modules/Recommended_Products/recommends.tpl"}

below the tabs code
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Powertrain (03-25-2012)
  #5  
Old 03-25-2012, 08:30 AM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Re: display customer reviews out of tabs

Thank you Steve

I was wondering where that code is

So I guess it might be better to just hard code tabs content in tabs template (in the theme) to keep core files not edited/hacked as much as possible for future upgrading?
Does that makes sense or does it matter, I guess as long as I keep notes on which files were edited should be ok.

What do you suggest?
Hack tpl files if possible and if not than hack core php files?

Thanks.
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #6  
Old 03-25-2012, 11:53 AM
 
salsabeel salsabeel is offline
 

Senior Member
  
Join Date: Jan 2004
Posts: 132
 

Default Re: display customer reviews out of tabs

Powertrain,

WinMerge is a useful tool to compare template files and easily find the changes you've made. It was mentioned in another thread here.
__________________
X-Cart Platinum 4.6.5
Reply With Quote

The following user thanks salsabeel for this useful post:
Powertrain (03-25-2012)
  #7  
Old 03-25-2012, 01:23 PM
 
Powertrain Powertrain is offline
 

Senior Member
  
Join Date: Mar 2011
Posts: 101
 

Default Re: display customer reviews out of tabs

Well I think I have all info I needed, Thanks for your help
__________________
x-cart 4.4.2 Gold
Reply With Quote
  #8  
Old 03-25-2012, 01:27 PM
  Toora Designs's Avatar 
Toora Designs Toora Designs is offline
 

eXpert
  
Join Date: Aug 2011
Location: California USA
Posts: 281
 

Default Re: display customer reviews out of tabs

Sorry, I miss read but looks like you got it
__________________
If you need professional help on your x-cart site or any website.
Feel free to PM me or Skype me to discuss your project.
Reply With Quote

The following user thanks Toora Designs for this useful post:
Powertrain (03-25-2012)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:34 PM.

   

 
X-Cart forums © 2001-2020