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

Best sellers "page"

Views: 20,057

Results 41 to 60 of 93
27 Feb 2008, 10:20 AM
#41
rlparker avatar

rlparker

New Zenner

Join Date:
Jan 2008
Posts:
45
Plugin Contributions:
0

Best sellers "page"

hi,

on the normal categories the table headers (product name, manufacturer etc) work as filters for the search results. e.g to order by lowest price

http://absholdings.bpweb.net/index.php?main_page=index&cPath=2

On the best sellers page they are just plain text and no longer work as filters

http://absholdings.bpweb.net/index.php?main_page=best_sellers

hope that makes more sense!

4 Mar 2008, 9:03 PM
#42
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Best sellers "page"

You may want to try the latest version here:

https://svn.rubikintegration.com/zencart_mods/best_sellers_mod/

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

13 Mar 2008, 6:17 PM
#43
humdaddy avatar

humdaddy

New Zenner

Join Date:
Nov 2007
Posts:
66
Plugin Contributions:
0

Re: Best sellers "page"

Glad to have this mod. Here's a couple of things I found:

  1. The "languages" is named "laguages" so add an n to correct:
  2. here's the info for the best_sellers.ph p file to add manufacturer, image and price.
<?php /** * Best Sellers Alpha 1 */ define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('FILENAME_BEST_SELLERS', 'best_sellers'); define('BEST_SELLERS_SHOW_OUT_OF_STOCK', false); define('TABLE_HEADING_BEST_SELLERS', 'Best Sellers'); define('TABLE_HEADING_IMAGE', 'Image'); define('TABLE_HEADING_PRICE', 'Price'); ?>

Also, not sure how to fix but the manufacturer header appears without the manufacturer being listed underneath.

13 Mar 2008, 7:53 PM
#44
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Best sellers "page"

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

14 Mar 2008, 8:34 AM
#45
berserker avatar

berserker

Totally Zenned

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

Re: Best sellers "page"

Hello,

Is there a coming soon version or can I turn this into coming soon?

Thx

14 Mar 2008, 4:59 PM
#47
yellow1912 avatar

yellow1912

Totally Zenned

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

Re: Best sellers "page"

No, not now.

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

29 Apr 2008, 8:53 PM
#48
boggled avatar

boggled

Zen Follower

Join Date:
Mar 2006
Location:
Tennessee
Posts:
286
Plugin Contributions:
0

Re: Best sellers "page"

craftzombie:

Since I have no clue how to go about doing what you suggested, I decided to be sneaky and I did this instead:

  1. Made a copy of tpl_modules_product_listing.php and renamed it tpl_modules_product_listing2.php

  2. changed tpl_best_sellers_default.php to show tpl_modules_product_listing2.php

  3. removed productsListingTopNumber and productsListingListingTopLinks from tpl_modules_product_listing2.php and replaced them by manually adding links to
    main_page=best_sellers
    main_page=best_sellers&page=2

So now I am only showing them 30 of the bestsellers, even though the file is actually bringing up over 1200. Unfortunately, by doing it this way you cannot tell which page you are on unless you look at the web address in the top of your browser. But with only 2 pages, I don't think thats a big deal.

Its enough to make me shut up about this and move on to something else!

Thanks for all of your help.

I was having the same problem and used your solution with a minor edit and it worked great for me. I completely removed the productsListingBottomNumber and productsListingListingTopLinks (as well as the BottomNumber/Links) and now it displays just one page with my top 15 Best Sellers.

I also made another small change and made the Best Sellers sidebox header a clickable link leading to this page like Featured Products and New Products.

To do this, go to:

**/public_html/includes/modules/sideboxes/best_sellers.php

FIND (on or about line 75):

  $title =  BOX_HEADING_BESTSELLERS;

ADD AFTER IT:

  $title_link = FILENAME_BEST_SELLERS;**

Works like a charm!

Great mod! Many thanks to yellow1912! :thumbsup:

I'll finish that project tomorrow, I've made enough mistakes today!

22 May 2008, 10:40 PM
#49
berserker avatar

berserker

Totally Zenned

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

Re: Best sellers "page"

Can i have the top 100 only?

29 Jun 2008, 4:12 AM
#50
james739 avatar

james739

Zen Follower

Join Date:
Jun 2007
Posts:
210
Plugin Contributions:
0

Re: Best sellers "page"

sidebox images are not showing on clients website. How can I fix this?
Thanks!
https://www.designerfaves.com

10 Jul 2008, 11:37 AM
#51
davidrushton avatar

davidrushton

New Zenner

Join Date:
Jul 2008
Posts:
8
Plugin Contributions:
0

Re: Best sellers "page"

I would really appreciate if anyone can provide me with some help.

I am in the process of adding an AJAX tab section to my page (similar to the tabbed box on the right of bbc.co.uk) to contain things such as Featured Products, Best Sellers, etc..

The only problem is that I don't know how to get something like Best Sellers into the box for that tab in a plain style (without getting all of the site template along with it).

Can anyone help me?

Thanks,

David.

10 Jul 2008, 2:02 PM
#52
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Best sellers "page"

davidrushton:

I am in the process of adding an AJAX tab section to my page (similar to the tabbed box on the right of bbc.co.uk) to contain things such as Featured Products, Best Sellers, etc..

