Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default need to get rid of a character

    the filter drop menu

    The very last item in the alphabetical list is an X, how to get rid of it please. I went to the product_listing_alpha_sorter.php and copied it to my templates override folder.

    I then added // to one line but the "X" just wont go away and when clicked on it takes you back to your category but not....you get the category but nothing below the category description, that is just blank.

    This is the code I tried in the file:

    ================================

    // build alpha sorter dropdown
    if (PRODUCT_LIST_ALPHA_SORTER == 'true') {
    if ((int)$_GET['alpha_filter_id'] == 0) {
    $letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES);
    } else {
    $letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES_RESET);
    }
    for ($i=65; $i<91; $i++) {
    $letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
    }
    // for ($i=48; $i<58; $i++) {

    $letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );

    }

    ========================================

    Is there some other file to do this at?

    Please let me know since I have tried many different wys to get rid of it. I noticed that in 1.3.9h there was a line that does not seem to be in this version:

    $letters_list[] = array('id' => sprintf('%02d', 48), 'text' => '#' );

  2. #2
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: need to get rid of a character

    Well this problem went away. no idea why.

  3. #3
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: need to get rid of a character

    Quote Originally Posted by DarkAngel View Post
    Well this problem went away. no idea why.
    Are you sure it didn't cause another problem? The line that was commented out would result in unbalanced curly brackets, which could a) cause undesirable results,b) cause warnings/errors to be generated and logged into the logs directory.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  4. #4
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: need to get rid of a character

    Quote Originally Posted by mc12345678 View Post
    Are you sure it didn't cause another problem? The line that was commented out would result in unbalanced curly brackets, which could a) cause undesirable results,b) cause warnings/errors to be generated and logged into the logs directory.
    Then that line should not be commented out? The company that was taking care of this account would go in when asked and "fix" things like getting some things out of the drop menus and were notorious for editing the core files not making a copy then adding it to the template override one...LOL

    They said "To control the options in the "Filter Results by" dropdown on all the category home pages: /public_html/includes/modules/piccadilly_posh/product_listing_alpha_sorter.php"

    which is what we are trying to do. To make the drop list just show the alphabet only without the : or x at the bottom.

    Maybe that is what messed up the front pages image borders, the code is not touched and it was showing borders/drop shoadow but now are with no border and not 3 per line either.

  5. #5
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: need to get rid of a character

    I think what you wanted to do was comment out the whole for loop like this

    Code:
    // build alpha sorter dropdown
      if (PRODUCT_LIST_ALPHA_SORTER == 'true') {
        if ((int)$_GET['alpha_filter_id'] == 0) {
          $letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES);
        } else {
          $letters_list[] = array('id' => '0', 'text' => TEXT_PRODUCTS_LISTING_ALPHA_SORTER_NAMES_RESET);
        }
        for ($i=65; $i<91; $i++) {
          $letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
        }
    //    for ($i=48; $i<58; $i++) {
    
    // $letters_list[] = array('id' => sprintf('%02d', $i), 'text' => chr($i) );
    
    // }

  6. #6
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: need to get rid of a character

    Thank you so very much. I did as you showed and hope this behaves.

    Now if you could answer me this... the buttons.php, should it be in languages/custom/buttons.php or in the defines folder?

    I have it in the template folder and the button that should say to see all from this designer does not it still says return to product list.

  7. #7
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,845
    Plugin Contributions
    25

    Default Re: need to get rid of a character

    The default should be in "includes/languages/YOUR_LANGUAGE", and the override in includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE". But is it is in "includes/languages/YOUR_LANGUAGE/extra_definitions" it will also load, because all the php files in that directory will load on every page.

  8. #8
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: need to get rid of a character

    Quote Originally Posted by Design75 View Post
    The default should be in "includes/languages/YOUR_LANGUAGE", and the override in includes/languages/YOUR_LANGUAGE/YOUR_TEMPLATE". But is it is in "includes/languages/YOUR_LANGUAGE/extra_definitions" it will also load, because all the php files in that directory will load on every page.

    ok, since it is in english i left off the your language in the folder area

    well then maybe I need to have it in both places cause in just the template folder it will not show the button name

    thanks.

  9. #9
    Join Date
    Oct 2007
    Location
    Emporia, Kansas
    Posts
    1,762
    Plugin Contributions
    0

    Default Re: need to get rid of a character

    well I put it in both areas and it did nothing. I then removed it from the template override and left it in ONLY the template overid in defines and still the darn button is not showing the right name on it.

    click any category then any image of product (do not click front page images they send you to live store) and see the button in between previous and next...and still no alts show...LOL

  10. #10
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: need to get rid of a character

    Commenting all the lines that were commented will remove A through Z and not just X. If it is/was desired to just remove the one letter then need to restore the lines commented, change the largest value to that of ascii of X, copy those lines and paste below, change the highest value of the new code to what it was above, and then the lowest value to that of Y.

    As to the buttons above, when you say that you left off the your language part, the intention was that english be substituted for your situation. Beyond that, not sure what is going on (yet). :)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Need to get rid of security message
    By mrdean11 in forum PayPal Website Payments Pro support
    Replies: 6
    Last Post: 5 Jan 2011, 02:27 PM
  2. need to get rid of decimal point or .00 in prices
    By paha in forum Customization from the Admin
    Replies: 2
    Last Post: 8 Jul 2008, 12:08 AM
  3. Need to get rid of few things.....
    By wmorris in forum General Questions
    Replies: 10
    Last Post: 7 Aug 2007, 03:38 AM
  4. Cant get rid of character
    By janks in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 10 Jul 2006, 10:04 AM

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