Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2005
    Posts
    229
    Plugin Contributions
    0

    Default 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
    Code:
    zen_get_attributes_sort_order($products_id, $options_id, $options_values_id)
    or
    Code:
    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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: Help needed for tabbed attributes

    Have you tried using the Tabbed Products Pro addon?
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Mar 2005
    Posts
    229
    Plugin Contributions
    0

    Default Re: Help needed for tabbed attributes

    Quote Originally Posted by DrByte View Post
    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.
    Last edited by hubert; 26 Aug 2012 at 06:19 PM.

 

 

Similar Threads

  1. Help needed to merge a file for attributes/dynamic dropdown
    By schwimwastaken in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 9 Sep 2009, 03:12 PM
  2. Replies: 2
    Last Post: 29 Dec 2008, 09:16 PM
  3. Tabbed product help needed
    By whatsup in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 19 Oct 2007, 02:12 AM
  4. Tabbed product lite simple fix needed
    By hbtrading in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 18 Dec 2006, 01:04 AM
  5. Attributes Help Needed
    By awoman in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 30 Sep 2006, 07:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg