Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Best Sellers Table?

    Simple question, is there a separate table in the database that holds best sellers information? If so, which table is it. If not, where is this data stored?

    Thanks.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,336
    Plugin Contributions
    1

    Default Re: Best Sellers Table?

    I think it is automatically generated from order_products table. If you look into the code of the best seller box you would understand how it is generated.

  3. #3
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Best Sellers Table?

    Quote Originally Posted by CoolCarPartsOnline View Post
    I think it is automatically generated from order_products table. If you look into the code of the best seller box you would understand how it is generated.
    Ok thanks, I'll try that.

  4. #4
    Join Date
    Dec 2008
    Posts
    55
    Plugin Contributions
    0

    Default Re: Best Sellers Table?

    Quote Originally Posted by games4gamers View Post
    Ok thanks, I'll try that.
    Okay I looked and found this:

    \includes\modules\sideboxes\best_sellers.php
    Line 68: $bestsellers_list[$rows]['id'] = $best_sellers->fields['products_id'];
    Line 69: $bestsellers_list[$rows]['name'] = $best_sellers->fields['products_name'];
    \includes\templates\template_default\sideboxes\tpl_best_sellers.php (4 hits)
    Line 14: for ($i=1; $i<=sizeof($bestsellers_list); $i++) {
    Line 15: $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
    Line 15: $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";
    Line 15: $content .= '<li><a href="' . zen_href_link(zen_get_info_page($bestsellers_list[$i]['id']), 'products_id=' . $bestsellers_list[$i]['id']) . '">' . zen_trunc_string($bestsellers_list[$i]['name'], BEST_SELLERS_TRUNCATE, BEST_SELLERS_TRUNCATE_MORE) . '</a></li>' . "\n";

 

 

Similar Threads

  1. v151 Best Sellers
    By Andy-C27 in forum General Questions
    Replies: 5
    Last Post: 22 Jan 2013, 01:48 AM
  2. Best Sellers
    By purecp in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Sep 2010, 02:11 AM
  3. Best Sellers
    By crichw in forum General Questions
    Replies: 7
    Last Post: 3 Jul 2008, 12:51 PM
  4. Best Sellers
    By PeteAUK in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 13 Jun 2007, 01:16 PM
  5. Best Sellers
    By jovemac in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2006, 11:34 PM

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