Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Tabbed Products Contrib [WIP]

    Ok, I've successfully got a tabbed products set up working, complete with admin backend and frontend. But I'm a bit confused on how to add this with Zen-Magic to the admin side because there is no templates folder like the frontend has.

    So I had to make edits directly to "collect_info.php". How would I go about doing that properly ? Since there is no direct menu link to products.php, and it can only be reached by clicking on "add new product" or clicking on an existing product in the categories selection, it seems that I am forced to rewrite products.php to at least point to a new collect_info.php and a new update_info.php, as both of those required query changes. Also had to add a function to "functions/general.php" for "zen_get_products_description_additional", how would i do that with ZenMagic?

    I've added a new field to "products_description" table called "products_description_additional" and Ive got it set to the second tab. In total, I've been trying to follow other tabbed sites and so far I've gotten:

    Product Description | Additional Info & Specs | Additional Images | Customers also bought

    The front end I used zen-magic on so its in my own template folder, but still since it is a modification, I am unsure how to make it work any other way besides forcing people to replace their products_display_info.php file in their template folder. Is this the proper way?

  2. #2
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Tabbed Products Contrib [WIP]

    WIP frontend Demo
    I plan on improving the tab design, but a lot of it is css so it should be decently easy to modify.
    Admin Panel Screenshots:


  3. #3
    Join Date
    May 2005
    Location
    Brussels belgium
    Posts
    203
    Plugin Contributions
    0

    Re: Tabbed Products Contrib [WIP]



    looks great !!

    question multilanguage support ? htmlarea support ?

    Thanks
    Zen cart or nothing !!

  4. #4
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Tabbed Products Contrib [WIP]

    Quote Originally Posted by titangen


    looks great !!

    question multilanguage support ? htmlarea support ?

    Thanks
    Multilanguage support: YES
    HTMLArea/FCK support: YES

    I made sure to encapsulate the full code with each tab.

  5. #5
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Tabbed Products Contrib [WIP]

    As you've already noted, there aren't any override capabilities in the Admin section. So you just have to overwrite the original files (your collect_info.php being a good example).

    Don't try to replace it with a differently-named file - it just means more work and having to overwrite other files to point to them correctly.

    For the extra function, you can make a separate file for it and put it in the admin/includes/functions/extra_functions/ folder rather than modifying a core function file.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

  6. #6
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Tabbed Products Contrib [WIP]

    Q-

    Make this a new product type!!! Then you can change the collect info and anything else associated with creating a product- and NO CORE FILE CHANGES
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  7. #7
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Tabbed Products Contrib [WIP]

    Quote Originally Posted by Kim
    Q-

    Make this a new product type!!! Then you can change the collect info and anything else associated with creating a product- and NO CORE FILE CHANGES
    AHh good point.. i was thinking about how there was a Products and Products_Document, etc.. ok great.. then i will do that.. but I dont really know how to select a document product type or another one.. ive never changed my product type before. I just click new product and it loads the default one. How do you switch?

  8. #8
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Tabbed Products Contrib [WIP]

    Ohh i see now.. its a drop down next to the "Add New Product" button. Cool. Thanks Kim!

    Now what do I name the extra_functions file?

    The core function is in general.php. Does it matter what I name it? I think zen cart will just load all the functions it finds.. but im not sure.

  9. #9
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Tabbed Products Contrib [WIP]

    Ok, How about the file: /admin/includes/modules/update_product.php ? I have to modify that to use the new Product Type, is there no other way to do that?
    Last edited by qhome; 18 May 2006 at 01:05 AM.

  10. #10
    Join Date
    Sep 2004
    Location
    Western Massachusetts
    Posts
    2,945
    Plugin Contributions
    5

    Default Re: Tabbed Products Contrib [WIP]

    It doesn't matter what you call the new functions file...as you suspected, they all get loaded.
    As for the file /admin/includes/modules/update_product.php, if you look closer at the other folders under admin/includes/modules, you'll see that the update_product.php is overridden for the product_music type by putting a modifed version in the product_music folder.
    Neville
    An assumption is what you arrive at when you get tired of thinking...

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Tabbed Products Pro (TPP) Contrib - Official Thread
    By qhome in forum All Other Contributions/Addons
    Replies: 2216
    Last Post: 8 Feb 2024, 12:43 PM
  2. v139h Conflicts between Tabbed Home and Tabbed Products Pro v1.07
    By swdynamic in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 14 Sep 2014, 06:29 PM
  3. Tabbed Products
    By jagall in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 16 Jan 2012, 09:55 PM
  4. Tabbed Products Pro
    By top hatt in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 19 Dec 2010, 02:04 AM
  5. Complete Template Rewrite WIP
    By Rowan in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Sep 2006, 02:20 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR