Forums / All Other Contributions/Addons / Tabbed Products Pro (TPP) Contrib - Official Thread

Tabbed Products Pro (TPP) Contrib - Official Thread

Started by qhome on 21 Jan 2008, 7:19 AM · Views: 398,463

Results 801 to 820 of 2,224
10 Aug 2009, 1:31 PM
#801
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Tabbed Products Pro (TPP) Contrib - Official Thread

lindasdd:

Thanks for your response. It has helped, however I am still a bit confused... my dilema is:

It was my tabbed_products_pro.php file causing the issue. So I simply re-uploaded my backup and now the product display page comes up fine!!!

However, I do have the Description, Details and Reviews Enabled in my Admin Config for TPP, but I do not have the tabs displaying on my page.

Am I still missing something? Do I need to add some custom tags for those. I did install the 3 snippets of code in my tpl_product_info_display.php page.

Any ideas? Thanks again for your help.

Thank you,
autoace

10 Aug 2009, 1:43 PM
#802
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

lindasdd:

Hi, I believe I have figured out what I am doing wrong (I hope). After reading the Installation and How to Use tabs again in the readme file, I believe I have to install the tag code in the products description field, correct?

If that is true, is there a way to do that globally, instead of having to go thru each individual product and installing the tag code one by one?

Is there a way to place that tag code in the correct php file so that it populates in the product description box automatically?

Thanks again for your help.

Thank you,
autoace

10 Aug 2009, 2:08 PM
#803
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

lindasdd:

Good news, I believe I have it working! Only 1 minor detail: the tabs show up as a bulleted list. I am assuming that is the default css stylesheet at work, correct?

I know that there are other formats to choose from, any suggestions? thanks.

Thank you,
autoace

11 Aug 2009, 5:16 AM
#804
lindasdd avatar

lindasdd

Zen Follower

Join Date:
Jun 2007
Posts:
474
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Not sure on the bullets, but it sounds like CSS.

In regards to global tabs, I currently add them to product pages as needed since all mine require different info.

Considering there are a couple global tabs that appear as needed(reviews, images,etc.) there should be some way to add other global tabs by digging into the file. Unfortunately I am not the author so I wouldn't be able to assist there.

lindasdd

12 Aug 2009, 5:02 PM
#805
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Thanks lindasdd:

After getting it to work, I understood the instructions in the readme a bit more regarding the tags.

Regarding the bullets, I believe you are correct, I checked the css file that I'm using (the default one) and it seems that #slidetabsmenu has the ul and li css code to form a bulleted list.

Do you know what css code I could use to just form the tabs.

I am a bit confused as to why it would default to bullets instead of tabs?

Thanks for your help.

Thank you,
autoace

12 Aug 2009, 7:12 PM
#806
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

lindasdd:

All fixed! I got tabs! Just had to upload all the css files, didn't think I had to do that.

Have a great day and thanks for your replies.

Thank you,
autoace

17 Aug 2009, 8:16 PM
#807
pdxdoug avatar

pdxdoug

Zen Follower

Join Date:
Jan 2008
Location:
Portland, Oregon USA
Posts:
356
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

AddOn syntax: <!–%TabName%–><!–###functionToCall###–>
example: <!--%WordPress%--><!--###getWPTag###-->

