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

Product Attributes Sort Order v1.0

This is a discussion on Product Attributes Sort Order v1.0 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; FULL PACKAGE Same as below; however, I forgot to apply my fix on the forum that you can find here: ...

      
  1. #1
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Post Product Attributes Sort Order v1.0

    FULL PACKAGE

    Same as below; however, I forgot to apply my fix on the forum that you can find here: http://forums.oscommerce.com/index.p...post&p=1363928

    If you have the below package:

    Find this:

    tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "')");

    REPLACE with this:

    // BOE: Attribute Sort with Clone Tool
    tep_db_query("insert into " . TABLE_PRODUCTS_ATTRIBUTES . " values (null, '" . (int)$products_id . "', '" . (int)$options_id . "', '" . (int)$values_id . "', '" . (float)tep_db_input($value_price) . "', '" . tep_db_input($price_prefix) . "', '" . (int)$attributes_sort . "')");
    // EOE: Attribute Sort with Clone Tool

    Scott

    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
    Member
    Join Date
    Oct 2008
    Posts
    31
    Rep Power
    0


    Default Re: Product Attributes Sort Order v1.0

    I got this working BUT... see below.

    Thanks,
    Last edited by netviper; 02-19-2009 at 04:30 PM.

  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    31
    Rep Power
    0


    Default Re: Product Attributes Sort Order v1.0

    well, i got it working, but now it cant find any of my products

    Warning:mysql_fetch_array(): supplied argument is not a valid MySQL results resource in /home/mysite/public_html/includes/functions/database.php on line 101

    FYI, line 101 is " return $result;"

    Please help. I don't know what I did wrong.
    Last edited by netviper; 02-19-2009 at 04:31 PM.

  4. #4
    Member
    Join Date
    Oct 2008
    Posts
    31
    Rep Power
    0


    Default Re: Product Attributes Sort Order v1.0

    Does this NOT work with OSCMAX??

  5. #5
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default Re: Product Attributes Sort Order v1.0

    Please note the Forum.

    osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions > Product Attributes Sort Order v1.0

    This is a osCommerce contribution - not a osCMax. It will have to be manually and carefully added into osCMax - as might conflict with existing contributions.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

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


    Question Re: Product Attributes Sort Order v1.0

    This does work on OSCMAX - but you need to look into pad_base.php to find the line of code for STEP 1.

    Where you add
    Code:
    . "' order by pa.attribute_sort");
    to the end of the query called within the QT Pro MOD.

    Everything else is straight forward.

    Unfortunately, I have run into a new problem after sucessfully getting this MOD to work - when you easypopulate your data out, modify it and reupload this "extra" field "attribute_sort" is not included ... therefore I need a fix. Looking at adding the extra field to EasyPopluate download - anyone got any pointers on where to start - EZ Fields looks as good a place as any but this says you can only have fields in the products table.

    Help anyone ...

    pgmarshall

Similar Threads

  1. Product Attributes Sort Order v1.0
    By kerryanne in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 09-10-2008, 02:45 AM
  2. Product Attributes Sort Order v1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-19-2008, 11:13 AM
  3. Product Attributes Sort Order v1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 06-07-2008, 05:47 PM
  4. Product Attributes Sort Order v1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-19-2008, 10:31 AM
  5. Product Attributes Sort Order v1.0
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-26-2008, 02:02 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
  •