Forums / All Other Contributions/Addons / Tabbed Products ''LITE'' version - Delimiter based

Tabbed Products ''LITE'' version - Delimiter based

Locked

Views: 234,294

Results 421 to 440 of 1,190
This thread is locked. New replies are disabled.
11 Aug 2006, 9:59 AM
#421
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Tabbed Products ''LITE'' version - Delimiter based

qhome:

Have you tried getting Xsell to work before modifying any files first just to see if it works?
Yes xsell works fine on it's own with default Zen Cart template. And when your template is loaded (no changes besides setting CrossSell exists = true) xsell items appear beneath the tabs when xsell global is false.

But when I enable the xsell Global I get the "We also Recommend" tab however the container below the tab does not render and then of course then there is no xsell content displayed.

When using unmodified TPL 311 tpl_product_info_display.php or latest 3.11 patch (looks like you're calling it 3.2 final) I get the same effect.

It appears nobody else is having same issue with xsell here so I suspect my install is gummed up. I've reuploaded all files from TPL 3.11 download package and still observe the same.

Funny thing is when I was had Tabbed Lite 3.10 installed, xsell was displaying in tabs fine. It's when I upgraded to the 07/26/06 v.3.11 when the issue appeared.

Will try uploading the full 3.20 package.

11 Aug 2006, 10:20 AM
#422
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

Installed 3.2 and went a bit backwards...

With the settings below now I don't even observe the "We Also Recommend" tab.
$bCrossSell_Exists = true;
$bGblCrossSell_Tab = true;

With the settings below I do observe the xsell items below the tabs (which is expected).
$bCrossSell_Exists = true;
$bGblCrossSell_Tab = false;

With the settings below I do see the xsell items display anywhere (which is also expected).
$bCrossSell_Exists = false;
$bGblCrossSell_Tab = false;

Don't mean to be a pain ;-)

11 Aug 2006, 10:29 AM
#423
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

Too late to EDIT. My last entry below I meant to report...

With the settings below I do NOT see the xsell items display anywhere (which is also expected).
$bCrossSell_Exists = false;
$bGblCrossSell_Tab = false;

11 Aug 2006, 10:36 AM
#424
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

Hmm I will take a look at 3.10 and 3.11 and see what is different with them, I would also like to give you a debug version of the file so you could tell me what you see.

I'll take a look and see what is what.

11 Aug 2006, 12:33 PM
#425
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

Woodymon:

Too late to EDIT. My last entry below I meant to report...

With the settings below I do NOT see the xsell items display anywhere (which is also expected).
$bCrossSell_Exists = false;
$bGblCrossSell_Tab = false;

What other settings do you have set. I want to try to mimic your setup best I can to see the html source output to see if there are any differences.

11 Aug 2006, 1:43 PM
#426
linkedla avatar

linkedla

New Zenner

Join Date:
Mar 2005
Location:
Bogotá, Colombia
Posts:
32
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

Hello all,
I have my site and i am very happy about this amazing software, but now i have a small problemita in my site, i have ZC 1.3.0.2 and i have the Image Handler mod installed, so I think the Tabbed Prod. Module is awesome too. I did install it on the site, but then the IH2 small rollover image disapear causing a java script error everytime the mouse is over a product image.
I had to suspend it by now until some of you can help me in the incompatibility problem, i think is in the jscript_tablitev3.js file where the problem is, but i am a graphics person not a coder so i do not understand what to check, may some one of you can help.
Thanks in advance.
Regards
Jose

Visit https://www.colombianhandcrafts.org, we are in the fair trade move!

11 Aug 2006, 2:13 PM
#427
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

Re: Tabbed Products ''LITE'' version - Delimiter based

Woody...just a suggestion: try to re-install your xsell module (and the sql patch as well). Backup first just in case.

IDEASLady
IDEAS Creative Studio

Your image... our business!

11 Aug 2006, 2:51 PM
#428
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

linkedla:

Hello all,
I have my site and i am very happy about this amazing software, but now i have a small problemita in my site, i have ZC 1.3.0.2 and i have the Image Handler mod installed, so I think the Tabbed Prod. Module is awesome too. I did install it on the site, but then the IH2 small rollover image disapear causing a java script error everytime the mouse is over a product image.
I had to suspend it by now until some of you can help me in the incompatibility problem, i think is in the jscript_tablitev3.js file where the problem is, but i am a graphics person not a coder so i do not understand what to check, may some one of you can help.
Thanks in advance.
Regards
Jose

Hmm.. I enabled my ImageHandler mod to have rollover images on my small images too and I don't have any problems. There is a problem with ImageHandler in the Javascript that if you hover over an image that has the lower half cut off the page, then it will give an error because it can't pop up an image that far down. I think there may be some help for this in the IH contrib discussion.

The error in IE is something like:

Line: 125
Char: 7
Error :'pageY' is null or not an object
Code: 0

That happens with or without tabs.

Take a look at my site here: http://www.tvclassico.com/index.php?main_page=index

Note the hover works fine and then click on an image to see the tabs. Tabs also work fine. Also on that page you can hover over the "New Products" and it should also show hover image on that too with no error unless you dont scroll down far enough.

Is this the same as you are describing it?

11 Aug 2006, 7:24 PM
#429
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

ideasgirl:

Woody...just a suggestion: try to re-install your xsell module (and the sql patch as well). Backup first just in case.

Done some time ago, before even suggested ;-) And done again.

