View Single Post
  #9  
Old 12-26-2010, 10:36 AM
 
Sunray Sales Sunray Sales is offline
 

Senior Member
  
Join Date: Dec 2010
Posts: 194
 

Default Re: How to add tabs to product page?

Oh ok great thanks, I actually figure it out.

I used this product_tabs.php.

I then created my own template file.

I know this is just a jerry-rigged way of doing it, but it does work.
Can you help me with the first line of code?
PHP Code:
if ($config['Appearance']['send_to_friend_enabled'] == 'N') { 

As you can see I just copied the send to friend code and replaced a few things, most importantly I change Enabled == 'N', because I will not enable this.

PHP Code:
if ($config['Appearance']['send_to_friend_enabled'] == 'N') {
$product_tabs[] = array(
'title' => func_get_langvar_by_name('lbl_details'),
'tpl' => 'customer/main/p-details.tpl'// 'modules/Customer_Reviews/vote_reviews.tpl'
'anchor' => 'details'
);
}
 
if (
$config['Appearance']['send_to_friend_enabled'] == 'Y') {
$product_tabs[] = array(
'title' => func_get_langvar_by_name('lbl_send_to_friend'),
'tpl' => 'customer/main/send_to_friend.tpl',
'anchor' => 'send2friend'
);


To see the final outcome, have a look at this one particular product.
http://www.sunraysales.com/xcart/product.php?productid=11382&cat=174&page=1

PS: I have over 11,000 products, so the extra product details have only been applied to the first 500 products.

Please let me know what you think?

Thanks.
__________________
4.4.2
www.sunraysales.com
HandsOnWebHosting
Reply With Quote