osCmax v2.5 User Manual
Results 1 to 2 of 2

Naming the product TABS

This is a discussion on Naming the product TABS within the osCMax v2 Features Discussion forums, part of the osCmax v2.0 Forums category; Hey there, i've been renaming my product tabs by going into product_tabs.php and altering the echo name. Such as you ...

      
  1. #1
    Member
    Join Date
    Dec 2010
    Location
    SF, CA
    Posts
    34
    Rep Power
    0


    Default Naming the product TABS

    Hey there, i've been renaming my product tabs by going into product_tabs.php and altering the echo name. Such as you see here:

    PHP Code:
        <div class="panel">
          <h4><?php  echo TAB0?></h4>
           <?php echo stripslashes($product_info['products_description']); ?>
        </div>

        <?php if ($product_info['tab1'] > '') { ?>  
          <div class="panel">
            <h4><?php  echo FAQ?></h4>
             <?php echo stripslashes($product_info['tab1']); ?>
          </div>
        <?php ?>
          
        <?php if ($product_info['tab2'] > '') { ?>  
          <div class="panel">
            <h4><?php  echo Instructions?></h4>
             <?php echo stripslashes($product_info['tab2']); ?>
          </div>
        <?php ?>
    However, to our great scripting gods, i ask, where the hell is TAB0 referenced to become "Description" automatically?!
    Is there some Tab renaming admin function i'm not aware of?

    The next thing i want to do, is have a #instruction id="instruction" that brings up the instruction when it's called from the URL
    Such as http://www.domain.com/cat/product-name.php#instructions
    To bring up the instructions tab first.

    Seems to be that i need to make the tab javascript class "active" - don't know how to do that.... anyone got some insight?

    side note:
    Once this is working, i want to create a simple instructions page that dynamically lists the products which have instruction pages based on: if ($product_info['tab1'] > '')
    Generating the product name, with ...link.php#instruction

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    1 out of 1 members found this post helpful.

    Default Re: Naming the product TABS

    TAB0 is a language define ... anywhere you see TEXT_ALL_IN_CAPS it is a language define.

    So you would need to look in:
    catalog/includes/languages/{language}/product_info.php - for the catalog side

    and

    catalog/admin/includes/languages/{language}/categories.php - for the admin side (when you are setting up the products)

    You don't need to hard code the changes in - just change them in the language files ...

    As for the other part about making it active ... you might be best using $_GET['instructions'] (or similar) to create http://www.domain.com/cat/product-na...tructions=true. Then in product_info.tpl.php add a conditional to check the $_GET vars and move the active tab ... by using a bit of jQuery ... $("#mytabset").semantictabs({activate:2}); (instructions here)

    Regards,
    Last edited by pgmarshall; 03-29-2011 at 12:00 AM.
    pgmarshall
    _______________________________

Similar Threads

  1. Naming the product TABS
    By peterittner in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 03-21-2011, 11:04 AM
  2. Product Tabs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-01-2009, 04:11 AM
  3. Product Tabs
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-31-2009, 07:02 PM
  4. Product Tabs , for some reason i have 2 Product descriptions
    By theengineer in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 04-23-2007, 01:07 PM
  5. Product Tabs
    By automotiveuk in forum osCmax Projects Discussion
    Replies: 0
    Last Post: 01-13-2007, 08:11 AM

Tags for this Thread

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
  •