Regards to Tabbed Prod Lite settings in template file, besides those xsell test settings I've already reported, I'm using defualt settings. Also tried changing MainImageOn Tabs global to true aand attempted other various permutations.

What specific value in db is being tested to see if xsell is installed or not. Guess I'll need to parse thru the tmplate file to locate ;-)

xsell items show below tabs, so this will just have to do for me. Not really worth expending the extra energy troubleshooting this minor issue.

11 Aug 2006, 8:06 PM
#430
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

Woodymon:

xsell items show below tabs, so this will just have to do for me. Not really worth expending the extra energy troubleshooting this minor issue.

of course it is. The way it works is like this:

I take the sql query from the xsell_module.php file and set it to a variable. I take the record count of that variable to see if any products actually exist. If the value is greater than 0 then it will create the tab.

So thats a good thing, we know the query is working because it is showing the tab.

// Cross Sell as tab or not
    $xsell_query = $db->Execute("select distinct p.products_id, p.products_image, pd.products_name
                           from " . TABLE_PRODUCTS_XSELL . " xp, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd
                           where xp.products_id = '" . $_GET['products_id'] . "'
                            and xp.xsell_id = p.products_id
                            and p.products_id = pd.products_id
                            and pd.language_id = '" . $_SESSION['languages_id'] . "'
                            and p.products_status = 1
                           order by xp.sort_order asc limit " . MAX_DISPLAY_XSELL);
   
 $num_products_xsell = $xsell_query->RecordCount();
   
   if ($num_products_xsell <> 0) {
      echo '<li><a href="javascript:void(0)" onclick="expandcontent(\'sc'.$g.'\', this)"><span>'.$cross_sell_tab_name.'</span></a></li>' . "\n";
      $g++;
    }

That is the exact query that the actual xsell module uses. I just repeated it in my code. So now we know it is finding that something does exist in the database.

The next part of the code does the actual loading of that data.

// Cross Sell on tabs (content)
        if ($bCrossSell_Tab != false) {
          echo '<div id="sc'.$a.'" class="tabcontent" style="display:block;">' . "\n";
          require($template->get_template_dir('tpl_modules_xsell_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_xsell_products.php');
          echo '</div>' . "\n" . '<!--eof CrossSell_Tab-->';
          $a++;
        }

All this part does is require the xsell template, the same way the normal way without tabs would do. Only difference is that I'm doing it inside <div></div> tags to make it be inside the container.

So If you could give me a copy of your View Source from a browser it would be helpful so I could tell if that part of the code was executed or not. It might be as simple as that.

12 Aug 2006, 1:49 PM
#431
IDEASLady avatar

IDEASLady

Totally Zenned

Join Date:
Aug 2005
Location:
Trujillo Alto, Puerto Rico
Posts:
1,453
Plugin Contributions:
4

Re: Tabbed Products ''LITE'' version - Delimiter based

Woody,

Are you inserting the AaQ code into the template display? If so... take it out and upload to check if your issue dissapear (I had this happening to me when I inserted the code on a wrong place).

IDEASLady
IDEAS Creative Studio

Your image... our business!

12 Aug 2006, 8:46 PM
#432
ericpeng avatar

ericpeng

Zen Follower

Join Date:
Jan 2006
Posts:
115
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

$bGblProdDescTab = true;

Does this means if i don't have any tags in product descripiton(admin area), it still put the product description in a single tab??

If yes, it seems won't work.

Thnaks

12 Aug 2006, 9:49 PM
#433
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

ericpeng:

$bGblProdDescTab = true;

Does this means if i don't have any tags in product descripiton(admin area), it still put the product description in a single tab??

If yes, it seems won't work.

Thnaks

yes that is what it means. can u link me to a site?

12 Aug 2006, 10:05 PM
#434
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

OK.. i found a bug.. that might fix your problem. It might even help Woodymon. Its a one character change that I was testing with and only causes a problem when only the GblProdDescTab or you use only one custom tag with no other tabs.

FIND

if (($chkTabStart > 0 && $chkTabEnd > 0) || ($bAddToCart || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab)) {

REPLACE WITH:

if (($chkTabStart >= 0 && $chkTabEnd > 0) || ($bAddToCart || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab)) {

note the ">" becomes ">=" for chkTabStart

That should fix it.

12 Aug 2006, 10:51 PM
#435
sn0ut avatar

sn0ut

New Zenner

Join Date:
Oct 2005
Location:
UK - London
Posts:
56
Plugin Contributions:
3

Re: Tabbed Products ''LITE'' version - Delimiter based

this has to be one of the best product display hacks I have seen for Zen... well done and a big thanks from me :)

Installed it on 1.3.2 with no prblems what so ever :)

Great work

12 Aug 2006, 10:55 PM
#436
qhome avatar

qhome

Totally Zenned

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

Re: Tabbed Products ''LITE'' version - Delimiter based

sn0ut:

this has to be one of the best product display hacks I have seen for Zen... well done and a big thanks from me :)

Installed it on 1.3.2 with no prblems what so ever :)