The only problem is that I don't know how to get something like Best Sellers into the box for that tab in a plain style (without getting all of the site template along with it).You will need to write a server side handler based on the bestsellers sidebox module to query the database and format the result into the html that you want to return and then invoke that handler via your AJAX call.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

12 Jul 2008, 12:38 AM
#53
lissae avatar

lissae

Totally Zenned

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

Re: Best sellers "page"

I added this mod and uploaded it all just as is (changing my custom folder name though lol) The only thing I changed was to add a define for no products, because that's exactly what it is telling me....I do have bestsellers but none are showing on the page, can anyone help?

http://havendesignz.com/store/index.php?main_page=best_sellers

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

12 Jul 2008, 12:50 AM
#54
lissae avatar

lissae

Totally Zenned

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

Re: Best sellers "page"

Just to let everyone know this was a simple fix once I thought about it properly LOL

To list only in-stock products, open includes/languages/english/extra_datafiles/your_template/best_sellers.php
set BEST_SELLERS_SHOW_OUT_OF_STOCK to false

My store is all downloadable products so I have the stock count disabled, I set it to true in this file and there they all appeared LOL :)

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

12 Jul 2008, 6:40 AM
#55
lissae avatar

lissae

Totally Zenned

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

Re: Best sellers "page"

Ok, I have just noticed that the best sellers page is pulling up ALL my products and not only the purchased ones, though the most purchased ones do seem to be at the top.... how can I fix this?

I have 36 that have been purchased, and a total of 65 in store which is the total that shows on Bestsellers page

http://havendesignz.com/store/index.php?main_page=best_sellers

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

12 Jul 2008, 12:18 PM
#56
lissae avatar

lissae

Totally Zenned

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

Re: Best sellers "page"

I think I managed to fix this without breaking it LOL, I downloaded and looked at the Bestsellers Reloaded Mod, and noticed one line in how the data was pulled from the database (I am assuming LOL some things I am still taking a HUGE learning leap on!)

In includes/modules/pages/best_sellers/header_php.php at around line 32 find this line:

WHERE p.products_status = 1

and add in directly after it:

AND p.products_quantity > 0

This changed the bestseller number count to the number of products that show as having been purchased in Admin, so hopefully I fixed it the right way LOL

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

20 Jul 2008, 8:30 AM
#57
adamlop avatar

adamlop

New Zenner

Join Date:
Feb 2005
Posts:
6
Plugin Contributions:
0

Re: Best sellers "page"

How to "limit". Please. This show me all of the products in shop.

20 Jul 2008, 8:00 PM
#58
lissae avatar

lissae

Totally Zenned

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

Re: Best sellers "page"

adamlop:

christon26:

I think I managed to fix this without breaking it LOL, I downloaded and looked at the Bestsellers Reloaded Mod, and noticed one line in how the data was pulled from the database (I am assuming LOL some things I am still taking a HUGE learning leap on!)

In includes/modules/pages/best_sellers/header_php.php at around line 32 find this line:

WHERE p.products_status = 1

and add in directly after it:

AND p.products_quantity > 0

This changed the bestseller number count to the number of products that show as having been purchased in Admin, so hopefully I fixed it the right way LOL

You will also need to add in the same line around line 20 so that your header_php.php looks like this:

<?php
/**
 * Best Seller Page
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * $Id: header_php.php 165 2008-03-21 04:21:50Z yellow1912 $
 */ 
require(DIR_WS_MODULES . zen_get_module_directory('require_languages.php'));
$breadcrumb->add(NAVBAR_TITLE);
$disp_order_default = PRODUCT_ALL_LIST_SORT_DEFAULT;
require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_LISTING_DISPLAY_ORDER));
$order_by = !empty($order_by) ? ','.trim(str_replace("order by","",$order_by)) : $order_by;

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_quantity > 0
                             AND p.products_id = pd.products_id
                             AND pd.language_id = :languageID " . 
                             "order by p.products_ordered desc ". $order_by;
}

$listing_sql = $db->bindVars($listing_sql, ':languageID', $_SESSION['languages_id'], 'integer');

//check to see if we are in normal mode ... not showcase, not maintenance, etc
$show_submit = zen_run_normal();
$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,
'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,
'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,
'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,
'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,
'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,
'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE);

/*                         ,
'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);
*/
asort($define_list);
reset($define_list);
$column_list = array();
foreach ($define_list as $key => $value)
{
    if ($value > 0) $column_list[] = $key;
}
?>

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

23 Jul 2008, 4:32 AM
#59
lissae avatar

lissae

Totally Zenned

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

Re: Best sellers "page"

Hi, I have two more questions for this mod LOL

  1. the bestsellers page uses the same listing display as my categories which with the mod I am using for that is the columns, would it be easy enough to change it to use the same listing display as the All Products, New Products etc page and if so how do I make those changes?

  2. Is it possible to have the individual products display how many times it has been purchased? I know this would have to pull up data from the database somehow, but I don't know how LOL

For example to have it like this:

1st column
Image

2nd column
Product Name
Price
Description
Purchased X times

Something like that?

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

31 Jul 2008, 3:15 PM
#60
abcoombe avatar

abcoombe

New Zenner

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

Re: Best sellers "page"

Okay, I followed the directions posted, but my best sellers page is still showing ALL of my products, with my actual bestsellers appearing at the very top. I added in AND p.products_quantity > 0 at line 21 on my header_php.php file... Any other advice?

Thanks!

http://www.theshoppingboutique.com/?main_page=best_sellers