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

Tabbed Products Pro (TPP) Contrib - Official Thread

Views: 397,367

Results 981 to 1,000 of 2,224
13 Nov 2009, 7:29 PM
#981
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

Tabbed Products Pro (TPP) Contrib - Official Thread

autoace:

Hmm, I guess maybe because its a file included in TPP. I would like to use this feature, but I think it may be causing some issues with the blog. :smile:

BTW, do you know the answer to my original question?No I don't.. I've never had any issues installing this mod nor have I ever had to edit that particular file.. I believe that the person to ask this question to is Numinix since it's his instructions for embedding a WordPress blog you are trying to implement.. It makes sense that he (Numinix) would be best positioned to tell you how his code might interfere with other add-ons. It's unlikely that the author of this mod would be able to answer questions regarding someone else's code unless they wrote their add-on to work with Numinix's code..

BTW, if you are using the 1.06a version, it is different than the previous versions of this mod, so that adds another level to the puzzle. In any case you probably really do want to start with Numinix to troubleshoot the WordPress embedding issues..

13 Nov 2009, 8:43 PM
#982
autoace avatar

autoace

Totally Zenned

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

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

DivaVocals:

No I don't.. I've never had any issues installing this mod nor have I ever had to edit that particular file.. I believe that the person to ask this question to is Numinix since it's his instructions for embedding a WordPress blog you are trying to implement.. It makes sense that he (Numinix) would be best positioned to tell you how his code might interfere with other add-ons. It's unlikely that the author of this mod would be able to answer questions regarding someone else's code unless they wrote their add-on to work with Numinix's code..

BTW, if you are using the 1.06a version, it is different than the previous versions of this mod, so that adds another level to the puzzle. In any case you probably really do want to start with Numinix to troubleshoot the WordPress embedding issues..

@DivaVocals

Thank you for your answer.

BTW, a simple yes or no would've sufficed.

13 Nov 2009, 8:49 PM
#983
autoace avatar

autoace

Totally Zenned

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

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

Does anyone know if this is the correct syntax:

define ('ABSPATH','/xxx/XXX/xxx_xxx/blog/');

Should it be this instead?

define ('ABSPATH' . '/xxx/XXX/xxx_xxx/blog/');

Or any other suggestions?

File: class.rlwp.php in includes>functions>extra_functions

Just trying to resolve an issue with my blog. Thanks for your help.

13 Nov 2009, 10:01 PM
#984
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

autoace:

@DivaVocals

Thank you for your answer.

BTW, a simple yes or no would've sufficed.Perhaps, but I felt the longer answer WAS an appropriate response..

Have you posed your question to Numinix?? Because this question seems to be less of a TPP issue and more of an issue with his WordPress embedding solution conflicting with this mod.. Hope you get a response here, but IMO, it seems a tad off topic for this support thread and it seems like the shorter path to your answer would be with Numinix.. I resolved my conflict between the WOZ mod and another add-on (not this one..) by going to the author of the mod which was in conflict..

13 Nov 2009, 10:52 PM
#985
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

and though you weren't a fan of my longer answer.. Here's another long answer..:smile: It helps others who might come along with the SAME question.. Yes or no may help you, but it won't help others who stumble on this thread with a similar issue.. Hope that's clearer..:smile:

You might want to consider rolling back to ver 1.05 of this mod.

Don't know if you've looked through this support thread, but based on other posts in this thread, starting with version 1.06 is where people began reporting issues with this mod.. If you read through the various download versions starting with version 1.06 you will see why...

Starting with version 1.06

addon for WordPress

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
The class.rlwp.php file you speak of was introduced in this version of TPP, and the original author has not posted here to support it that I am aware of..