Great work

Thanks :) Great to hear! Glad you like it.

13 Aug 2006, 1:04 AM
#437
ericpeng avatar

ericpeng

Zen Follower

Join Date:
Jan 2006
Posts:
115
Plugin Contributions:
0

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

yes that is what it means. can u link me to a site?

I tried on one more test site, it seems works.

I'll try some more.

Thanks

14 Aug 2006, 11:02 PM
#438
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

ideasgirl:

Are you inserting the AaQ code into the template display? If so... take it out and upload to check if your issue dissapear (I had this happening to me when I inserted the code on a wrong place).

As previously posted I am using only the code provided by Q. That means no edits, besides the few settings changes in the template file ;-)

I have been awaiting opportunity to repair xsell issue before injecting any custom code edits. I just now see that Q recommends an edit and will implement and report back. Thanks for the suggestions.

14 Aug 2006, 11:15 PM
#439
woodymon avatar

woodymon

Totally Zenned

Join Date:
Sep 2004
Posts:
2,309
Plugin Contributions:
1

Re: Tabbed Products ''LITE'' version - Delimiter based

qhome:

OK.. i found a bug.. that might fix your problem. It might even help Woodymon. Its a one character change that I was testing with and only causes a problem when only the GblProdDescTab or you use only one custom tag with no other tabs.

I'm a bit unclear to the above.

Although I have no tags within my product description I implemented the suggested change (change > to >=) but still the same issue with xsell (the "We Also Recommend" tab is rendering, but the container below the tab is not rendering).

Latest test using the following template file settings:

$bGblProdDescTab = true;
$bGblMainImageOnTabs = true;
$bGblAddToCart = true;
$bGblAdditionalImages = true;
$bGblCustomersAlsoPurchased = true;

$bCrossSell_Exists = true;
$bGblCrossSell_Tab = true;
$bShowHeaders = true;
$bShowHeadersNoJavascript = true;

$gbl_proddesc_tab_name = 'Product<br />Description';
$addtocart_tab_name = 'Add to<br />Cart';
$add_images_tab_name = 'Additional<br />Images';
$cust_also_purchased_tab_name = 'Customers<br />Also Purchased';
$cross_sell_tab_name = 'We Also<br />Recommend';