Page 7 of 10 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 93
  1. #61
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    I'm sorry, I think I made a booboo in my posts LOL, the line I added apparently was

    and p.products_ordered > 0

    And because I have stock/quantity disabled, I didn't add it in the second section, I think the products quantity was already there maybe? If you add the above line to both sections, as highlighted it should work for you

    Code:
    if (BEST_SELLERS_SHOW_OUT_OF_STOCK == 'true') {
        $listing_sql = "SELECT p.products_type, p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id,
                                        p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call,
                                        p.product_is_always_free_shipping, p.products_qty_box_status,
                                        p.master_categories_id
                                 FROM " . TABLE_PRODUCTS . " p
                                 LEFT JOIN " . TABLE_MANUFACTURERS . " m ON (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 WHERE p.products_status = 1
                                 and p.products_ordered > 0
                                 AND p.products_id = pd.products_id
                                 AND pd.language_id = :languageID " . 
                                 "order by p.products_ordered desc ". $order_by;
    } else {
        $listing_sql = "SELECT p.products_type, p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id,
                                        p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call,
                                        p.product_is_always_free_shipping, p.products_qty_box_status,
                                        p.master_categories_id
                                 FROM " . TABLE_PRODUCTS . " p
                                 LEFT JOIN " . TABLE_MANUFACTURERS . " m ON (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 WHERE p.products_status = 1
                                 and p.products_ordered > 0
                                 AND p.products_quantity > 0
                                 AND p.products_id = pd.products_id
                                 AND pd.language_id = :languageID " . 
                                 "order by p.products_ordered desc ". $order_by;
    }
    A tiny bit of knowledge mixed with blonde can be dangerous it seems LOL

    Can one of the mods maybe go back and edit my previous post on this or delete it?

    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  2. #62
    Join Date
    May 2008
    Posts
    36
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    That worked, thank you!

  3. #63
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    You're welcome
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  4. #64
    Join Date
    Dec 2005
    Posts
    58
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    Has anyone figured out a way to show a specific number of best sellers? I would only like to show 10 on the page at all times.

  5. #65
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    The best sellers page uses the same display as the categories, and in my store at least lol it displays the same amount of products as my categories, so I *think* it depends on how many you have set in admin for categories to show.....but I could be wrong :)
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  6. #66
    Join Date
    Dec 2005
    Posts
    58
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    There isn't anywhere in admin to set the number of best sellers showing on this mod. It will be some type of code modification. There was some discussion on it earlier in this thread but nothing in any of those threads did the trick for me.
    I would like for this page to only show the top 8 sellers. Currently it shows every product in my store which makes the page useless.

  7. #67
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Best sellers "page"

    I updated the module to add these features:
    1. Only list products that have been sold (thanks to christon26)
    2. Include sold out products switch now moved to admin
    3. Allow setting the maximum number of best sellers listed. Please note that this number can NOT be less that the number of products listed per page, so say if you have 20 products listed per page then the minimum number can only be 20 (this is due to the fact that this module use the product listing template)

    Enjoy
    Attached Files Attached Files
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  8. #68
    Join Date
    Oct 2007
    Location
    Australia
    Posts
    843
    Plugin Contributions
    0

    Default Re: Best sellers "page"

    Too cool I get a lil mention (blushes from someone who generally has no idea what she's doing), thanx! LOL

    If anyone is interested, I decided that I didn't want my freebies listed in the bestsellers as they were 'bought' so many times they all went to the top LOL so I added the following in under my previously posted addition in both relevant sections:

    Code:
    if (BEST_SELLERS_SHOW_OUT_OF_STOCK == 'true') {
        $listing_sql = "SELECT p.products_type, p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id,
                                        p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call,
                                        p.product_is_always_free_shipping, p.products_qty_box_status,
                                        p.master_categories_id
                                 FROM " . TABLE_PRODUCTS . " p
                                 LEFT JOIN " . TABLE_MANUFACTURERS . " m ON (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 WHERE p.products_status = 1
                                 and p.products_ordered > 0
                                 and p.products_price > 0
                                 AND p.products_id = pd.products_id
                                 AND pd.language_id = :languageID " . 
                                 "order by p.products_ordered desc ". $order_by;
    } else {
        $listing_sql = "SELECT p.products_type, p.products_id, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id,
                                        p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call,
                                        p.product_is_always_free_shipping, p.products_qty_box_status,
                                        p.master_categories_id
                                 FROM " . TABLE_PRODUCTS . " p
                                 LEFT JOIN " . TABLE_MANUFACTURERS . " m ON (p.manufacturers_id = m.manufacturers_id), " . TABLE_PRODUCTS_DESCRIPTION . " pd
                                 WHERE p.products_status = 1
                                 AND p.products_quantity > 0
                                 and p.products_ordered > 0
                                 and p.products_price > 0
    HunnyBee Design
    "A man's manners are a mirror in which he shows his portrait." ~ Johann Wolfgang von Goethe

  9. #69
    Join Date
    Oct 2006
    Posts
    5,477
    Plugin Contributions
    11

    Default Re: Best sellers "page"

    I updated this module once again. Now it will correctly show the number of pages of best sellers (for example, if you set max to 10, and you have 10 products per page then it wont display all the 1.2.3.4.5.... page)

    http://public.rubikintegration.com/
    I no longer provide installation support on forum for all my modules. However, if there are real bugs with the modules please feel free to contact me

  10. #70
    Join Date
    Apr 2004
    Location
    UK
    Posts
    5,821
    Plugin Contributions
    2

    Default Re: Best sellers "page"

    Thanks...very useful update to your excellent script

 

 
Page 7 of 10 FirstFirst ... 56789 ... LastLast

Similar Threads

  1. v139h restoring "Products Ordered" list anr therefore best sellers box
    By freedude in forum General Questions
    Replies: 1
    Last Post: 17 Jun 2012, 06:00 PM
  2. Why "Best Sellers" linked to "Specials" (sales module?)?
    By Cluelessjt in forum Basic Configuration
    Replies: 1
    Last Post: 29 Aug 2010, 02:54 AM
  3. Display "Best Sellers" like "What's New" or "Specials" lists.
    By jsmooth in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Jun 2010, 12:06 AM
  4. "Best sellers" scrolling sidebox thumbnail problem
    By chris32882 in forum Addon Sideboxes
    Replies: 29
    Last Post: 15 Feb 2009, 12:56 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