Forums / All Other Contributions/Addons / Best sellers "page"

Best sellers "page"

Views: 20,057

Results 61 to 80 of 93
1 Aug 2008, 10:34 PM
#61
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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

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?

:blush:

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

5 Aug 2008, 9:05 PM
#62
abcoombe avatar

abcoombe

New Zenner

Join Date:
May 2008
Posts:
36
Plugin Contributions:
0

Re: Best sellers "page"

That worked, thank you!

5 Aug 2008, 10:14 PM
#63
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: Best sellers "page"

You're welcome :D

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

9 Sep 2008, 6:48 PM
#64
salina13 avatar

salina13

New Zenner

Join Date:
Dec 2005
Posts:
59
Plugin Contributions:
0

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.

9 Sep 2008, 7:10 PM
#65
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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

16 Sep 2008, 1:42 AM
#66
salina13 avatar

salina13

New Zenner

Join Date:
Dec 2005
Posts:
59
Plugin Contributions:
0

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.

6 Oct 2008, 8:18 AM
#67
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

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

6 Oct 2008, 8:41 AM
#68
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

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:

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

15 Oct 2008, 6:11 AM
#69
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

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

15 Oct 2008, 6:55 AM
#70
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Best sellers "page"

Thanks...very useful update to your excellent script
:clap:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

15 Oct 2008, 12:45 PM
#71
yellow1912 avatar

yellow1912

Totally Zenned

Join Date:
Oct 2006
Posts:
5,422
Plugin Contributions:
0

Re: Best sellers "page"

misty:

Thanks...very useful update to your excellent script
:clap:
You are welcome. And BTW I realized that I missed an important switch in the package I posted last night, so if anyone of you download it last night, please re-download it.

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

5 Dec 2008, 1:47 PM
#72
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Best sellers "page"

Hello,

Thanks for the mod. I downloaded and installed the latest version and changed the limit to 100 but there are no link to view the other products. It only shows the first 12 (the amount set in maximum values for product listing)

Thx

8 Dec 2008, 5:27 PM
#73
berserker avatar

berserker

Totally Zenned

Join Date:
May 2006
Posts:
712
Plugin Contributions:
0

Re: Best sellers "page"

yellow1912:

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/

hello,

what happens if you set it to 50 best sellers and you have 10 products per page? shouldn't it display page 1.2.3 etc. coz im not getting that at the moment?

thx...

28 Jan 2009, 11:05 AM
#74
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Best sellers "page"

i cant get this light mod to work correctly.

its not fitting in my main area and its not bring in the headers. please see here.

http://www.rubberduckbathrooms.co.uk/store/index.php?main_page=best_sellers

anyhelp would be greaful. i have defo uploaded the files. this is 1.3.7


1 Feb 2009, 3:00 AM
#75
nikki72 avatar

nikki72

New Zenner

Join Date:
Dec 2008
Posts:
97
Plugin Contributions:
0

Re: Best sellers "page"

I am using the apple zen template, when the best sellers page is viewed it moves my right boxes to bottom of page. plz help
http://www.2antioch.org/store/index.php

6 Feb 2009, 1:20 PM
#76
nikki72 avatar

nikki72

New Zenner

Join Date:
Dec 2008
Posts:
97
Plugin Contributions:
0

Re: Best sellers "page"

nikki72:

I am using the apple zen template, when the best sellers page is viewed it moves my right boxes to bottom of page. plz help
http://www.2antioch.org/store/index.php

jettrue that made the apple zen template said this about my problem"
"It's not apple zen, the people who designed those mods probably forgot to wrap the pages correctly with the centerColumn wrapper. I've seen it happen a lot."

She must be real busy and hasn't had the time to give me the fix. Does anyone here know how to fix this issue?

thanks

17 Mar 2009, 4:33 PM
#77
lextechs avatar

lextechs

Zen Follower

Join Date:
Mar 2005
Location:
Tempe, AZ
Posts:
316
Plugin Contributions:
0

Re: Best sellers "page"

kitcorsa:

i cant get this light mod to work correctly.

its not fitting in my main area and its not bring in the headers. please see here.

http://www.rubberduckbathrooms.co.uk/store/index.php?main_page=best_sellers

anyhelp would be greaful. i have defo uploaded the files. this is 1.3.7

You are missing the define statements for you TABLE_HEADING_IMAGE and TABLE_HEADING_PRICE, uses the developers tool kit in admin to search for those terms then edit the file for the best seller. Hope that helps

Lextechs.com Powered By ZenCart

25 Mar 2009, 4:08 PM
#78
babyface avatar

babyface

New Zenner

Join Date:
Jan 2007
Posts:
26
Plugin Contributions:
0

Re: Best sellers "page"

Is there anyway to make this mod show best seller separated by Categories?

We have several categories and would like to display them separated.

26 Mar 2009, 11:24 AM
#79
kitcorsa avatar

kitcorsa

Totally Zenned

Join Date:
Feb 2007
Posts:
1,724
Plugin Contributions:
0

Re: Best sellers "page"

lextechs:

You are missing the define statements for you TABLE_HEADING_IMAGE and TABLE_HEADING_PRICE, uses the developers tool kit in admin to search for those terms then edit the file for the best seller. Hope that helps

i uploaded all the files as instructed, is their a missing file in the download or something??

i cant see why it isn't working


26 Mar 2009, 9:00 PM
#80
craftzombie avatar

craftzombie

Zen Follower

Join Date:
Jul 2006
Posts:
494
Plugin Contributions:
0

Re: Best sellers "page"

kitcorsa:

i uploaded all the files as instructed, is their a missing file in the download or something??

i cant see why it isn't working

Files don't always transfer properly. The file in question is best_sellers.php that is located in includes\languages\english or includes\languages\YOUR_TEMPLATE\english.

Maybe you forgot to upload it to your template folder????