Is there a way to order the tabs and control how they wrap to the next line? I tried adding numbers at the end of the names. I have some long tab names and they "hang" in mid air (check the Whiskey Cake product page).
Thx Sweet
Printable View
Is there a way to order the tabs and control how they wrap to the next line? I tried adding numbers at the end of the names. I have some long tab names and they "hang" in mid air (check the Whiskey Cake product page).
Thx Sweet
I didn't think about the <br/> code. This will help with the longer names. I will wait for the new release and the added ordering functionality.
Thx Sweet
I've got the add-on running just right on www.vitaminsupplementsstore.com, and was looking for a reply to YairOz's questions a couple of pages ago...
Is there a way to make this work on a page other than a description page? Specifically here: http://www.vitaminsupplementsstore.c...ner_affiliates
so that each type of banner is on a separate tab.
I required the tabbed_products_lite.php just like it is done in the TPL, then added the custom tab tags, but no luck. What am I missing that will make this run?
Vitaminx
TPL = tabbed products lite
Tho I am trying to work on a way to "tabify" things on the fly that would apply to everything.. but that needs more research. That wouldn't be called TPL tho as I would make it its own contrib.
For now tho,
UPDATE
TPL 3.9 - New Version almost complete.
Change log:
- Complete code rewrite
- Made use of functions to cut down on reused code
- Moved all calculations into the module file.
- Simplified the design
- No longer supporting the MainImageOnTabs feature, as that was the largest headache.
- No longer forcing the Add to Cart button to be on the first tab. Now it acts like any other tab.
- No longer need the tpl_tabbed_products_lite.php file.
- Added Attributes as its own tab
- Added "Global Attributes on Tab" feature
- Removed MediaCollection tab (cuz media collection isn't very good and not worth tabbing)
- Using variables to store all the calculated code, now a single variable is all that is needed to add the tabs to your product info page.
- Added "Global Enable Tabs" which can quickly enable or disable the use of tabs
Still to do:
- Figure out how to implement Sorting the order they are in.
- Find a better way to hide div blocks that the product info file calls, if they are already on the tabs
I hope to be done possibly today or tomorrow. The ToDo list may not make it for the first release.
I am going to start a new thread for it as well, as it can be easy to lose track of stuff with so many pages. Glad to see so many people find it useful.
Well I must be on some good drugs because I think I just figured out a way to use some magical javascript sorcery to make adding tabs to your product info page as easy as adding one variable and one requires reference.
I fear tho that it might open a whole new can of worms. So I think I will keep the safe version and maybe release this magickery version as a try-at-your-own-risk.
Fear not, as there is no permanent damage to be done.. and its all in one file so if you run into a problem, you could always revert to the safe(r) one.
Currently, the "Safe" one works by:
1. requiring the tabbed prod lite module file which performs all the calculations and saves it to a single variable.
2. add echo $variable to the product info template
3. add 'IF' logic to each existing location where the attribs, add to cart, etc stuff would be so you don't show it twice.
The last step is the ugly part, as it requires many changes to custom product info files. Tho I will of course include a pre-modified copy based on zen-carts default version.
The "magickery" one works by:
1. requiring the tabbed prod lite module file which performs all the calculations and saves it to a single variable. It also uses fake id's for the tabbed version of the existing divs. Then, using javascript, it manipulates the real div ids to a fake name with display:none. And manipulates the fake divs to use the real names with display:block.
2. add echo $variable to the product info template
That's it. There would be no more modifications to make to the product info file except for those 2 simple changes because the javascript would finagle all the values around.
The way I do it also prevents duplicate ids for validation.
And, if javascript is disabled, it will simply not show the tab box and just default to the normal page style as if tabs never existed.
Magic indeed!
I still gotta put it all into the code to try it, I've got it working for one section tho, so as long as I don't run into any other craziness, it might just work!
Stay Tuned!
I have still not worked on the ordering thing. I have an idea for it, but it seems to be stuck at the back of my mind so I am waiting patiently for my mind to send it front and center.
-EDIT- Duplicate
Glad to hear about your efforts qhome. :clap:Keep up the good work. I'm looking forward to trying out your new version.
Much Appreciated,
Jamey
QHome, good work and I am keenly reading your post. Quick question, why would you want attributes on it's own tab? I am not sure that will be customer friendly.
For example if you have t-shirts with the descriptions on one tab and the size attributes (Small, Medium, Large etc) on another tab, it will be confusing (or shall I say not customer friendly).
That was how it was designed up till now. But the masses have asked for it to be that way.. So I giveth it in 3.9. Up until now I had the Attribs, Qty discount, and Add to cart on the same tab.
Great news....
I got my "magickery" version working perfectly!
I even got it to revert to the default product info style if jscript is disabled.
Now there are only 3 single-line changes needed to be made to the product info template. And only 1 tabbed lite module file for all the coding. (as well as the rest of the css and jscript files)
I will be finishing up the readme and release tomorrow.
The only thing I haven't added yet was sorting. Which will need more time.