Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Alphabetical links within categories/sub-categories

This is a discussion on Alphabetical links within categories/sub-categories within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Originally Posted by basnyd Based upon another post, I believe I should be looking in the index.php for the query ...

      
  1. #11
    Lurker
    Join Date
    Mar 2008
    Posts
    2
    Rep Power
    0


    Default Re: Alphabetical links within categories/sub-categories

    Quote Originally Posted by basnyd View Post
    Based upon another post, I believe I should be looking in the index.php for the query I need to modify that generates this page - Flag Pins : osCMax v2.0 Am I correct?

    Can someone point me to the correct query? There are several on the page and so far I haven't figured out the correct one.
    Hello , i reach your site and found that your category page is exactly what i want, ( the product name and price sort) .

    can you tell me how to do this?

  2. #12
    Active Member
    Join Date
    Aug 2004
    Posts
    117
    Rep Power
    0


    Default Re: Alphabetical links within categories/sub-categories

    Quote Originally Posted by akoma View Post
    Hello , i reach your site and found that your category page is exactly what i want, ( the product name and price sort) .

    can you tell me how to do this?
    All of the code I modified is posted in the 05-31-2007, 06:47 PM entry of this thread. Is there something further you are looking for? I didn't program anything for the sort, so I'm not sure what turns that on.
    Last edited by basnyd; 03-18-2008 at 05:25 AM. Reason: added more to the answer

  3. #13
    Lurker
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    0


    Default Re: Alphabetical links within categories/sub-categories

    I'm working on the if statement to display the alphabetical links only within certain categories. I found each category has a categories_id set in the categories table. How can I reference this in an if condition?

    I tried this, but it doesn't work. I'm open to suggestions. I'm guessing I'm not referencing something properly.

    <?php
    if ($categories_id = '1') {
    ?>

    I would like the if statement to work for multiple categories_id. For example for, 4 , 8 & 11.

    Thanks,

    __________________
    cheap wii games
    download wii games

  4. #14
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,428
    Rep Power
    48


    Smile Re: Alphabetical links within categories/sub-categories

    You will probably need to use the cPath= variable in the url.

    So something like:

    Code:
    $yourcheck = $_GET('cpath');
    if ( ($yourcheck = '4') || ($yourcheck = '8') || ($yourcheck = '11') ) {
    // Do your alpha sort thing
    }
    I have not tried this nor do I fully understand what you are trying to achieve but this should hopefully get you started.

    Regards,
    pgmarshall
    _______________________________

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Categories / Sub Categories
    By FlakyJake in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 05-24-2007, 02:39 AM
  2. Want to show categories AND sub categories in index.php!!
    By calle in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-27-2004, 12:51 PM
  3. categories links not working
    By carruthers1 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-08-2004, 12:57 AM
  4. CATEGORIES BOX does not display categories list
    By glk in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-05-2004, 11:09 AM
  5. alphabetical order
    By sportster in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-24-2004, 02:10 PM

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
  •