Loaded Commerce Community

Banner


Board index » CRE Loaded Support » CRE Loaded 6.3

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Mon Dec 27, 2010 10:06 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
I just decided to play a bit with our site since I have almost everything the way we like it. One last piece of the puzzle has been product tabs....

I turned on the product tabs under
Admin > Product Info Page > Display Product Information Page in Tab Format
and set it to True

When I go to my product info page it looks the same (without tabs).

There is the note in red saying: Note: Make sure your site template directory contains a templates/TEMPLATE_NAME/tabs directory and contents.

In my case since I am using cre63_ats template it would be:
/templates/cre63_ats/tabs/
In that directory there is 3 image files (png) and a css file.

Should there be more? like a xxx_tabs.tpl.php file?

If so in the /templates/content/ directory there is a "product_info_tabs.tpl.php" file. So I tried to move it into the /templates/cre63_ats/tabs/ folder but no change....

Could someone enlighten me on how to get tabs?

Thank you once again for putting up with my silly questions....

Mike


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 12:43 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Any guidance? Kick in the pants? Thoughts?


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 1:04 pm 
Offline
CRE Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 352
Mike,
The product_info_tabs.tpl.php file is either in the templates/content folder or templates/YOUR TEMPLATE/content folder.
In your case templates/content.
If you have it and wish to make modifications to it, copy the one from the templates/content folder and upload to templates/YOUR TEMPLATE/content folder first. this way you have a back up of the original.

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 5:25 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Thank you for the reply ... I have a follow-up. I see those files but what I do not see, is when I enable tabs from admin, I don't see tabs on my products page....

Under templates/content I do have the product_info_tabs.tpl.php file.
I copied it to /templates/cre63_ats/content/
Went into admin, enabled tabs, and went to my products and I still see my normal product_info.tpl.php file....

I could this have been a 6.3.3 bug? Am I missing something obvious?

I did a grep for product_info_tabs to see if I can find the place where the logic calls that file but no go with that search.

Did the normal clear cache stuff and still no go....

Still looking since I hate being stumped 100%, which I am right now....
Mike


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 5:41 pm 
Offline
CRE Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 352
The logic for displaying product info tabs r none is in the file product_info.php found in the root of your store.

Post this here, the contents of the product_info.php file I mean.

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 6:04 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Not much in there.... but here it is....
Code:
<?php
/*
  $Id: product_info.php,v 1.1.1.1 2004/03/04 23:38:02 ccwjr Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');

  require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

  $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
  $product_check = tep_db_fetch_array($product_check_query);

  $content = CONTENT_PRODUCT_INFO;
  $javascript = 'popup_window.js';

  require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/' . TEMPLATENAME_MAIN_PAGE);

  require(DIR_WS_INCLUDES . 'application_bottom.php');
?>


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 7:19 pm 
Offline
CRE Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 352
That will explain it then...

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


Last edited by TheLango on Wed Dec 29, 2010 8:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 7:55 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Interesting.... I placed that in there and I received a fatal error....

Fatal error: require() [function.require]: Failed opening required 'templates/content/CONTENT_PRODUCT_INFO_TABS.tpl.php' in
/home/store/public_html/store/templates/cre63_ats/main_page.tpl.php on line 141

So in main_page.tpl.php line 141 is:
Code:
     if (isset($content_template) && file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/'.  basename($content_template))) {
        require(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/' . $content . '.tpl.php');
      } else if (file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/' . $content . '.tpl.php')) {
        require(DIR_WS_TEMPLATES . TEMPLATE_NAME.'/content/'. $content . '.tpl.php');
      } else if (isset($content_template) && file_exists(DIR_WS_CONTENT . basename($content_template)) ){
        require(DIR_WS_CONTENT . basename($content_template));
      } else {
141       require(DIR_WS_CONTENT . $content . '.tpl.php');
      }


Why would it have CONTENT_PRODUCT_INFO_TABS.tpl.php versus product_info_tabs.tpl.php?

I am guessing it is because of this line now in product_info.php:
Code:
    code removed since it is not freely available code for the CE (free) version

But why doesn't is get converted for that file call?

This is also very interesting since I checked through all of my changes and I have never touched the product_info.php file.

I'm going to edit filenames.php and add in CONTENT_PRODUCT_INFO_TABS to see if that helps...
Mike


Last edited by cheapo on Wed Dec 29, 2010 9:08 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 8:09 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
That moved me along some but now I get the following....

Call to undefined function tep_subproducts_parent() in /home/store/public_html/store/templates/cre63_ats/content/product_info_tabs.tpl.php on line 119

Since line 119 is a call to a sub-products function
Code:
            if(tep_subproducts_parent($products_id_tmp)){

does this mean I am running down a rabbit hole where tabs were never meant for the free version (which doesn't have sub-products)?

Mike


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 8:12 pm 
Offline
CRE Talented

Joined: Sun Nov 29, 2009 10:57 am
Posts: 352
cheapo wrote:
does this mean I am running down a rabbit hole where tabs were never meant for the free version (which doesn't have sub-products)?

Mike


You mean your using the CE version!!! the product tabs were not available in the Ce (Free Version).. and YEP.. rabbit hole... a big one

_________________
CSS Store - http://mdjl40.mdjl-demo.co.uk -Work in Progress
YMM Filter Lists - http://mdjl-demo.co.uk/6-4-1a -Pagnation/Filter Lists


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 8:20 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
Sorry Paul... When I have that option to turn on in the admin section it lead me to believe it was available for the CE version....

As an aside I guess I should have made the title a bit less cluttered.

Thank you for the help running down that rabbit hole. :oops:

Mike


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Dec 29, 2010 8:46 pm 
Offline
CRE Talented

Joined: Thu Dec 25, 2008 5:09 pm
Posts: 489
Location: CO
I also feel I need to say sorry for wasting your time. It was not my intention.

Mike


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Wed Jun 01, 2011 9:44 pm 
Offline
CRE Newbie

Joined: Sat May 21, 2011 8:39 pm
Posts: 5
I have the exact same issue only I am using cre loaded 6.2 upgraded to CRE Loaded PCI Pro v6.4.1a .

At the Product Info page I have
Display Product Information Page in Tab Format set to true

I copied product_info_tabs.tpl.php to /templates/mytemplate/content/

mytemplate was for cre loaded 6.2. Perhaps this is the issue? Over time I have converted mytemplate to work with 6.4.1a and this would seem to be the only outstanding issue.

My browser error console complains that WebFXTabPane is not defined

:(

Any thoughts?


Top
 Profile  
 
 Post subject: Re: Native Product tabs in CE 6.3.3 cre63_ats template??
PostPosted: Thu Jun 02, 2011 1:56 pm 
Offline
CRE Newbie
User avatar

Joined: Sun Apr 25, 2010 10:27 am
Posts: 12
beecharmer
I hope this helps with your version

I'm running 6.4.1 B2B and I was receiving "MySQL error: 1064" but after copying product_info_tabs.tpl.php into /templates/"mytemplate"/content
I had to modify the line
$reviews_query = tep_db_query("select r.reviews_id, rd.reviews_text as reviews_text, r.reviews_rating, r.date_added, p.products_id, pd.products_name, p.products_image, r.customers_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$_GET['products_id'] . "' and p.products_id = r.products_id and r.reviews_id = rd.reviews_id and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "' and rd.languages_id = '" . (int)$languages_id . "' order by rand(), r.reviews_id DESC limit " . PRODUCT_INFO_TAB_NUM_REVIEWS);

the problem is that the value "PRODUCT_INFO_TAB_NUM_REVIEWS" which is set in
"admin / configuration / Product Info Page / Number of Reviews to Show in Product Info Reviews Tab" was blank so the query failed
there are two ways to fix this I did both
1. Go into Admin and set the value a value 0 thru --- ( Not sure what the practical limit is )
2. Add "(int)" just before "PRODUCT_INFO_TAB_NUM_REVIEWS" in the query line shown above so it will not fail even if it is blank
remember not to use the quotes it should look like this
(int)PRODUCT_INFO_TAB_NUM_REVIEWS

Good Luck
8O


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

Board index » CRE Loaded Support » CRE Loaded 6.3

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Wed May 23, 2012 6:46 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

Login

Forums Latest Activity

Top Listing

1. Cart2Cart - Shopping...
    Category: Shopping Cart Database Conversion Scripts
    
2. Points & Rewards PLUS!...
    Category: Add-Ons
    
3. Configuration Server...
    Category: Fixes
    
4. Credit Card with CCV
    Category: Payment Modules
    
5. CC7333_ATS
    Category: Templates
    
Show more...

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy