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

Tabbed Products ''LITE'' version - Delimiter based

Locked

Views: 234,293

Results 1,141 to 1,160 of 1,190
This thread is locked. New replies are disabled.
11 Jan 2008, 4:00 AM
#1142
qhome avatar

qhome

Totally Zenned

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

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

milobloom:

Thanks for this great mod!

I just installed it and I have one question.
I want to split out the attributres.

The first tab shows the description and the attributes.
How do I make the attributes show only on the 2nd tab.

http://www.allforyourwedding.com/~noah/index.php?main_page=product_info&products_id=308

I need to rewrite that part...gimme a day or 2

11 Jan 2008, 4:15 PM
#1143
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

I need to rewrite that part...gimme a day or 2

Thanks I appreciate that.

One more thing... Can you put in a global, Put Attributes on a seperate tab?
To me this is the most obvious tab, however I don't know about everyone else.

If not, I am currently just thinking of ways to get around it with over 1000 products. I can download all the products with easy populate. Manipulate it so the codes get added to every single product in excel and then re-upload it then I only have to add the codes for new products. Then the only thing I am worried about is if there are no attributes, then what?

11 Jan 2008, 11:14 PM
#1144
qhome avatar

qhome

Totally Zenned

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

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

milobloom:

Thanks I appreciate that.

One more thing... Can you put in a global, Put Attributes on a seperate tab?
To me this is the most obvious tab, however I don't know about everyone else.

If not, I am currently just thinking of ways to get around it with over 1000 products. I can download all the products with easy populate. Manipulate it so the codes get added to every single product in excel and then re-upload it then I only have to add the codes for new products. Then the only thing I am worried about is if there are no attributes, then what?

I've finally taken the time to rewrite TPL. Actually I was actually looking at a whole new method of operation and was gonna call it something else, but I have to research that more. For now I've pretty much rewritten most of the code to be smarter (i think) and a lot less cluttered. But its only about 60% done. I've moved most of the code from the tpl_tabbed_products_lite.php file into the module file because I was doing calculations in the template file still. I've started using an array for each tab so that with luck I can add the ability to arrange the tab order from within the admin area.

I've also simplified a lot of it. No more extra smart code to keep add-to-cart button the main tab. Now it acts like all the other zencart features (e.g. Additional Images, Customer also purchased, etc) so you can put it on it's own tab.

I also will be adding the Attributes to be able to go on its own tab.

stay tuned!

:lamo:

12 Jan 2008, 2:43 AM
#1145
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

Will be waiting... Thanks for all the hard work.

If its completely redone, just let us know what to do if we have this one installed...

12 Jan 2008, 6:11 AM
#1146
qhome avatar

qhome

Totally Zenned

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

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

milobloom:

Will be waiting... Thanks for all the hard work.

If its completely redone, just let us know what to do if we have this one installed...

Well I am going to see if I can completely remove the tpl_tabbed_products_lite.php from the equation and then all the calculations will be done on the module and the resulting code will be set into variables. then there "should" be minimal code to add to the tpl_product_info_display.php file.

I am also going to be changing some of the admin global stuff so there will be a script to remove the old stuff and apply the new.

In the end, the normal layout shouldn't change much. But i'll be sure to document all the steps.

14 Jan 2008, 12:00 AM
#1147
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

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

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

14 Jan 2008, 4:52 AM
#1148
qhome avatar

qhome

Totally Zenned

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

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

Sweet ZouZou:

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 am working on adding Order...

you can already wrap tab names via use of HTML.
Instead of "Product Description" you can use "Product<br/>Description" and it will wrap. You can also do this in the language file for the global tags.

14 Jan 2008, 4:59 AM
#1149
sweet_zouzou avatar

sweet_zouzou

Zen Follower

Join Date:
Nov 2007
Posts:
138
Plugin Contributions:
0

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

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

14 Jan 2008, 9:15 PM
#1150
vitaminx avatar

vitaminx

New Zenner

Join Date:
Oct 2007
Location:
Texas
Posts:
7
Plugin Contributions:
1

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

I've got the add-on running just right on https://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.com/index.php?main_page=banner_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

15 Jan 2008, 4:43 PM
#1151
qhome avatar

qhome

Totally Zenned

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

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

vitaminx:

I've got the add-on running just right on https://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.com/index.php?main_page=banner_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.

16 Jan 2008, 8:52 PM
#1152
qhome avatar

qhome

Totally Zenned

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

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

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.

17 Jan 2008, 1:41 AM
#1154
microphonepro avatar

microphonepro

New Zenner

Join Date:
Oct 2006
Posts:
19
Plugin Contributions:
0

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

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

17 Jan 2008, 3:51 AM
#1155
blessisaacola avatar

blessisaacola

Totally Zenned

Join Date:
Feb 2004
Location:
Georgia, USA
Posts:
1,875
Plugin Contributions:
1

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

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).

17 Jan 2008, 4:38 AM
#1156
qhome avatar

qhome

Totally Zenned

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

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

BlessIsaacola:

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.

17 Jan 2008, 1:30 PM
#1157
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

Some people have products that are very heavy on attributes
Making pages go own for ever. So having it on its own tab would be much better.

Now I suppose with the coding you could have the best of both worlds right?

Set global to off then code when you need it on?
Set global to on, then if you want the attributes on the first tab for a product,
set the code to turn on attributes for tab one?

I think its made to work for either...

17 Jan 2008, 2:21 PM
#1158
qhome avatar

qhome

Totally Zenned

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

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

Well as it is now (until I can figure out how to implement ordering)

Tab priority from first to last is:

  1. Product Description
    1b. Any other custom tabs
  2. Attributes
  3. Product Details (weight, model #, etc)
  4. Add to Cart (with Qty Discount box)
  5. Additional Images
  6. Customers Also Purchased
  7. Cross Sell (if installed)
  8. Reviews

With the new code, it will be much easier to move them around and/or merge multiple items together. It will still need to be modified in the code to do it.. but its still a lot easier.

Also, as with the other versions, if there are no items to be displayed on "Zen based" tabs (attribs, product details, add'l images, etc) then the tab will not show up for that product, even if the tab is enabled. The only exception to the rule is the reviews tab. Since that references the real reviews page, it uses its own "There are no reviews" message.

17 Jan 2008, 5:14 PM
#1159
milobloom avatar

milobloom

Totally Zenned

Join Date:
Feb 2004
Posts:
1,267
Plugin Contributions:
1

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

Just thinking about this...
Will there be a way (Globally)
To have either...
Add to Cart on every tab
or
Add to cart on its own tab

Personally I would want it on every tab,

17 Jan 2008, 5:43 PM
#1160
qhome avatar

qhome

Totally Zenned

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

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

milobloom:

Just thinking about this...
Will there be a way (Globally)
To have either...
Add to Cart on every tab
or
Add to cart on its own tab

Personally I would want it on every tab,

Well Add to Cart is now a global tab of its own. And yes it is possible to have Add to cart on every tab globally if you edit the code a bit. But that seems a bit silly. Why not just leave it off the tabs so you can always see it anyway.