Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2006
    Posts
    10
    Plugin Contributions
    0

    Page Specific Sideboxes

    Hi there,

    I need to make a sidebox that will appear with data that corrisponds to that page. For example if the product is an apple then in a box it will show you different links to news about that product that I could edit.

    Any ideas on how to do this?

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

    Default Re: Page Specific Sideboxes

    This isn't a feature currently built-in to Zen Cart. In fact, it's not a small thing to write either. You may wish to post a commercial-help-wanted post to get a programmer to write it for you.
    .

    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
    Sep 2004
    Posts
    14
    Plugin Contributions
    0

    Default Re: Page Specific Sideboxes

    It seems to me, that you can use in your sidebox code the $_GET['products_id'].
    If it is set, then you can query an additional table indexed by products_id and get the links you want to display.
    The table can be similar to manufacturers_info table.
    That part seems easy. But I do not have a clue what you need to write admin module for that.

    wdrwc

  4. #4
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,520
    Plugin Contributions
    127

    Default Re: Page Specific Sideboxes

    Perhaps rather than the sidebox, customize tpl_product_info_display.php and add
    links based on $current_category_id and $products_id_current.

    Or, perhaps, customize tpl_index_product_list and add links based on $cPath.

    Good luck,
    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 

Similar Threads

  1. Disabling sideboxes on specific pages (ie the Checkout page)
    By dcENS in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 25 Apr 2010, 09:56 PM
  2. Making specific sideboxes taller
    By stlnyc in forum Basic Configuration
    Replies: 2
    Last Post: 24 Mar 2009, 01:56 AM
  3. creating product specific sideboxes
    By whiteboxer in forum Basic Configuration
    Replies: 3
    Last Post: 3 Aug 2006, 04:03 AM
  4. Enabling Sideboxes on Specific Pages
    By ideasgirl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 10 Jul 2006, 03:30 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