this syntax creates a tab called WordPress, calls a function with the name getWPTag with the parameter products_id. in WordPress you must use a tag with the products-id.
you can find the example code in includes/functions/extra_functions/class.rlwp.php
at line 13 you find
*define (’ABSPATH’,'/var/www/html/wordpress/’); *
replace the path with your realPath to wordpress

I'm struggling to make this work. When I edit class.rlwp.php to what I think is the path to WordPress, ZenCart refuses to load.

Obviously I'm not doing something right.
ZenCart is in the root, WordPress is in the subdirectory /blog

There seems to be a function to call pdf files also. Anyone have either of these working? Any insight would be appreciated!

Thanks,

Doug

17 Aug 2009, 9:01 PM
#808
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

In my 1.3.7 other website version I used the older version of tablight, and all works great: can I use this tablite version in my new website used the latest version 1.3.8b version?
Because when I upload the html_header.php into common folder, my template (classic) assume a strange layout.

18 Aug 2009, 2:53 AM
#809
scouting82 avatar

scouting82

New Zenner

Join Date:
Feb 2009
Posts:
14
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

Hi There,

I'm just wondering if someone can help me out I installed the tabs and everything seems to be working fine at my end but for some reason on all the product pages only where the tabs are located it now says "Error on page" in the status bar

http://www.elitehorsewear.com/store/index.php?main_page=product_info&cPath=1&products_id=1

Thanks in advance

Rob

18 Aug 2009, 6:35 AM
#810
100asa avatar

100asa

Totally Zenned

Join Date:
Oct 2006
Location:
Italy
Posts:
636
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

scouting82:

Hi There,

I'm just wondering if someone can help me out I installed the tabs and everything seems to be working fine at my end but for some reason on all the product pages only where the tabs are located it now says "Error on page" in the status bar

http://www.elitehorsewear.com/store/index.php?main_page=product_info&cPath=1&products_id=1

Thanks in advance

Rob

I've the same issue!!!

20 Aug 2009, 3:59 AM
#811
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

scouting82:

Hi There,

I'm just wondering if someone can help me out I installed the tabs and everything seems to be working fine at my end but for some reason on all the product pages only where the tabs are located it now says "Error on page" in the status bar

http://www.elitehorsewear.com/store/index.php?main_page=product_info&cPath=1&products_id=1

Thanks in advance

Rob

If you look at the error it says there is a problem with "browser" not defined.
Looking at your page source, i see:

var Slimbox;(function(){var E=window,n=Browser.Engine.trident4,t,g,F=-1,v,D,u,x,L,r,m={},s=new Image(),J=new Image(),H,a,h,p,I,e,G,c,z,K,w,i,d,B;E.addEvent("domready",function(){$(document.body).adopt($$(H=new Element("div",{id:"lbOverlay"}),a=new Element("div",{id:"lbCenter"}),G=new Element("div",{id:"lbBottomContainer"})).setStyle("display","none"));h=new Element("div",{id:"lbImage"}).injectInside(a).adopt(p=new Element("div"),I=new Element("a",{id:"lbPrevLink",href:"#",title:"ZEN_LIGHTBOX_ALT_PREVIOUS",styles:{"background":"transparent

Looks like its something with Slimbox, not TPP

20 Aug 2009, 3:45 PM
#812
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

hello, after i have tabbed products installed, my ajax image swapper doesn't work anymore, is it possible to run both ais and tpp?

20 Aug 2009, 7:23 PM
#813
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

bear1728:

hello, after i have tabbed products installed, my ajax image swapper doesn't work anymore, is it possible to run both ais and tpp?

ps: tpp version 1.06b
zencart 1.38a

i use ajax images swapper, today i installed tabbed products pro 1.06b, then my main product image and additional images (which used by ajax images swapper js) disappear.

i like tpp and dont want to remove it, but what do i get back my ajax images?
thanks

20 Aug 2009, 7:41 PM
#814
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

bear1728:

ps: tpp version 1.06b
zencart 1.38a

i use ajax images swapper, today i installed tabbed products pro 1.06b, then my main product image and additional images (which used by ajax images swapper js) disappear.

i like tpp and dont want to remove it, but what do i get back my ajax images?
thanks

there's an error on the site
on this line <body id="productinfoBody" onload="loadImages();">
says : loadImages is not defined

21 Aug 2009, 12:58 PM
#815
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

if i remove the file
/includes/templates/mytemp/common/html_header.php
then my ajax images swapper works fine,

i did another test, i remove the ajax images swapper module, but tabbed products pro doesn't work with image handler eighter,
then i remove
/includes/templates/mytemp/common/html_header.php
then the image handler works fine.

but to make tabbed products pro work, i have to reupload the file /includes/templates/mytemp/common/html_header.php !!

then what do i make tabbed products work with other modules such as image handler or ajax images swapper?

any ideas?

24 Aug 2009, 1:20 AM
#816
muzz avatar

muzz

Totally Zenned

Join Date:
Mar 2009
Location:
Australia
Posts:
604
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

I'd like to know the answer to your question too!

I have found from other mods that AJAX image swapper died when using another javascript.

I don't know enough about programming to be much help with a resolution.

If you find a way to get it working please let us know.. I will do same.

That wasn't the plan!

24 Aug 2009, 12:23 PM
#817
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

hello, i get 2 errors cause the file html_header.php
error1: update_zone is not defined on create account page
error2: session_win is not defined on shopping cart page and product info page

if i put back the origin html_header.php , those 2 errors fixed but i have no tabbed products.

what do i fix the problem? here is the html_header.php from tpp:

<?php?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> 
<head> 
<title><?php echo META_TAG_TITLE; ?></title> 
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> 
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> 
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> 
<meta http-equiv="imagetoolbar" content="no" /> 
<meta name="author" content="The Zen Cart™ Team and others" /> 
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" /> 
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?> 
<meta name="robots" content="noindex, nofollow" /> 
<?php } ?> 
<?php if (defined('FAVICON')) { ?> 
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" /> 
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" /> 
<?php } //endif FAVICON ?> 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" /> 

<?php 
    $jscript_files_to_load = $css_files_to_load = array(); 
/** 
 * load all template-specific stylesheets, named like "style*.css", alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css'); 
  while(list ($key, $value) = each($directory_array)) { 
    $css_files_to_load[$value] = -300; 
  } 
/** 
 * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza. 
 */ 
  $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : ''; 
  $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : ''; 
  $tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base; 
  $sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',  
                        '/' . $tmp_pagename,  
                        '/' . $_SESSION['language'] . '_' . $tmp_pagename,  
                        '/c_' . $cPath, 
                        '/' . $_SESSION['language'] . '_c_' . $cPath, 
                        '/m_' . $manufacturers_id, 
                        '/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,  
                        '/p_' . $tmp_products_id, 
                        '/' . $_SESSION['language'] . '_p_' . $tmp_products_id 
                        ); 
  while(list ($key, $value) = each($sheets_array)) { 
    //echo "<!--looking for: $value-->\n"; 
    $perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css'; 
    if (file_exists($perpagefile)) $css_files_to_load[trim($value, '/').'.css'] = -200; 
  } 

/** 
 * load printer-friendly stylesheets -- named like "print*.css", alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css'); 
  sort($directory_array); 
  while(list ($key, $value) = each($directory_array)) { 
    echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n"; 
  } 
   
  if (file_exists(DIR_WS_CLASSES . 'browser.php')) { 
    include_once(DIR_WS_CLASSES . 'browser.php'); 
    $browser = new browser(); 
    $browser_name = strtolower($browser->Name); 
    if (($browser_name == 'msie') && $browser->Version <= 6) { 
      $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie6-/', '.css'); 
      $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^ie6-/', '.js'); 
    } if (($browser_name == 'msie') && $browser->Version >= 7) { 
      $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ie7-/', '.css'); 
      $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^ie7-/', '.js'); 
    } elseif ($browser_name == 'firefox') { 
      $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^ff-/', '.css'); 
      $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^ff-/', '.js'); 
    } elseif ($browser_name == 'safari') { 
      $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^safari-/', '.css'); 
      $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^safari-/', '.js'); 
    } elseif ($browser_name == 'chrome') { 
      $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^chrome-/', '.css'); 
      $js_directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'js'), '/^chrome-/', '.js'); 
    } 
    while(list ($key, $value) = each($directory_array )) { 
      $css_files_to_load[$value] = -100;                                     
    } 
    while(list ($key, $value) = each($js_directory_array )) { 
        $js_files_to_load[$value] = -500;                 
    }     
  } 

/** 
 * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js'); 
  while(list ($key, $value) = each($directory_array)) { 
    $jscript_files_to_load[$value] = -400; 
  }                             

/** 
 * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically 
 */ 
  $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js'); 
  while(list ($key, $value) = each($directory_array)) { 
    $jscript_files_to_load[$value] = -300; 
  } 

/** 
 * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php'); 
  while(list ($key, $value) = each($directory_array)) { 
/** 
 * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically. 
 * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page 
 */ 
    $jscript_files_to_load[$value] = -200; 
  } 
/** 
 * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. 
 */ 
  $directory_array = $template->get_template_part($page_directory, '/^jscript_/'); 
  while(list ($key, $value) = each($directory_array)) { 
/** 
 * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. 
 * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page 
 */ 
    $jscript_files_to_load[$value] = -100; 
  } 

  $files = loadCssJsFiles($css_files_to_load, $jscript_files_to_load); 
  foreach($files['css'] as $file) 
      if($file['include']) include($file['string']); 
      else echo $file['string']; 
       
  foreach($files['js'] as $file) 
      if($file['include']) include($file['string']); 
      else echo $file['string']; 
   
//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->'; 
?> 
</head> 
<?php // NOTE: Blank line following is intended: ?> 

here is the origin html_header.php

<?php 
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>> 
<head> 
<title><?php echo META_TAG_TITLE; ?></title> 
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" /> 
<meta name="keywords" content="<?php echo META_TAG_KEYWORDS; ?>" /> 
<meta name="description" content="<?php echo META_TAG_DESCRIPTION; ?>" /> 
<meta http-equiv="imagetoolbar" content="no" /> 
<meta name="author" content="The Zen Cart™ Team and others" /> 
<meta name="generator" content="shopping cart program by Zen Cart™, http://www.zen-cart.com eCommerce" /> 
<?php if (defined('ROBOTS_PAGES_TO_SKIP') && in_array($current_page_base,explode(",",constant('ROBOTS_PAGES_TO_SKIP'))) || $current_page_base=='down_for_maintenance' || $robotsNoIndex === true) { ?> 
<meta name="robots" content="noindex, nofollow" /> 
<?php } ?> 
<?php if (defined('FAVICON')) { ?> 
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" /> 
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" /> 
<?php } //endif FAVICON ?> 

<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER . DIR_WS_HTTPS_CATALOG : HTTP_SERVER . DIR_WS_CATALOG ); ?>" /> 

<?php 

/** 
 * load all template-specific stylesheets, named like "style*.css", alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^style/', '.css'); 
  while(list ($key, $value) = each($directory_array)) { 
    echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n"; 
  } 
/** 
 * load stylesheets on a per-page/per-language/per-product/per-manufacturer/per-category basis. Concept by Juxi Zoza. 
 */ 
  $manufacturers_id = (isset($_GET['manufacturers_id'])) ? $_GET['manufacturers_id'] : ''; 
  $tmp_products_id = (isset($_GET['products_id'])) ? (int)$_GET['products_id'] : ''; 
  $tmp_pagename = ($this_is_home_page) ? 'index_home' : $current_page_base; 
  $sheets_array = array('/' . $_SESSION['language'] . '_stylesheet',  
                        '/' . $tmp_pagename,  
                        '/' . $_SESSION['language'] . '_' . $tmp_pagename,  
                        '/c_' . $cPath, 
                        '/' . $_SESSION['language'] . '_c_' . $cPath, 
                        '/m_' . $manufacturers_id, 
                        '/' . $_SESSION['language'] . '_m_' . (int)$manufacturers_id,  
                        '/p_' . $tmp_products_id, 
                        '/' . $_SESSION['language'] . '_p_' . $tmp_products_id 
                        ); 
  while(list ($key, $value) = each($sheets_array)) { 
    //echo "<!--looking for: $value-->\n"; 
    $perpagefile = $template->get_template_dir('.css', DIR_WS_TEMPLATE, $current_page_base, 'css') . $value . '.css'; 
    if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n"; 
  } 

/** 
 * load printer-friendly stylesheets -- named like "print*.css", alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css'), '/^print/', '.css'); 
  sort($directory_array); 
  while(list ($key, $value) = each($directory_array)) { 
    echo '<link rel="stylesheet" type="text/css" media="print" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n"; 
  } 

/** 
 * load all site-wide jscript_*.js files from includes/templates/YOURTEMPLATE/jscript, alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.js'); 
  while(list ($key, $value) = each($directory_array)) { 
    echo '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n"; 
  } 

/** 
 * load all page-specific jscript_*.js files from includes/modules/pages/PAGENAME, alphabetically 
 */ 
  $directory_array = $template->get_template_part($page_directory, '/^jscript_/', '.js'); 
  while(list ($key, $value) = each($directory_array)) { 
    echo '<script type="text/javascript" src="' . $page_directory . '/' . $value . '"></script>' . "\n"; 
  } 

/** 
 * load all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically 
 */ 
  $directory_array = $template->get_template_part($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript'), '/^jscript_/', '.php'); 
  while(list ($key, $value) = each($directory_array)) { 
/** 
 * include content from all site-wide jscript_*.php files from includes/templates/YOURTEMPLATE/jscript, alphabetically. 
 * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page 
 */ 
    require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n"; 
  } 
/** 
 * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. 
 */ 
  $directory_array = $template->get_template_part($page_directory, '/^jscript_/'); 
  while(list ($key, $value) = each($directory_array)) { 
/** 
 * include content from all page-specific jscript_*.php files from includes/modules/pages/PAGENAME, alphabetically. 
 * These .PHP files can be manipulated by PHP when they're called, and are copied in-full to the browser page 
 */ 
    require($page_directory . '/' . $value); echo "\n"; 
  } 

//DEBUG: echo '<!-- I SEE cat: ' . $current_category_id . ' || vs cpath: ' . $cPath . ' || page: ' . $current_page . ' || template: ' . $current_template . ' || main = ' . ($this_is_home_page ? 'YES' : 'NO') . ' -->'; 
?> 
</head> 
<?php // NOTE: Blank line following is intended: ?> 

thanks

24 Aug 2009, 12:31 PM
#818
qhome avatar

qhome

Totally Zenned

Join Date:
Feb 2004
Posts:
1,702
Plugin Contributions:
5

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

TPP doesn't use anything with html_header nor have any code to affect images. I have never had a problem using IH2 with TPP and I likely wouldn't have a problem with the ajax swapper. But I don't know. I'd need a link to your sites to see what firebug says about it

But my js is very small and specific and only affects the product page. If IH2 stopped working on other pages then something else is wrong.

24 Aug 2009, 2:00 PM
#819
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

hello, those 2 errors are not concerned with ajax images or images
cause this time, this site has no ajax images modules installed, and all images show correctly

the problem is :
after i have tpp installed,

on create_account page, that state/province doesn't show dropdown anymore, i get the error "update_zone is not defined"
on shopping_cart page, if i click the "help" button or "shipping estimate" button, no page pop up anymore, i get the error "session_win is not defined "

then i did a test, i replaced the html_header.php from tpp with the origin html_header.php, those 2 errors mentioned above disappeared suddenly.
when i put back this html_header.php from tpp, those 2 errors come back.

that's why i guess the problem is in the file html_header.php, but i don't know what do i fix the problem.

ps: i use zencart 1.38a and tpp 1.06b

24 Aug 2009, 2:43 PM
#820
bear1728 avatar

bear1728

New Zenner

Join Date:
Jul 2009
Posts:
86
Plugin Contributions:
0

Re: Tabbed Products Pro (TPP) Contrib - Official Thread

hi, just now i did another test, i still use the html_header.php from tpp, but i did some changes,then it seems everything goes well,
but i'm not sure if there's anything wrong i haven't found or any hidden trouble? or is there a better way? :unsure:

i changed these codes:

$css_files_to_load[$value] = -300;

if (file_exists($perpagefile)) $css_files_to_load[trim($value, '/').'.css'] = -200;

$jscript_files_to_load[$value] = -400;

$jscript_files_to_load[$value] = -300;

$jscript_files_to_load[$value] = -200;

$jscript_files_to_load[$value] = -100;

to the following codes:

echo '<link rel="stylesheet" type="text/css" href="' . $template->get_template_dir('.css',DIR_WS_TEMPLATE, $current_page_base,'css') . '/' . $value . '" />'."\n";

if (file_exists($perpagefile)) echo '<link rel="stylesheet" type="text/css" href="' . $perpagefile .'" />'."\n";

echo '<script type="text/javascript" src="' .  $template->get_template_dir('.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value . '"></script>'."\n";

echo '<script type="text/javascript" src="' . $page_directory . '/' . $value . '"></script>' . "\n";

require($template->get_template_dir('.php',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/' . $value); echo "\n";

require($page_directory . '/' . $value); echo "\n";