Results 1 to 4 of 4

Product Attributes CheckBox

This is a discussion on Product Attributes CheckBox within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This quick and simple mod allows you to use checkbox for product attribute selection on your products page instead of ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    20,754
    Rep Power
    573


    Post Product Attributes CheckBox

    This quick and simple mod allows you to use checkbox for product attribute selection on your products page instead of the default drop down list.
    This contribution makes a new tep function which can be used in place of the existing function and is called once from products_info.php.

    You can customise the table layout for your checkbox as you like.

    Screenshot included
    Tested on a fresh install of RC2a

    Should take about 30 seconds to install.

    More...
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  2. #2
    osCMax Testing Team
    Join Date
    Jun 2004
    Posts
    267
    Rep Power
    0


    Default Re: Product Attributes CheckBox

    for this mod, would you happen to know what i would have to change in product_info.tpl?

    this is the code that was changed and i was trying to play around with it to make it work but unfortunately had no luck:

    Code:
    <?php
    
        $products_attributes_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_OPTIONS . " popt, " . TABLE_PRODUCTS_ATTRIBUTES . " patrib where patrib.products_id='" . (int)$HTTP_GET_VARS['products_id'] . "' and patrib.options_id = popt.products_options_id and popt.language_id = '" . (int)$languages_id . "'");
    
        $products_attributes = tep_db_fetch_array($products_attributes_query);
    
        if ($products_attributes['total'] > 0) {
    
    //++++ QT Pro: Begin Changed code
    
          $products_id=(preg_match("/^d{1,10}({d{1,10}}d{1,10})*$/",$HTTP_GET_VARS['products_id']) ? $HTTP_GET_VARS['products_id'] : (int)$HTTP_GET_VARS['products_id']); 
    
          require(DIR_WS_CLASSES . 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN . '.php');
    
          $class = 'pad_' . PRODINFO_ATTRIBUTE_PLUGIN;
    
          $pad = new $class($products_id);
    
          echo $pad->draw();
    
    //++++ QT Pro: End Changed Code
    
        }
    
    ?>

  3. #3
    osCMax Testing Team
    Join Date
    Jun 2004
    Posts
    267
    Rep Power
    0


    Default Re: Product Attributes CheckBox

    anyone out there able to assist in my situation?

  4. #4
    osCMax Testing Team
    Join Date
    Jun 2004
    Posts
    267
    Rep Power
    0


    Default Re: Product Attributes CheckBox

    i was still hoping if anyone installed this contribution and was able to figure out how to make this work

Similar Threads

  1. checkbox type attribute mod?
    By MrE03 in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 04-29-2009, 12:32 PM
  2. Add Multi Products Checkbox v1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-22-2008, 08:51 PM
  3. Account Agreement Checkbox
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-20-2007, 12:20 PM
  4. Product Options / Product Attributes.. pulldown sorting.?
    By Preston in forum osCommerce 2.2 Discussion
    Replies: 5
    Last Post: 11-24-2005, 06:53 PM
  5. Specific Product Image based on chosen product attributes?
    By chrisrex in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 11-22-2005, 08:41 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
  •