Page 1 of 2 12 LastLast
Results 1 to 10 of 21

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Idea or Suggestion Advanced Search Plus

    This contribution expands the advanced search function to Categories, Subcategories and EZ Pages.

    Categories, Subcategories - searches in Name and Description
    EZ Pages - searches in Title and Html_Text

    It will display results for products, categories and EZpages and indicate if there are no matches available.

    Updated install instructions and screenshots now included.
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Default Re: Advanced Search Plus

    If you have installed Twitch Restrict Categories by Customer or Group with this module please install the filter update here:
    http://www.zen-cart.com/showthread.p...75#post1235575
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

  3. #3
    Join Date
    Aug 2012
    Posts
    292
    Plugin Contributions
    0

    Default Re: Advanced Search Plus

    is it 1.5.0 compatible ??

  4. #4
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Default Re: Advanced Search Plus

    I don't have any v1.50 carts to test it on, it should work. You could give it a try or let me know if you'd like me to test it on your cart. Be sure to make backups before making any changes.
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

  5. #5
    Join Date
    Aug 2004
    Posts
    123
    Plugin Contributions
    0

    Default Re: Advanced Search Plus

    Quote Originally Posted by twitchtoo View Post
    I don't have any v1.50 carts to test it on, it should work. You could give it a try or let me know if you'd like me to test it on your cart. Be sure to make backups before making any changes.
    I have a question/need help with your search.

    My site has a billion categories, but if you wanted to search for otters, for example, you'd get zero results because the products are only called "otter shirt" using an include that pulls the name of the category into the product name (which was necessary to avoid creating a billion products).

    The categories have real names though, so there is a category called "otters." I figured your plugin would be perfect to solve my search by category problem, but there are two snags...

    1. The picture for each category says "no image available" instead of pulling the icon for that category.
    2. My category descriptions use a trick to pull the name of the category into them (which you were actually helping me with in another thread) so the descriptions of the categories in the search end up like "Embroidered Personalized Gifts for the Lover" instead of "Embroidered Personalized Otter Gifts for the Otter Lover"

    Between those two things, it makes it hard to see which result is the one you want. For instance: http://doodlesport.com/super/index.p...=otter&x=0&y=0

    There is otter in "trotter horse" and "otter"

    So... for problem #2 I need to add code like
    $current_categories_description = str_replace('<!--category-->', $breadcrumb->last(), $current_categories_description);
    Which is how I tricked the descriptions into inserting the category name in the product descriptions, but I'm having trouble figuring out how add category names to the results - they aren't already there.

    For problem #1, need to tell it to pull the category pictures. Then, even if the descriptions are goofy, at least the picture will tell them which is the right result.

    Hope that makes sense! Happy to pay you for your help.

  6. #6
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Default Re: Advanced Search Plus

    It looks like this no_picture image is a bug, I'm working on the fix as I type this :)
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

  7. #7
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Default Re: Advanced Search Plus

    On to your second question...

    Quote Originally Posted by avansant View Post
    2. My category descriptions use a trick to pull the name of the category into them (which you were actually helping me with in another thread) so the descriptions of the categories in the search end up like "Embroidered Personalized Gifts for the Lover" instead of "Embroidered Personalized Otter Gifts for the Otter Lover"

    $current_categories_description = str_replace('<!--category-->', $breadcrumb->last(), $current_categories_description);
    Which is how I tricked the descriptions into inserting the category name in the product descriptions, but I'm having trouble figuring out how add category names to the results - they aren't already there.
    If you look in the same file as the bug fix in my last post, line 76 holds the category_description output. Try your new description code there... I would try it myself but the last coffee is finally wearing off it's sleep time.
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

  8. #8
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Default Re: Advanced Search Plus

    Advanced Search Plus 2.02 has been submitted for review.

    It's also available on my site if you can't wait :)
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

  9. #9
    Join Date
    Aug 2004
    Posts
    123
    Plugin Contributions
    0

    Default Re: Advanced Search Plus

    Hm. Looks like my post here didn't save - I did get the photo to show up using your instructions, thank you so much! I sent you some coffee money through your site. I can't get my dynamic category keywords to show up though. Using your direction I looked at the code near line 76 and tried

    $zen_get_category_description = str_replace('<!--category-->', $categories_name, $zen_get_category_description);
    I tried
    $current_categories_description = str_replace('<!--category-->', $categories_name, $current_categories_description);

    too

    but that didn't work. Any idea how I can finish this bit? I'm using the wrong code for calling either the description or the category name for this file, but I can't figure out where I'm going wrong.

  10. #10
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,199
    Plugin Contributions
    12

    Default Re: Advanced Search Plus

    This code:
    switch ($column_list_cat[$col]) {
    case 'CATEGORY_LIST_NAME':
    $lc_align = 'left';
    $lc_text = '<h3 class="itemTitle"><a href="'
    . zen_href_link(FILENAME_DEFAULT, $cPath_new). '">' . $listing->fields['categories_name'] . '</a></h3><div class="listingDescription">'
    . zen_trunc_string(zen_clean_html(stripslashes(zen_get_category_description($listi ng->fields['categories_id'], $_SESSION['languages_id']))))
    . '</div>' ;
    break;

    Gets populated by this filter:
    zen_get_category_description

    So you could change the normal output of the description in the core file so it's consistent site wide.
    - includes/functions/functions_lookups.php

    OR

    Restructure the variable on the page before it displays the output.
    - includes/templates/YOUR_TEMPLATE/templates/tpl_modules_advanced_search_categories.php

    $avansant_category_desc = 'add your custom script here'

    Look over the file, trace the variables back to the source SQL query before randomly calling functions... echo and print_r are your friends ;)

    I like core changes, one change - site wide application, less processing.

    And thank you for the coffee, I'm enjoying one now :)
    Twitch.
    http://www.twitchtoo.com - Do you work for free? Please donate.
    Twitch Wholesale + Attributes for 1.54, Twitch Restrict for 1.54 and more...

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Advanced Search Plus Error
    By newbie456 in forum All Other Contributions/Addons
    Replies: 10
    Last Post: 15 Nov 2013, 12:04 AM
  2. Advanced Search Plus - Infinite Redirect
    By hey_you in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 27 Jul 2010, 02:57 PM
  3. Need help on Advanced Search Plus
    By neal99 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 25 Feb 2010, 03:25 PM
  4. A fix to Advanced Search Plus results?
    By FrankDeRosa in forum All Other Contributions/Addons
    Replies: 9
    Last Post: 28 Dec 2009, 11:04 AM
  5. Advanced Search Plus
    By rmkiser in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 15 May 2009, 04:05 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR