Page 8 of 43 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 427
  1. #71
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Dropdown Authors with search functionality

    Hi Oldcat,

    of course you are aware that some browsers already provide part of the functionality you describe: You click once on the pop-up with the author names, so the pop-up stays open and then you just start typing on the keyboard and the pop-up highlights entries which begin with the letters you type. Hitting ENTER selects what is highlighted in the popup. In Firefox this works, although I do not know if this works when you enter japanese characters. This will only pick up the first characters so if you look for "Osamu Tezuka" you can only find it by typing "Osam.." not by typing "Tezu…"

    Maybe you can do it this way until there is a full search functionality in BookX.

    Best wishes,
    P.

  2. #72
    Join Date
    Jan 2014
    Location
    Japan
    Posts
    3
    Plugin Contributions
    0

    Default Re: Dropdown Authors with search functionality

    Hi philou,
    Thank you very much for your really useful suggestion.
    I have not been aware of this browser's functionality until today.
    I tried it and found that it does not work with Japanese/Chinese characters.
    So I have made some "dummy" authors for index with alphabetical characters.
    It really works and It does shorten my search time.
    I will make a donation to your cat.
    Thank you again.

    Best Regards,
    oldcat

  3. #73
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Dropdown Authors with search functionality

    Hey Oldcat,

    many thanks for your donation!

    I'm happy you have a method that works – great idea to insert "dummy" authors :)

    Best regards,
    philou

  4. #74
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Multisite

    Hello,

    I have another question. I use Multisite modul and it has a function that you can show some categories on one site and other on other site. It uses a function called cat_filter by witch it filters the products (for sideboxes and search). Does anyone have an idea how or where i should try to use this function so that it does the same for the filter sedebox function of bookx?

  5. #75
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Multisite

    I forgot to mention that the sidebox bookx filter is working in this maner, only the function that shows all books by the same author doesnt work, as it shows all the books asigned to that author, not just the ones asignet to the current store.

  6. #76
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Multisite

    Hi sup,

    can you give a bit more info :
    If you filter for a specific author "Joe" with ID 42 in the BookX sidebox, then it shows correctly all books by "Joe" assigned to your current store, is that right? (The URL should reflect the use of the author filter like for example "YOURSHOP.COM/index.php?main_page=index&typefilter=bookx&bookx_author_id=42")
    Does the multisite plugin add another filter to the URL at this point?

    If you choose the entry "show all authors" in the bookx filter, there is the link "Show books by Joe" after author "Joe". If you click on this link, then it shows all books by Joe for all stores? Does this exactly describe the problem? If yes, then what does the URL look like? Because in my development shop system it shows exactly the same URL as the filter pop-up in the example above, so if it is different, that could be a problem.

    Let me know what the situation is with that, or if it is another point where "Show all books by author" is not working.

    Regards,
    p.

    Quote Originally Posted by suportafaceri View Post
    I forgot to mention that the sidebox bookx filter is working in this maner, only the function that shows all books by the same author doesnt work, as it shows all the books asigned to that author, not just the ones asignet to the current store.

  7. #77
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Multisite

    So, another of my rushing thru things. The Advanced search is the one that works as when i search for an author it only shows the products of the respective author for the curent site.
    The bookx filter doesn't care about my category alocation and shows all the products by that author.
    I tryed al kinds of places to put the cat_filter in but to no avail.
    The statements used in the Advanced search for the category filtering is
    Code:
    $listing_sql = cat_filter($select_str . $from_str . $where_str . $order_str);
    and an example used in the "New product listing"
    Code:
    $check_products_all = $db->Execute(cat_filter($products_new_split->sql_query));
    Do you have any idea what and where to change someting to make this work?

  8. #78
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Multisite

    Hi sup,

    sorry, but I'm not really an expert on how the multi-site plugin works. Here are two thoughts:
    There is a bookx function which runs on all pages that list multiple products and it is in YOUR CATATALOG/includes/classes/observers/class.bookx_observers.php. The function is called update_product_listing_with_bookx_attributes and around line 454 there is this:

    Code:
    $listing_split = new splitPageResults($listing_sql_new, MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page');
    You could try adding your cat_filter there. Possibly this results in the cat_filter being called twice during one execution of the script, once here and once inside the product listing template, I don't know.

    The more restrictive call to cat_filter could be placed inside YOUR CATATALOG/includes/index_filters/bookx_filter.php around line 122 there is $listing_sql = 'SELECT ' . $select_column_list . $select_table_list . ' WHERE ' . $select_where_conditions . $alpha_sort; which is only called when there is a BookX filter active.

    Attention: When a bookx filter is active, the filter code above is called first, and then the observer code is called as well a bit later, so adding cat_filter in both places means it will be called twice by BookX when filters are active.

    Hope that helps you along!

    Regards,
    p.

  9. #79
    Join Date
    Jun 2012
    Posts
    32
    Plugin Contributions
    1

    Default Re: Multisite

    The first statement for the observers solved the problem with the sidebox.
    This is the modified statement in case some one else needs it:
    Code:
    $listing_split = new splitPageResults(cat_filter ($listing_sql_new), MAX_DISPLAY_PRODUCTS_LISTING, 'p.products_id', 'page');
    The problem with the Books by the same Author in the product description page was solved by adding the cat_filter in the template tpl like this:
    Code:
    echo cat_filter($authors_related_products_html);
    Thank you verry mutch for your help and if you need testing with new versions of your module you can count on me.
    Last edited by suportafaceri; 22 Jan 2014 at 05:45 PM.

  10. #80
    Join Date
    Jan 2006
    Posts
    165
    Plugin Contributions
    1

    Default Re: Multisite

    Hi,

    I'm happy to hear that it works. It is quite surprising that this should fix something:
    Code:
    echo cat_filter($authors_related_products_html);
    Since "echo $authors_related_products_html;" simply outputs the HTML previously assembled by the PHP code further up in the bookx_product_info file. I don't see how the cat_filter function is able to go through that HTML and decide which books don't fit the categories of your site. Are you sure that you didn't do something else as well?

    Anyway, if it works then there's nothing to complain :)

    Regards,
    p.

 

 
Page 8 of 43 FirstFirst ... 67891018 ... LastLast

Similar Threads

  1. Why "No, Normal Shipping Rules" option for a "Product - Free Shipping" type?
    By ilikemike in forum Built-in Shipping and Payment Modules
    Replies: 3
    Last Post: 31 Dec 2011, 12:34 AM
  2. Replies: 5
    Last Post: 11 Sep 2009, 04:51 AM
  3. Different "Sold Out" images for each product type
    By Starlyn in forum Setting Up Categories, Products, Attributes
    Replies: 13
    Last Post: 20 Mar 2009, 10:37 PM
  4. Remove "Add: [ ]" and "Add selected products to cart" from product pages? possible?
    By edwardtilbury in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Sep 2008, 03:13 AM
  5. "Array()" line on "Update Address Book" page
    By vera in forum Managing Customers and Orders
    Replies: 10
    Last Post: 22 Sep 2006, 03:06 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR