Forums / Templates, Stylesheets, Page Layout / Help needed for tabbed attributes

Help needed for tabbed attributes

Results 1 to 3 of 3
23 Aug 2012, 23:45
#1
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Help needed for tabbed attributes

Hello,

I need to tab my attributes. I planned to use the method explained on http://www.ladyada.net/library/zencart/tabs.html which seems to be the most simple to adapt to my case.
People at ladyada.net are adding things in the database which I don't need.
I planned to use sort order to separate attributes in tabs.

First question : which is the smartest, to use attributes sort order or options sort order ?

Then I planned to make a custom tpl_modules_attributes.php file in MY_Template directory and use either
zen_get_attributes_sort_order($products_id, $options_id, $options_values_id)

or
zen_get_attributes_options_sort_order($products_id, $options_id, $options_values_id, $lang_num = '')


(depending on asnwers for question 1) to get the sort order and add css tags in the right place.

I succeeded in getting the product_id by using $_GET['products_id'] but for the rest $_GET['options_id'] or $_GET['$options_values_id'] doesn't return values.

Can someone give me a hand ?

Later I plan to put an option in Configuration table which would only be a limit for each tab. Imagine the limits for three tabs are 100 and 200, every attributes between 0 and 100 would be in tab 1, between 101 and 200 in tab 2 and so on.

Thanks for your help

Regards

Hubert
26 Aug 2012, 04:48
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Help needed for tabbed attributes

Have you tried using the Tabbed Products Pro addon?
26 Aug 2012, 17:17
#3
hubert avatar

hubert

Zen Follower

Join Date:
Mar 2005
Posts:
229
Plugin Contributions:
0

Re: Help needed for tabbed attributes

DrByte:

Have you tried using the Tabbed Products Pro addon?


Tab Product Pro is not tabbing attributes. It tabs a bunch of things but unfortunately not attributes, at least not the way I would like which is to tab only attributes and to do so according to a parameter, for example I thought of the sort_order.
If sort_order is less than X, attribute is in Tab1, is it is between X and Y in Tab2 and so on.