IMO this particular version (and it's variants) should NOT be used by anyone who does NOT have a WordPress Blog as part of their site or used by anyone who is using either WOZ of Numinix's WordPress code on their site. (or you will get errors..)

Now if you do not need the WordPress tabs functionality, it may just simply be a matter of simply deleting or commenting out the contents of the class.rlwp.php file..The other possibility is that you do not have your ABSPATH setting entered correctly.. I haven't personally tested if there is a better fix (I use version 1.05 because it works just fine).. Hopefully anyone using one of these WordPress mods along with ver 1.06x of TPP can chime in with a fix. However, the introduction of the WordPress code in version 1.06 seems to be at the heart of your issue, and rolling back to ver 1.05 will DEFINITELY solve your problem..

Regarding versions 1.06b & 1.06c the mod author CLEARLY states the following:

1.06b uses the exact same code with 1.06, all credits obviously go to the original author(s). This updated version takes advantage of CJ Loader to boost your site loading speed
Updated version for compatibility with other modules. You do not need to use this version unless you plan to or using CSS Javascript Loader
I took this to mean that unless you are using the Zencart Css Javascript Loader that you should NOT use this version of TPP.. and since version 1.06b and 1.06c are both based on version 1.06 which introduced the WordPress code, unless you cand resolve the conflict, you should not use it with any embedded WordPress solutions.

If you don't want to roll back I would say check that your ABSPATH value in this file matches the ABSPATH value in your Zen Cart configure.php file with the addition of your blog folder at the end..

This is how it's done in the WOZ add-on:

 
<?php
//
// wordpress on zencart by http://www.s-page.net/
//
define ('ABSPATH','/var/www/vhost/example.com/public_html/blog/');

Like I said, I could answer yes or no, but I think it's better if others have a full and complete answer..:smile:

autoace:

Does anyone know if this is the correct syntax:

define ('ABSPATH','/xxx/XXX/xxx_xxx/blog/');

>  
> Should it be this instead?
> ```
define ('ABSPATH' . '/xxx/XXX/xxx_xxx/blog/');

Or any other suggestions?

File: class.rlwp.php in includes>functions>extra_functions

Just trying to resolve an issue with my blog. Thanks for your help.

13 Nov 2009, 11:12 PM
#986
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

So to expand on part of what I said above.. It sounds like your ABSPATH value is incorrect. I am going to assume it was you who asked this question on Numix's blog:

here is the erro i get.. any ideas?
PHP Warning: require_once(/var/www/zc138/wordpress/wp-includes/classes.php) [function.require-once]: failed to open stream: No such file or directory in /home2/mtphsoft/public_html/wordpress/wp-load.php on line 46

Numinix's response was:

M23perrault, this could happen because you have installed a module for Zen Cart whcih defines ABS_PATH. Try searching for this constant in the Developer’s Toolkit and then disable that module which has the incorrect path hard-coded into the module.

Numinix is absolutely right, the ABSPATH value is indeed hardcoded into the class.rlwp.php file, and it looks like you did not update it to match the correct ABSPATH value for your site. The contents of the class.rlwp.php file is as follows:

 
define ('ABSPATH','/var/www/zc138/wordpress/'); // abs-path to wp
if (file_exists(ABSPATH.'wp-config.php')) {
require_once(ABSPATH.'wp-config.php');
$wpinstall = true;
}

Please note the part highlighted in red and compare to the error message you have.. As I suggested in my previous post, you need to update the ABSPATH value in the class.rlwp.php file to match the ABSPATH value in your ZenCart includes/configure.php file with your blog folder added to the end of the value. Try changing this to the correct value for your site and see if you still have the issue..

If you do, then try simply removing the class.rlwp.php file. Please note that if you delete this file that you will no longer have the ability to create WordPress tabs using TPP, but you will likely no longer have any issues using Numinix's embedded WordPress solution either..

and like I said.. If all else fails, you can always roll back to ver 1.05..

autoace:

Does anyone know if this is the correct syntax:

define ('ABSPATH','/xxx/XXX/xxx_xxx/blog/');

>  
> Should it be this instead?
> ```
define ('ABSPATH' . '/xxx/XXX/xxx_xxx/blog/');

Or any other suggestions?

File: class.rlwp.php in includes>functions>extra_functions

Just trying to resolve an issue with my blog. Thanks for your help.

17 Nov 2009, 12:48 AM
#987
patternman avatar

patternman

New Zenner

Join Date:
Jul 2008
Posts:
63
Plugin Contributions:
0

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

Hello,
I have been using Tabbed Products Pro for over a year now. I have no problems.

But now I would like to attempt do something with a little more flexibility. Here's what I would like to do. We have a size chart for our products. The chart has not changed in over a year. But now I need to make some changes. I would like to have the flexibility to make changes quickly in the future. This chart does not apply to all products; it is only applicable for about two thirds of our products.

Right now I have the chart coded individually on every applicable product as a custom tab. In the future I would like to use a php include statement to display this chart. The chart would be in a separate html file that I could change quickly.

The directions for adding a global tab seem clear and easy enough to implement, but a global tab isn't quite what I'm looking for (because only some of the products use a size chart).

Then I thought about making an additional global tab that I could turn off - but include the tag in the product description. This kind of flexibility was described in the directions:

There are many combinations of tabs you can display. If you want ALL items to have the Customers Also Purchased on a tab, but only SOME items you would like the Additional images as a tab, you can set the Global Customers Also Purchased configuration to true in the config area, and add the tag for <!--#AdditionalImages#--> to the specific product descriptions.

Or is there a way to look for a specific custom tag that would always use the include statement?

Thanks for any help you can provide.

20 Nov 2009, 6:24 PM
#988
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

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

How do you add custom fields to an existing tab. I would like to add the upc code to the details tab. I've tried adding it in the tpl_product_info_display.php, but any changes that I make does not show up.

21 Nov 2009, 4:13 PM
#989
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

So did you resolve your issue?? I ask because it helps others who might be having the same issue to see how you resolved your issue..

autoace:

Does anyone know if this is the correct syntax:

define ('ABSPATH','/xxx/XXX/xxx_xxx/blog/');

>  
> Should it be this instead?
> ```
define ('ABSPATH' . '/xxx/XXX/xxx_xxx/blog/');

Or any other suggestions?

File: class.rlwp.php in includes>functions>extra_functions

Just trying to resolve an issue with my blog. Thanks for your help.

21 Nov 2009, 4:54 PM
#990
autoace avatar

autoace

Totally Zenned

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

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

DivaVocals:

So did you resolve your issue?? I ask because it helps others who might be having the same issue to see how you resolved your issue..

Actually no, not yet. I have to check and see if Numinix replied to my post on his blog. His response has been delayed for whatever reason so I have to check his reply to my post.

Hopefully the answer is there! Ill report back here.

21 Nov 2009, 10:47 PM
#991
patternman avatar

patternman

New Zenner

Join Date:
Jul 2008
Posts:
63
Plugin Contributions:
0

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

Well, I pulled up my sleeves and got to the dirty work myself.
So for anyone who's interested in putting in a tab that is repeated on many (but not all) products, here is the solution that I used.

First, I created the html content for the new tab and saved it as a file in the html includes folder. In my case, I was creating a size chart. So I saved it as:

includes/languages/english/html_includes/apple_zen/define_size_chart.php

I use the apple_zen template. Adapt your code where necessary.

Then I altered the tpp file:
includes/modules/tabbed_products_pro.php

In the Custom Tab - Tab Contents section, find this code:

if ($bMainImageOnTab == true && $f == 1) {
						$tabcontent .= $fmtMainIm; // pre-loaded Main Image
					}

Directly after that, insert this code:

if ( $sName[$f] == "Size Chart" ) {
						$tabcontent .= get_include_contents('includes/languages/english/html_includes/apple_zen/define_size_chart.php');
					}

The code that was used looks specifically for "Size Chart"
Adapt your code where necessary.

Then find this code:

function AddHeader ($sHeaderName, $iTabNum, $bHeadersEnabled)

Directly before that line, insert this code:

function get_include_contents($filename) {
    if (is_file($filename)) {
        ob_start();
        include $filename;
        $contents = ob_get_contents();
        ob_end_clean();
        return $contents;
    }
    return false;
}

Those are all the changes for tabbed_products_pro.php.

Of course, in each product description where I want to display the size chart, I need to use this line:

<!--%Size Chart%-->

Again, change yours to suit your needs.
I hope this helps some people.

Cheers. :smile:

22 Nov 2009, 6:47 AM
#992
divavocals avatar

divavocals

Totally Zenned

Join Date:
Jan 2007
Location:
Los Angeles, California, United States
Posts:
10,011
Plugin Contributions:
3

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

Dang.. Bookmarking this, and noting for future reference..:clap:I coulda used this for a recent client site.. Thanks for the share..

patternman:

Well, I pulled up my sleeves and got to the dirty work myself.
So for anyone who's interested in putting in a tab that is repeated on many (but not all) products, here is the solution that I used.

First, I created the html content for the new tab and saved it as a file in the html includes folder. In my case, I was creating a size chart. So I saved it as:

includes/languages/english/html_includes/apple_zen/define_size_chart.php

I use the apple_zen template. Adapt your code where necessary.

Then I altered the tpp file:
includes/modules/tabbed_products_pro.php

In the Custom Tab - Tab Contents section, find this code:

if ($bMainImageOnTab == true && $f == 1) {
$tabcontent .= $fmtMainIm; // pre-loaded Main Image
}

> Directly after that, insert this code:
> ```
if ( $sName[$f] == "Size Chart" ) {
                        $tabcontent .= get_include_contents('includes/languages/english/html_includes/apple_zen/define_size_chart.php');
                    }

The code that was used looks specifically for "Size Chart"
Adapt your code where necessary.

Then find this code:

function AddHeader ($sHeaderName, $iTabNum, $bHeadersEnabled)

> Directly before that line, insert this code:
> ```
function get_include_contents($filename) {
    if (is_file($filename)) {
        ob_start();
        include $filename;
        $contents = ob_get_contents();
        ob_end_clean();
        return $contents;
    }
    return false;
}

Those are all the changes for tabbed_products_pro.php.

Of course, in each product description where I want to display the size chart, I need to use this line:

<!--%Size Chart%-->
>  
> Again, change yours to suit your needs.
> I hope this helps some people.
>  
> Cheers. :smile:
22 Nov 2009, 6:28 PM
#993
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

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

smoke133:

How do you add custom fields to an existing tab. I would like to add the upc code to the details tab. I've tried adding it in the tpl_product_info_display.php, but any changes that I make does not show up.

I'm still looking for the answer for this. Can any one help with this?

24 Nov 2009, 9:42 PM
#994
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

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

Reading through this thread led me to pause before installing the latest incarnation, 1.06**c**.
Does the ZC collective still hold the opinion that 1.05 is still the most reliable version?

Thank you

24 Nov 2009, 11:20 PM
#995
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

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

jabbawest:

Reading through this thread led me to pause before installing the latest incarnation, 1.06**c**.
Does the ZC collective still hold the opinion that 1.05 is still the most reliable version?

Thank you

Nevermind. Installed the latest version and it works just fine, aside from me needing to do some CSS work.

IH2, JQueryLightbox, JQueryZoom installed. TPP plays well with all of them.

NICE! :bigups:

24 Nov 2009, 11:51 PM
#996
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

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

There are plenty of CSS alternatives for changing the look of the tabs, however, if you want a clean look then change the background every CSS in the TPP folder to transparent.
Then change the text color to match, or stand out from, your current CSS.

Example for alt_tpp_tabs6.css (line 49)
Change the entries in red.

.tabcontent {
-moz-background-clip:border;
-moz-background-inline-policy:continuous;
-moz-background-origin:padding;
background:white none repeat scroll 0 0;
border-bottom:1px solid;
clear:both;
color:black;
display:none;
float:left;
width:100%;
28 Nov 2009, 5:54 PM
#997
jabbawest avatar

jabbawest

Zen Follower

Join Date:
Oct 2009
Location:
Texas
Posts:
197
Plugin Contributions:
0

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

Could someone give me a little help adding a tab?
I have Wish List v0.4 and I'd like to add a tab that will take customers to /index.php?main_page=un_wishlist

Thank you

30 Nov 2009, 1:28 AM
#998
flipc avatar

flipc

New Zenner

Join Date:
May 2004
Posts:
9
Plugin Contributions:
0

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

So I have a clean install of 1.3.8
The only thing I have added is captcha_using_ttf__gd_2-9. That works fine. I then added
tabbed_products_pro_1-06c.
It is half working. I have the controls within admin and also see the default 3 tabs to the 6 test products I have on my site (products were created before mod)
When either I attempt to edit one of these 6 products or create a new one I get a blank page when I hit PREVIEW. No error cods nor any page code what so ever.

I searched here and via Google for variations of:
Tabbed Products Pro TPP blank page preview white screen not uploading
but didnt find anything.

Hope someone can help.

3 Dec 2009, 6:36 AM
#999
flipc avatar

flipc

New Zenner

Join Date:
May 2004
Posts:
9
Plugin Contributions:
0

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

I dropped the entire site.
Reloaded. Installed the .5 version and it works 100%.

Not sure what all the stuff in the .6 version is but
there is no load time issues or differences in my site with this mod.

10 Dec 2009, 6:36 PM
#1000
dukecomputerwiz avatar

dukecomputerwiz

New Zenner

Join Date:
Sep 2009
Posts:
6
Plugin Contributions:
0

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

I have installed tab pro andit worked great until I looked at my log in/registration/checkout pages. They are losing the css formatting when they get displayed. I have narrowed the issue to the html_header.php file. The file supplied with my template works normally but the file supplied with the tap pro distribution screwsa up the pages. I checked the code and there are lots of differences, especially in the way the css files are loaded.

I am using a purchased template that like I said works perfectly until that one file is replaced. Any ideas?