-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by bhuntsman
As for the Add to Cart box appearing both above and below tabs...I did that intentionally.
I can see the advantages of that. Just an idea, if product descriptions are to appear on a tab you might want to put the bottom Add to Cart box on the tab under the lengthy descriptions.
Quote:
Originally Posted by bhuntsman
The title cap for x-sell tab shows the title text wrapping to second line...again, this was intentional
Sorry I wasn't clear... was not referring to the titles ON the actual tabs, I was referring to the title bar headings within the tab containers. e.g. the "We Also Recommend" container title bar (which is included in the Future Zen template). Looks like you already adjusted by changing the define to "Related Products" or by shortening the text and adding an ellipsis to end of define. So all is well with that now.
Look forward to hearing the solutions you implemented to solve your previously reported issues.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
It is my experience you have to insert a minimum of one tag in your product description for the "globals" to work (or for instance, to make the x-sell items display in the "We Also Recommend" tab and not below the tabs as you are experincing.
The mod works great but some logic issues remain with default globals and requiring one soft tag (as I reported recently).
I do not understand the reasoning (logic) behind this requirement but suspecting there is some good reason that qhome configured the mod to behave this way ;-)
Woody
Quote:
Originally Posted by ideasgirl
In my experience this is only need for the image setting. They all will appear automatically if you have any thing to show.
What ideasgirl says should be the way it works.. at least thats how it was designed and appears to work on my demo examples.
I'm back from my vacation now and I've only read this one page so maybe there is more I missed. I will try to read more of what I missed tomorrow.. im tired after a long day of travelling and going to bed for now :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Here's my situation:
Running Zen Cart 1.3.0.2 with latest version of Tabbed Lite and X-sell installed.
Below are Tabbed Lite Settings in tpl_product_info_display.php
Quote:
$bGblMainImageOnTabs = true;
$bGblAddToCart = true;
$bGblAdditionalImages = true;
$bGblCustomersAlsoPurchased = true;
$bCrossSell_Exists = true;
$bGblCrossSell_Tab = true;
$bShowHeaders = true;
$bShowHeadersNoJavascript = true;
$addtocart_tab_name = 'Add to Cart';
$add_images_tab_name = 'Additional Images';
$cust_also_purchased_tab_name = 'Customers Also Purchased';
$cross_sell_tab_name = 'We Also Recommend';
For the results below I have only generic text in Products Description. No tags.
RESULT: The Main Image renders above the tabs. (this would be expected based on your note "adds Main image to tabs only if you have at least one custom tab", but I don't understand the logic of why with global on, the image does not appear on tab instead of above the tab).
RESULT: Cross sell tab containing "We Also Recommend" text within tab is displayed but no "container" for the tab is rendered (just a horzonatal line where the top of the container should be). And then of course no cross sell items render on the product info page.
However if I change $bGblCrossSell_Tab = false;
then the Xsell items appear below tabs on the product info page as expected (by default).
Later I will post some observations of unexpected strangeness when the tag <!--%Product Description%--> is inserted at beginning of "products Description" and I then change some of the above settings in tpl_product_info_display.php
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
For the results below I have only generic text in Products Description. No tags.
RESULT: The Main Image renders above the tabs. (this would be expected based on your note "adds Main image to tabs only if you have at least one custom tab", but I don't understand the logic of why with global on, the image does not appear on tab instead of above the tab).
This is because I haven't yet added the "$GblProdDescAsTab" feature yet. Remember I was working on it and had it almost working but there was some tough logic to work out and there were other issues I wanted to work out first. It is at the bottom of the readme in the ToDo list. When that is implemented, then it will also have that option to have the image on the tab instead of above the tab so I can see if I can see any problems.
Quote:
Originally Posted by Woodymon
RESULT: Cross sell tab containing "We Also Recommend" text within tab is displayed but no "container" for the tab is rendered (just a horzonatal line where the top of the container should be). And then of course no cross sell items render on the product info page.
However if I change $bGblCrossSell_Tab = false;
then the Xsell items appear below tabs on the product info page as expected (by default).
This was something I remember seeing as well and was fixed in 3.1 final. I haven't tested tabbed lite with 1.3.0.2 yet tho, I will be upgrading this week. Still.. I dont think a simple sql query should cause this problem. You are sure you have the latest version of Tabbed Lite? And you uploaded the jscript, and tpl files? Do any of your image files begin with numbers?... and finally.. could you send your modified tpl file to the email in the readme file. Or at least do a 'view source' on your browser on that page and copy/paste it for me and send to my email.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by bhuntsman
Finally, after 3 long days of frustration, hair pulling, etc., my site's product page layout not only looks the way I want it to, but all the tabs also work. Here's an example page
http://www.learningbydvd.com/newstor...roducts_id=918. I would appreciate any comments, feedback or criticism.
And to everyone who contributed their thoughts and suggestions, I give you my thanks. Take care everyone. Long live ZenCart!!!
can you share what fixed the tabs for you? this seems to be a similar problem that woody is seeing with having the cross sell tab showing the tab but no products underneath.
Also after reading back a few pages it looks like I've confused a few things with not adding the Global Products Description.. i will work on that this week.. I think most of the current code is decently stable, just a few anomalies that seem to be working themselves out. So I will build the GblProdDesc on this latest version.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by IntelCos
Few issues I've noticed...
One was that if you created a product but do not use tabs yet globals set on a java error is generated. Once you inset at least one tab, then the java error is gone.
Be sure to upload the latest jscript file in 3.11 too. That should fix it.
Quote:
Originally Posted by IntelCos
Second, trying to set the borders to use images and cannot seem to get this to work.
example border-top-image:url(../images/bordertop.gif); which is standard css entry and fails to show the image. Yet if I set the border to a pixel def only a border works. I tried to set the border as well to "wave" to see and that fails as well. Dots or solid lines work...So not sure whats up there either or what I'm doing wrong???
border-top-image and especially wavy and dots IIRC is slated for CSS3 ... CSS2.x is the current standard and CSS3 hasn't been released yet. see more here: http://www.w3.org/TR/2002/WD-css3-border-20021107/ (correct me if I'm wrong tho, I just remember having this problem a few month back when I tried it for another site of mine)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
haven't tested tabbed lite with 1.3.0.2 yet tho
I'm running 1.3.0.2 and is working perfectly.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
This is because I haven't yet added the "$GblProdDescAsTab" feature yet. Remember I was working on it and had it almost working but there was some tough logic to work out and there were other issues I wanted to work out first. It is at the bottom of the readme in the ToDo list. When that is implemented, then it will also have that option to have the image on the tab instead of above the tab so I can see if I can see any problems.
Apologies Q. I missed that info. Thanks for the reminder.
Quote:
Originally Posted by qhome
This was something I remember seeing as well and was fixed in 3.1 final.
What's strange is the xsell items were displaying on the tabs fine before the last Tabbed Lite upgrade (I've been testing on ZC 1302 all along.
Quote:
Originally Posted by qhome
I haven't tested tabbed lite with 1.3.0.2 yet tho, I will be upgrading this week. Still.. I dont think a simple sql query should cause this problem. You are sure you have the latest version of Tabbed Lite? And you uploaded the jscript, and tpl files?
Yes. And I reuploaded all files and did compares just in case.
Quote:
Originally Posted by qhome
Do any of your image files begin with numbers?...
Yes. Both test product image filenames begin with a numeric. Was not aware of this as an issue.
Quote:
Originally Posted by qhome
could you send your modified tpl file to the email in the readme file. Or at least do a 'view source' on your browser on that page and copy/paste it for me and send to my email.
I'll change my product image filenames first, and see if that helps.
Can you point me to a document/resource that explains not to use numerics at the beginning of image filenames? I read the docs diligently before requesting support and posting my issues. That particular guideline slipped by me somehow. Does it apply to Zen Cart in general or just when using the Tabbed Lite mod (I've been using numbers at beginning of product images filenames for some time now without issues).
P.S. I have ImageHandler2 installed if that makes any diff.
Thanks for the follow-up!
Woody
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
Yes. Both test product image filenames begin with a numeric. Was not aware of this as an issue.
I'll change my product image filenames first, and see if that helps.
Can you point me to a document/resource that explains not to use numerics at the beginning of image filenames? I read the docs diligently before requesting support and posting my issues. That particular guideline slipped by me somehow. Does it apply to Zen Cart in general or just when using the Tabbed Lite mod (I've been using numbers at beginning of product images filenames for some time now without issues).
P.S. I have ImageHandler2 installed if that makes any diff.
Thanks for the follow-up!
Woody
Well I didnt know about this either until when i was trying to set up my demo site and started naming files like this:
1.jpg
1_1.jpg
2.jpg
2_1.jpg
.
.
.
11.jpg
in this case, it would show 2.jpg and 2_1.jpg for product 2 properly,
but 1.jpg, 1_1.jpg, 11.jpg and 2_1.jpg for product 1. Or something hokey like that. I was doin some indepth variable echoing to see what zc saw and its basically just confusing the zc additional images code up when the file name is only a number. I think it should be fine as long as there is at least one letter or word in the name after the number. But if you had the files working with numbers in your filename in the previous version then it's probably not a problem.
Have you tried getting Xsell to work before modifying any files first just to see if it works? Ill rescan the code again. I am trying to remember back to when I was seeing this problem. I can't remember what the solution was but it took me nearly half a day to figure it out... so I'll see if I can remember.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Try using words for image names and words in the model number just to see if that does anything for you. I seem to recall that being related however I can't remember if that was it or not.
I'm just trying the process of elimination but so far it seems to work for me both ways.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Good News!!
I must have slept well last night.. Fighting with this Global Product Description Tab had initially been a logic nightmare the last time I tried it, and then again most of last night. Finally this morning my brain opened up! Instead of trying to fake the tab, and having to add more logic checks and chase variables all over the place and make a whole new coding abortion, I simply made a few line change and it works perfectly!
Instead of me forcing the data to be a hardcoded tab, I simply prefix a variable I set the product description to with the global product description tags on the fly and let the existing code work as normal. If only my genius moments weren't so brief and occured more often :P
Anyways, There was very little to change after I started over from scratch so I will drop the beta version here for you guys to test and since it was so simple I even included a simple 4-step guide to let you make the changes easily to your current modified version of 3.11 so you don't have to make heavy modifications to a whole new file.
Also, the code is smart enough to check if you already have a custom Product Description tab, it will not auto-create another one, it will just load that one as normal. Remember my code is genius :P
Give it a whirl!
-
1 Attachment(s)
Re: Tabbed Products ''LITE'' version - Delimiter based
Ok one guinea pig stepping right up :)
I followed your steps in your readme and got the following... see subtle screenshot :wink2:
I left the relevant part in English for the screenshot for you Q as I guess your Japanese isnt great.
I was wondering if its poss to put a line feed in under the title in the cross sell tab so its the same as the also purchased module, ive been staring at that part of the code and its the same as the other tabs... I dont get it :blink:
edited to say, I removed the <br> in the tab name and its now fine....
Answers on a postcard....
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Reesy
Ok one guinea pig stepping right up :)
I followed your steps in your readme and got the following... see subtle screenshot :wink2:
I left the relevant part in English for the screenshot for you Q as I guess your Japanese isnt great.
heh yea its a tough call for me to decide how I should leave the defaults. Even tho most people I've seen tend to use the non-wrapped style, I tend to like all my tabs on one line and IMO it looks neater that way if you have a lot of tabs so I tend to default to including the word wrap. But Im glad it is easy enough to figure out. I had toyed with the idea of making it a language file for all of them.. but then thats more files to maintain and more for you guys to edit if needed. So Im still on the fence about that.
Quote:
Originally Posted by Reesy
I was wondering if its poss to put a line feed in under the title in the cross sell tab so its the same as the also purchased module, ive been staring at that part of the code and its the same as the other tabs... I dont get it :blink:
Ah yes, I was wondering if anyone else was going to notice this. This is actually a Cross Sell issue, unrelated to the tabs. You can open up templates_default/templates/tpl_modules_also_purchased_products.php and compare it to templates_default/templates/tpl_modules_xsell_products.php
The Xsell module adds the header name to the template file, the customers also purchased module adds it from modules/also_purchased_products.php. Perhaps because the require is outside of the template load in the also purchased products, but inside the template loading of the xsell module.. You might be able to add <br /> tags after the </h2> tag in the xsell module to get it to look the same. or move the Cross sell header name to the modules file to be more like the rest.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
@Reesy, just to try it, I moved the title tag to the xsell module file to make it look more like the also purchased module, but had no luck, it just removed the title all together. So instead I added the <br /> under the </h2> tag in the xsell template file and it worked fine there. Its a hack, but it looks fine when rendered.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi Q!
Kewl, that hack works fine. Thanks for helping out there.
In the screenshot above you will notice that when the tab name was on 2 lines it didnt render correctly and there was a small gap under the tab. ie the tabs were not all sitting on the same line.
I made a language file for mine, as its only 1 tiny extra file.
:smile:
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Also, the code is smart enough to check if you already have a custom Product Description tab, it will not auto-create another one, it will just load that one as normal. Remember my code is genius
Sure it is. :smartass: Works perfectly.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Reesy
Hi Q!
Kewl, that hack works fine. Thanks for helping out there.
Good to hear :)
Quote:
Originally Posted by ideasgirl
Sure it is. :smartass: Works perfectly.
:)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Well no bug reports so far :) Looks like its good for release. I'll add it to the Downloads area.
So here's some ideas that have been going through my head. The use of AJAX to pull tab data on the fly, instead of loading it all at page load.
The idea would be to have things like Additional Images, Customers Also Purchased, and Cross Sell tab data. Also.. for new tabs planned like the Reviews, Ask a Question, and Tell a friend forms right inside the tabs instead of a link to the form also might be good candidates for AJAX style instead of loading it all at once.
Any thoughts?
I know I also said I'd look into porting it across to the other product types like music and freeshipping. I was waiting for all the ideas and bugs to be worked out of this version first before doing that. So it's still in the plans.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
I know I also said I'd look into porting it across to the other product types like music and freeshipping.
I did the freeshipping type, if you want to add it to your files, let me know.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
I just noticed css right column weirdness in IE 6. I use Firefox and hadn't noticed this until a customer told me:
http://www.bowak.co.uk/jangro/jangro...or-p-2113.html
Fine in firefox, broken in IE.
Any ideas? Thanks!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by kelvyn
Hmm.. not sure. I dont see that on any of my sites using tabs. Have you made any modifications to the code or css? Also I would recommend removing the <br /> tags in the "We Also Recommend" in the template file so its all on one line to match your other custom tabs.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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.
-
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 ;-)
-
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 [bold]NOT[/bold] see the xsell items display anywhere (which is also expected).
$bCrossSell_Exists = false;
$bGblCrossSell_Tab = false;
-
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.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
Too late to EDIT. My last entry below I meant to report...
With the settings below I do [bold]NOT[/bold] 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.
-
Image handler 2 problem
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
-
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.
-
Re: Image handler 2 problem
Quote:
Originally Posted by 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:
Code:
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?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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.
PHP Code:
// 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.
PHP Code:
// 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.
-
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).
-
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
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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?
-
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
PHP Code:
if (($chkTabStart > 0 && $chkTabEnd > 0) || ($bAddToCart || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab)) {
REPLACE WITH:
PHP Code:
if (($chkTabStart >= 0 && $chkTabEnd > 0) || ($bAddToCart || $bAdditionalImages || $bCustomersAlsoPurchased || $bCrossSell_Tab)) {
note the ">" becomes ">=" for chkTabStart
That should fix it.
-
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
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 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';
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
<snip>
It would still be more beneficial for me to help if you would post a VIEW SOURCE capture from your browser.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Is it possible to move price, attributes and add to cart button, to one tab?
This is what i want
Above tab i have product name, picture and description. First tab has custom extra description, second one has extra photos(custom) and last one, would have prices and add to cart.
Thank you and a big pad on the back for this addon.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi
Sorry if this has been asked before, i was getting dizzy reading every post in the thread.
I put the lines of code:
<!--#CustomersAlsoPurchased#-->
and
<!--#AdditionalImages#-->
Into my product description as it said to do. But no tabs are showing up. I guess this is supposed to add the modules of these under the tab right? Sorry, I am real new, trying to figure all this out. I have a tab before and after these in product description set up and they show fine, they are normal tabs. Does anyone know why these 2 tabs aren't showing?
Here is the product page:
http://www.3dfrog.com/store/index.ph...roducts_id=180
I don't know how to code, I am just using the most basic settings for this. I think it is a really cool add on and would like to use it if possible. If I can get those two tabs to work I will be satisfied.
Thanks
Dennis
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Is it possible to move price, attributes and add to cart button, to one tab?
If you have the last version (3.11) by setting the $bGblAddToCart = true; should put your attributes, qty. discount box, and add to cart to your descriptiong tab.
Quote:
If I can get those two tabs to work I will be satisfied.
Hey 3dfrog, if you have v3.11 you don't have to insert any of those codes anymore into your item description. Just set the globals on your tpl file:
Code:
$bGblMainImageOnTabs = false;
$bGblAddToCart = true;
$bGblAdditionalImages = true;
$bGblCustomersAlsoPurchased = true;
-
Re: Tabbed Products ''LITE'' version - Delimiter based
i have tabbed products 3.2afinal tabbed products and the latest zencart edition installed. Should I revert my tabbed products?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by teva
Is it possible to move price, attributes and add to cart button, to one tab?
This is what i want
Above tab i have product name, picture and description. First tab has custom extra description, second one has extra photos(custom) and last one, would have prices and add to cart.
Thank you and a big pad on the back for this addon.
That is almost possible, but not entirely for some logical reasons (in my own mind anyway).
When creating this, I wanted to make a somewhat intelligent assumption that you would always want the main product description and add to cart/pricing information visible at all times, no matter what the tab setup was.
So I force a few things:
1. If using custom tabs with AddToCart not set as a tab, the custom tabs would always come first in the tab order, followed by the extras like additional images and customers also purchased. The Add to cart button would stay in it's default zencart place down at the bottom.
2. If using custom tabs and the AddToCart is set to be on tabs, then I force the add to cart to be on the very first custom tab so that both the description and add to cart are still always visible.
3. If NOT using custom tabs but AddToCart is set to be on tabs, then I force the Add to Cart to create its own tab. And I force that to be the first tab. So once again you still see the Product description up top, and the add to cart button on the default (first) tab.
So based on those settings, there is no way to have Product Description up top, and have another "extra" custom tab after the Add to Cart tab.
The best you could do would be to have the Name, Image, and Product description up top above the tabs, and have the extra tab content as well as the add to cart stuff on the first tab. You could also move the price onto this tab above the add to cart button if you wanted.
If you need help with that, let me know. I hope I explained it well enough.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by 3dfrog
i have tabbed products 3.2afinal tabbed products and the latest zencart edition installed. Should I revert my tabbed products?
No you can do it with 3.2a as well. But the tags in the description should also work. I had a look at your site, and Im looking into it.
Question, does that product actually have additional images and customer also purchased products already? like before you used the tab file? Because if there are no images then it will not show them even if you set it to use tabs.
Also I recommend editing the template file and removing the <br /> from the $gbl_proddesc_tab_name so all tabs are on the same line and not word wrapped
-
Re: Tabbed Products ''LITE'' version - Delimiter based
thanks
It looks like all the globals are set to trues in the code
//############ GLOBALS ##############
$bGblProdDescTab = true; // Forces the Product Description to globally be in a tab
$bGblMainImageOnTabs = false; // adds Main image to tabs only if you have at least one custom tab
$bGblAddToCart = true; // adds Add to Cart, Attribute Options, and Qty Discount to a tab
$bGblAdditionalImages = true; // adds Additional Images on its own tab
$bGblCustomersAlsoPurchased = true; // adds Customers Also Purchased as its own tab
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Oops sorry again
I dont have another product test in there yet, i'll put one and test the customers also purchased tab.
Dumb question. Where is the additional images panel in admin. I cant find it anywhere. That was my next question. I thought the panel would just show blank.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Ok, the customers also purchased tab is showing now. sorry about that. There is no space between also and purchased on the tab though. I have to figure out additional images but i guess this isnt the right thread for that. Thanks so much for helping out a new guy! I am figuring it all out but it is fun.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
This is simply an awesome contribution, qhome! Thanks so much! :thumbsup:
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
It would still be more beneficial for me to help if you would post a VIEW SOURCE capture from your browser.
Hey Q. Just checking in. Were you able to gain any ideas from the page source or from the IH2 links I PM'd your way?
Are you thinking there may be a conflict between IH2 and TPL3 ?
Did you figure out why your site is not serving images from IH2's bmz_cache?
Thanks,
Woody
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
Hey Q. Just checking in. Were you able to gain any ideas from the page source or from the IH2 links I PM'd your way?
Are you thinking there may be a conflict between IH2 and TPL3 ?
Did you figure out why your site is not serving images from IH2's bmz_cache?
Thanks,
Woody
I have no ideas for any of it yet. I havent looked into the IH2 bmz thing yet. Did you try that fix I mentioned in the past posts? You could also get the latest version from the downloads area. It may or may not help. Does 3.11 still work when you try that one?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
I have no ideas for any of it yet. I havent looked into the IH2 bmz thing yet. Did you try that fix I mentioned in the past posts? You could also get the latest version from the downloads area. It may or may not help. Does 3.11 still work when you try that one?
As previously stated I am running the latest version and applied the code fix(es) you have suggested in this thread.
I just thought that you were wanting to persevere on troubleshooting this issue so I was reporting back all the info you were requesting. And as I stated this is a minor issue for me. Don't sweat it. I will just display xsell items below the tabs. ;-)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
As previously stated I am running the latest version and applied the code fix(es) you have suggested in this thread.
I just thought that you were wanting to persevere on troubleshooting this issue so I was reporting back all the info you were requesting. And as I stated this is a minor issue for me. Don't sweat it. I will just display xsell items below the tabs. ;-)
I just dont like not knowing the problem ... :P It seems you are the last person with an issue (i think) and you're the only one I haven't been able to fix.... i need it man! I NEED IT!. :) Try 3.11 one more time and see if that works... If it does... then i will retrace the code from 3.11 to 3.2a and see where the problem is. feature by feature.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
I just dont like not knowing the problem ... :P It seems you are the last person with an issue (i think) and you're the only one I haven't been able to fix.... i need it man! I NEED IT!. :) Try 3.11 one more time and see if that works... If it does... then i will retrace the code from 3.11 to 3.2a and see where the problem is. feature by feature.
Looking thru my notes my issue with xsell displaying correctly via the tabs system actually initated with the change from 2.7c to 3.1beta (appx July 17). (I had thought I had it working on the 3.1beta but I don;t think I ever did).
I've attempted all versions from 3.1beta to 3.2.
I missed the stealth announce of 3.2a. Was that announced anywhere?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
Looking thru my notes my issue with xsell displaying correctly via the tabs system actually initated with the change from 2.7c to 3.1beta (appx July 17). (I had thought I had it working on the 3.1beta but I don;t think I ever did).
I've attempted all versions from 3.1beta to 3.2.
I missed the stealth announce of 3.2a. Was that announced anywhere?
3.2a was just that small fix where i changed > to >=
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
I missed the stealth announce of 3.2a.
Installed 3.2a and the same issue (xsell dispays tab but does not display container beneath tab).
-
1 Attachment(s)
Re: Tabbed Products ''LITE'' version - Delimiter based
Is 3.2a latest ?
* TABBED PRODUCTS LITE MODIFICATIONS - QHOME - 7/26/2006 3.2a
* TABBED PRODUCTS LITE MODIFICATIONS - QHOME - 8/9/2006 3.2
I've got a problem with 3.2 final. I have 2 tabs, one is the Product Description(global on). The othre one is <--!%Warranty%-->. When I click on Warranty, it won't always show in the right way. sometimes it'll show the warranty tab under Product Description.
I don't know if i did something wrong, or 3.2a(if latest) will fix the problem.
Thanks
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
Is 3.2a latest ?
* TABBED PRODUCTS LITE MODIFICATIONS - QHOME - 7/26/2006 3.2a
* TABBED PRODUCTS LITE MODIFICATIONS - QHOME - 8/9/2006 3.2
I've got a problem with 3.2 final. I have 2 tabs, one is the Product Description(global on). The othre one is <--!%Warranty%-->. When I click on Warranty, it won't always show in the right way. sometimes it'll show the warranty tab under Product Description.
I don't know if i did something wrong, or 3.2a(if latest) will fix the problem.
Thanks
tried 3.2a still same problem.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
As an update, the "Customers Also Purchased" tabs are working fine. Just not the "We Also Recommend" tabs. Still open to ideas.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
The othre one is <--!%Warranty%-->.
Maybe because your code is incorrect? It's supposed to be <!--%Warranty%-->
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ideasgirl
Maybe because your code is incorrect? It's supposed to be <!--%Warranty%-->
Oh, acutrally it's a typo. I did use <!--%Warranty%-->.
And it's not always like that, just sometimes. After I refresh, it'll become normal agian.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
Oh, acutrally it's a typo. I did use <!--%Warranty%-->.
And it's not always like that, just sometimes. After I refresh, it'll become normal agian.
qhome, I'll appreciate if you can take a look at my problem.
Thank you
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
qhome, I'll appreciate if you can take a look at my problem.
Thank you
I need a link if you can (PM it to me if you don't want it public) so I can see what happens.
I've tried to reproduce this, but it is working fine for me.
http://www.unbannable.com/zen/index....&products_id=8
In this example I am using the Global prod description with a custom Warranty tag. I've attached an image of the admin area to this post so you can see how it is set up.
You can refresh the page all you want, but it stays as 2 tabs.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
OK.. there appears to be some phantom bug introduced at some point when I was helping to make a custom template for someone, I ended up using that template... which was older than the version I thought I was working on.
This may be the cause for Woodymon's problem and a few other potential problems.. I will be fixing them today. I may go back to 3.10 to start fresh back when Woody's problem didnt exist and retrace to see what went wrong.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
OK.. I fixed a few quirks in this release.. still unsure if it will fix Woodymon's problem.. but we'll keep our fingers crossed. I compared this version against the 3.10 version for some of the fixes.
Give it a shot and let me know.
Eric, I am still working on your problem seeing the warranty tab under the other one. I remember having this problem waaay in the beginning and I think it is due to 2 tabs having the "style: display;" set at the same time. Ill let you know what i find. In the mean time, try this version as well to see if you have any other problems like that before you modify it.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
OK.. I fixed a few quirks in this release.. still unsure if it will fix Woodymon's problem.. but we'll keep our fingers crossed. I compared this version against the 3.10 version for some of the fixes.
Give it a shot and let me know.
Eric, I am still working on your problem seeing the warranty tab under the other one. I remember having this problem waaay in the beginning and I think it is due to 2 tabs having the "style: display;" set at the same time. Ill let you know what i find. In the mean time, try this version as well to see if you have any other problems like that before you modify it.
Thank you, i'll try the new one and let you know.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
The new version will also come with 4 new styles
Blue/Orange style - currently shown on my demo site
Blue/White style - has a darker background
Blue/White 2 style - doesn't have that dark background
NL style - Simpler greyish/white tabs
I've been picking thru latest code and everything seems to be a lot cleaner functionally so I think this last version is a good file to get.. Im still waitin to hear back from Eric and Woody.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
OK.. I fixed a few quirks in this release.. still unsure if it will fix Woodymon's problem.. but we'll keep our fingers crossed. I compared this version against the 3.10 version for some of the fixes.
Give it a shot and let me know.
BINGO Q! Uploading your 3.3RC1 template fixed it. That is, xsell items now display up in the tab container.
Was the fix something to do with IH2?
Good work! Thanks.
BTW with the new version I just noticed whichever tab I click on, a flashing edit cusor appears in front of text in the tab. Don't think this was occurring previously.
Woody
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
BINGO Q! Uploading your 3.3RC1 template fixed it. That is, xsell items now display up in the tab container.
Was the fix something to do with IH2?
Good work! Thanks.
BTW with the new version I just noticed whichever tab I click on, a flashing edit cusor appears in front of text in the tab. Don't think this was occurring previously.
Woody
Nope I only fixed a bit of logic.. The auto-check for Additional Images, Customers Also Purchased, and Cross Sell does a check on whether or not products exist for that module. If so, then it makes the tab. Then it creates the tab container content for that tab... but I wasn't doing the same check on the container. So It would create the tab container even if the tab wasn't created. So even though you had cross sell, you may not have had customers also purchased, but it was still creating that empty container, which overlapped the real cross sell container.
As far as the edit cursor.. i can't seem to reproduce that. But that would be something in the CSS file. You can define which cursor you see on hover and click.
In IE i see it turn to an arrow icon when i click and a hand icon when i hover. In Opera & FF i see a hand at all times when im on the tabs. But I'm also using one of the newer css styles so get the full version from the Downloads section if you want to see the newer styles.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Nope I only fixed a bit of logic.... it was still creating that empty container, which overlapped the real cross sell container.
Thanks for the info.
Quote:
Originally Posted by qhome
As far as the edit cursor.. i can't seem to reproduce that. But that would be something in the CSS file. You can define which cursor you see on hover and click.
I'll try the new CSS.
Just to clarify, after I click on any of the tabs, and then move the mouse away from the selected tab, I observe, within the tab, a flashing cursor similar to a text edit box cursor (not referrring to the mouse cursor). When a product page has only a single tab the cursor appears to not flash. This new phenomena appears in Firefox but not IE6.
However peculiar to IE, when I hover hover over the currently displayed tab, the color of the text in the tab changes to black. When I move the mouse away from the tab it returns to red color (as it should be when selected).
-
Re: Tabbed Products ''LITE'' version - Delimiter based
I'm trying to move the tabs and info in the tabs to the right of the product image.
Does anyone know how to accomplish this?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
The new version will also come with 4 new styles
Blue/Orange style - currently shown on my demo site
Blue/White style - has a darker background
Blue/White 2 style - doesn't have that dark background
NL style - Simpler greyish/white tabs
I've been picking thru latest code and everything seems to be a lot cleaner functionally so I think this last version is a good file to get.. Im still waitin to hear back from Eric and Woody.
Hi qhome,
I tried new v3.3 final, but it still has the same problem.
This time I uploaded the tpl_product_info_display.php only.
I didn't do any modification.
Thanks
ERIC
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
Hi qhome,
I tried new v3.3 final, but it still has the same problem.
This time I uploaded the tpl_product_info_display.php only.
I didn't do any modification.
Thanks
ERIC
AHH i see your problem now.
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev2.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_xpstyle.css" />
<script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev2.js"></script>
<script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script>
1. You need to delete the version2 stylesheet and javascript.
2. You should only have one of the v3 stylesheets in the css folder at a time. In the latest version I've been putting them inside a subfolder called "more stylesheets" so if you want the XP style, remove the silver one, and vice versa.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Also very good news.. with the latest bug fix.. All versions I've tested with tabs are 100% w3c compliant. Before it was having a problem with the picture up top instead of inside the tabs :)
WOOO my demo site was hacked... less than a few hours ago even!!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Also very good news.. with the latest bug fix.. All versions I've tested with tabs are 100% w3c compliant. Before it was having a problem with the picture up top instead of inside the tabs :)
Good to hear Q.
Quote:
Originally Posted by qhome
WOOO my demo site was hacked... less than a few hours ago even!!
Hope this does not prove a major issue for you Q.
Did you install the ZC security patches announced a week ago or so?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Woodymon
Good to hear Q.
Hope this does not prove a major issue for you Q.
Did you install the ZC security patches announced a week ago or so?
Well it wasn't a ZC hack. I've seen this one before on an IPB forum, a VB Forum, and a Nuke CMS... not owned by me tho. They basically somehow upload their own index.html and index.php to the public_html directory which is just a file that has their logo... nothing damaging. Just replaced the index.php file from default zen-cart zip and we're back in business. :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Really need some help guys. I need to move the tabs up to the right of the Product Image. I'm afraid to mess with the new product page code, because I'm not good enough at PHP to understand how the Tabs works with it.
Can someone please provide any suggestions?
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by atsdotha
Really need some help guys. I need to move the tabs up to the right of the Product Image. I'm afraid to mess with the new product page code, because I'm not good enough at PHP to understand how the Tabs works with it.
Can someone please provide any suggestions?
I will try to make something like what you are describing. But If the product image is too big it will make the page stretch out if u have a lot of tabs.
Something like this:
http://www.unbannable.com/zen/index....&products_id=4
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Qhome,
I installed your wonderfull ''Tabbed Products'' . My site is now more more customer oriented, better said: Sell oriented! Tab Names are coming from tpl_product_info_display.php directly.
//########### TAB NAMES #############
$addtocart_tab_name = 'Add to Cart'; // if using this tab, set the tab title for the Add To Cart Tab
$add_images_tab_name = 'Additional Images'; // if using this tab, set the tab title for the Additional Images Tab
$cust_also_purchased_tab_name = 'Customers Also Purchased'; // if using this tab, set the tab title for the Cust Also Purchased Tab
$cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab
//########################################
Question is:
My Site is running in TWO Languages. Tab Name 'We also Recommend '' appears in both languages in English. Where can I translate this tab name for the second language. Is there any possibility. Can you help me pls. Thanks in advance.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
thats exactly what I'm looking for...now, how did you do it? :)
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Problems with the current download? I get an error when I try to decompress the current version ZIP.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Remzi
Qhome,
I installed your wonderfull ''Tabbed Products'' . My site is now more more customer oriented, better said: Sell oriented! Tab Names are coming from tpl_product_info_display.php directly.
//########### TAB NAMES #############
$addtocart_tab_name = 'Add to Cart'; // if using this tab, set the tab title for the Add To Cart Tab
$add_images_tab_name = 'Additional Images'; // if using this tab, set the tab title for the Additional Images Tab
$cust_also_purchased_tab_name = 'Customers Also Purchased'; // if using this tab, set the tab title for the Cust Also Purchased Tab
$cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab
//########################################
Question is:
My Site is running in TWO Languages. Tab Name 'We also Recommend '' appears in both languages in English. Where can I translate this tab name for the second language. Is there any possibility. Can you help me pls. Thanks in advance.
Well you added it in $cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab
but you never took out the hard text. That should just be
$cross_sell_tab_name = TEXT_CROSS_SELL_TAB_NAME;
Is that what you mean? I guess I never thought about it with multiple languages. I should really make a language file for it.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Davin
Problems with the current download? I get an error when I try to decompress the current version ZIP.
I just tested the one in the downloads section found here: http://www.zen-cart.com/index.php?ma...roducts_id=146
Seems to work fine. Try re-downloading it.
=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==
Quote:
Originally Posted by atsdotha
thats exactly what I'm looking for...now, how did you do it? :)
It was pretty simple, just added some <table> tags to make the main image and details appear in the left <td> and the tabs on the right <td>. Then I moved the Product Name up top so it was in the middle over the whole thing.
I've attached the custom version for you.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hello, is there some way to integrate Ask a question into a tab, either as a link to that mod, or ideally as the form itself?
Currently the two mods seem to work together well, with the ask a question text displaying just to the right of the product image, under price and weight info.
Also, other forms, like product review or tell a friend, could function well inside their own Tabs.
BTW, both Tablite and Ask A question modify the same file: tpl_product_info_display.php.
[A note to newbies, like myself!]
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
I just tested the one in the downloads section found here:
http://www.zen-cart.com/index.php?ma...roducts_id=146
Seems to work fine. Try re-downloading it.
=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==
It was pretty simple, just added some <table> tags to make the main image and details appear in the left <td> and the tabs on the right <td>. Then I moved the Product Name up top so it was in the middle over the whole thing.
I've attached the custom version for you.
Qhome! Excellent work on this mod. I am resurrecting my old question which do you plan to support product type (at least music product type). I like this mod but I have so many products that are music type (about 5,000 titles) and I was going to put the track listing on a separate tab.
For example if you look at this page: http://www.clevershoppers.com/index....roducts_id=467 I'd like to put the description on the description tab and then the track listing on a separate tab.
Any ideas?
Thanks!
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
Well you added it in $cross_sell_tab_name = 'We Also Recommend'<?php echo TEXT_CROSS_SELL_TAB_NAME; *>// if using this tab, set the tab title for the CrossSell Tab
but you never took out the hard text. That should just be
$cross_sell_tab_name = TEXT_CROSS_SELL_TAB_NAME;
Is that what you mean? I guess I never thought about it with multiple languages. I should really make a language file for it.
-----------------------------------------------------------------------------
Exactly . This wiill be great if you can help me. If I change $cross_sell_tab_name = 'We Also Recommend' with ---- $cross_sell_tab_name = TEXT_CROSS_SELL_TAB_NAME--- where can put the translation for the hard text TAB NAMES ? Thanks. Remzi
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
AHH i see your problem now.
Code:
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev2.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_xpstyle.css" />
<script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev2.js"></script>
<script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script>
1. You need to delete the version2 stylesheet and javascript.
2. You should only have one of the v3 stylesheets in the css folder at a time. In the latest version I've been putting them inside a subfolder called "more stylesheets" so if you want the XP style, remove the silver one, and vice versa.
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_categories_menu.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" />
<script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script>
I removed all v2. same problem.
Eric
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by ericpeng
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_categories_menu.css" />
<link rel="stylesheet" type="text/css" href="includes/templates/ilync/css/stylesheet_tablitev3_silver.css" />
<script type="text/javascript" src="includes/templates/ilync/jscript/jscript_tablitev3.js"></script>
I removed all v2. same problem.
Eric
check your pm
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Is it possible to have 'Add to Cart' next to the product info, above the Tabs?
I have set the global to keep 'Add to Cart' out of the Tabs, but would like it above rather than below the Tabs.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Stephen
Is it possible to have 'Add to Cart' next to the product info, above the Tabs?
I have set the global to keep 'Add to Cart' out of the Tabs, but would like it above rather than below the Tabs.
You could do it the normal way you would edit the normal zc template.
On version 3.3 of Tabs Lite....
1. Find and CUT line 623 - 677:
Code:
// #-- Start AddToCart Tab Check --#
if ($bAddToCart === false) {
?>
<!-- Added Table to prevent Add to Cart button from floating off the div-->
<table border="0" width="100%"><tr><td colspan="2">
<!--bof Attributes Module -->
<?php
if ($pr_attr->fields['total'] > 0) {
// display the product atributes
require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php');
}
?>
<!--eof Attributes Module -->
</td></tr><tr><td valign="bottom">
<!--bof Quantity Discounts table -->
<?php
if ($products_discount_type != 0) {
// display the products quantity discount
require($template->get_template_dir('/tpl_modules_products_quantity_discounts.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_products_quantity_discounts.php');
}
?>
<!--eof Quantity Discounts table -->
<br />
</td><td valign="bottom">
<!--bof Add to Cart Box -->
<?php
if (CUSTOMERS_APPROVAL == 3 and TEXT_LOGIN_FOR_PRICE_BUTTON_REPLACE_SHOWROOM == '') {
// do nothing
} else {
$display_qty = (($flag_show_product_info_in_cart_qty == 1 and $_SESSION['cart']->in_cart($_GET['products_id'])) ? '<p>' . PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) . '</p>' : '');
if ($products_qty_box_status == 0 or $products_quantity_order_max== 1) {
// hide the quantity box and default to 1
$the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
} else {
// show the quantity box
$the_button = PRODUCTS_ORDER_QTY_TEXT . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br />' . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . '<br />' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_IN_CART, BUTTON_IN_CART_ALT);
}
$display_button = zen_get_buy_now_button($_GET['products_id'], $the_button);
if ($display_qty != '' or $display_button != '') { ?>
<div id="cartAdd">
<?php
echo $display_qty;
echo $display_button;
?>
</div>
<?php
} // display qty and button
} // CUSTOMERS_APPROVAL == 3 ?>
<!--eof Add to Cart Box-->
</td></tr></table>
<?php
} // @-- End AddToCart Tab Check --@
?>
2. Add <?php at line 153.
3. Pasted what you CUT above at 154, right under that <?php tag you added.
Now set Main image and Add to cart off the tabs and the add to cart stuff should be above the tabs
Ive attached the version I used to test this with:
-
Re: Tabbed Products ''LITE'' version - Delimiter based
I've successfully upgraded my production site to 1.3.5 and tabbed products lite still works perfectly with no changes needed.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
thanks for the sending me how to do the tabs to the right of the rpoduct image. This is awesome, and works prefectly.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by qhome
You could do it the normal way you would edit the normal zc template.
On version 3.3 of Tabs Lite....
1. Find and CUT line 623 - 677:
2. Add <?php at line 153.
3. Pasted what you CUT above at 154, right under that <?php tag you added.
Now set Main image and Add to cart off the tabs and the add to cart stuff should be above the tabs
Ive attached the version I used to test this with:
Thank you very much, it works, I just merged the file you provided, and the Add to Cart is up above the Tabs!
Now I am trying to move "Ask a Question" mod to below the Tabs, next to 'Write a Review"
I guess that I should search for 'Write A Review' and paste the 'Ask A Question' call next to it?
Learning on the fly!
Here is the Ask a Question call:
<br />
<br />
<span id="productQuestions" class="biggerText">
<br />
<b><?php echo '<a href="' . zen_href_link(FILENAME_ASK_A_QUESTION, 'products_id=' . $_GET['products_id']) . '">' . ASK_A_QUESTION . '</a>'; ?></b>
</span>
<br class="clearBoth" />
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Has anyone added other mods to a Tablite tab?
For instance Write/Read A Review, Ask A Question, Tell a Friend.
I can see these mods' forms filled out within a Tab, so that the customer never leaves the product page, until they are ready to Add to Cart or move on.
I have read the Add your own Tab crosstab example, but I am not php dexterous enough without some help.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by Stephen
Has anyone added other mods to a Tablite tab?
For instance Write/Read A Review, Ask A Question, Tell a Friend.
I can see these mods' forms filled out within a Tab, so that the customer never leaves the product page, until they are ready to Add to Cart or move on.
I have read the Add your own Tab crosstab example, but I am not php dexterous enough without some help.
Yea those are planned to be in the next release of this contrib. I am trying to do it with ajax, however there may be some paradoxial snafu's with doing it like that.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Hi,
I think it is a great contribution and it works well on 1.3.5..
But I miss the language files for the Hardcode-Tabs. They are only in english, I need two languages and so I can't use the the Hardcode-Tabs and must enter them in the productdescription. English is only the second language I use, main language is german.
Is it possible to switch the language like the shop do?
Michael
-
Re: Tabbed Products ''LITE'' version - Delimiter based
Quote:
Originally Posted by michaelhl
Hi,
I think it is a great contribution and it works well on 1.3.5..
But I miss the language files for the Hardcode-Tabs. They are only in english, I need two languages and so I can't use the the Hardcode-Tabs and must enter them in the productdescription. English is only the second language I use, main language is german.
Is it possible to switch the language like the shop do?
Michael
Yes that will be in the next version.
-
Re: Tabbed Products ''LITE'' version - Delimiter based
As I mentioned before , I have the same problem with two languages for the Hardcore-Tabs. I'm waiting also for the next version.
:lookaroun :lookaroun