CRE Loaded Community

Banner


Board index » Web Design and Development » Development Discussions

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Best Sellers: not showing sub products
PostPosted: Sat Dec 04, 2010 6:44 am 
Offline
CRE Newbie

Joined: Mon Oct 18, 2010 11:14 am
Posts: 17
Hi. I am using 6.4.1 B2B.

The 'Best Sellers' infobox scrolls products but not sub-products.

Most of our items are indeed sub-products (based on size, colour etc), so this is misleading for customers.

Does anybody know how to make all products, including sub-products show up on the list?

Thanks.

Paul (in Dubai)


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Sun Dec 05, 2010 8:12 pm 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
Well sub products are real products just set inactive and assigned to a parent

Not only will they not show there, they will not show in site searches

to fix the first
open up includes/classes/box_best_sellers_scroll.php

here is where the database is queried to see whats items have been the best sellers

You can either just change (in two places)
Code:
WHERE p.products_status = 1

to
Code:
WHERE p.products_status = 0


That works.. but allows ALL product in stock/on/off/subs to be listed.. which will work for most.. but for those who have inactive products that have been bestsellers in the past, a product not found will likely return when clicked on

Let me know if you need something custom to hide inactives.. but show subs

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Mon Dec 06, 2010 1:53 am 
Offline
CRE Newbie

Joined: Mon Oct 18, 2010 11:14 am
Posts: 17
Thank you Jason.

That has worked partially. The sub products are now scrolling fine, but the products themselves have now disappeared. Is there something I need to tweek to make all products (both products and sub products) appear?

Thanks a lot.

Paul (in Dubai)


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Mon Dec 06, 2010 10:28 am 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
Opps

just delete the lines
Code:
p.products_status = 0

and the and below

so it starts as
Code:
WHERE p.products_ordered > 0

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Mon Dec 06, 2010 11:53 pm 
Offline
CRE Newbie

Joined: Mon Oct 18, 2010 11:14 am
Posts: 17
Great Jason! That has fixed it.

Thank you very much.

Paul (in Dubai)


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Tue Dec 07, 2010 1:21 am 
Offline
CRE Newbie

Joined: Mon Oct 18, 2010 11:14 am
Posts: 17
oh oh - I may have spoken too soon.

I notice now that new sub-product best seller items are being added to the scrolling list fine - but new best seller PRODUCTS are NOT being added to the scrolling list.

(I have looked at the code, but as a php beginner I can't figure it out.)

Thanks.

Paul (in Dubai)


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Tue Dec 07, 2010 10:13 am 
Offline
CRE Legend
User avatar

Joined: Fri Jan 13, 2006 1:00 am
Posts: 11084
Location: Nappanee Indiana
make sure both places p.products_status = 0 is removed

_________________
Jason Miller
https://www.creloadedexpert.com
CRE Loaded Expert Team
CRE Loaded Support
Home of the FIRST 100% tableless CRE Loaded template


Top
 Profile  
 
 Post subject: Re: Best Sellers: not showing sub products
PostPosted: Fri Dec 10, 2010 8:46 am 
Offline
CRE Newbie

Joined: Mon Oct 18, 2010 11:14 am
Posts: 17
Hi,

I have removed the 2 lines you mention, and now both products and sub-products are scrolling happily. You were right. There are some previous items I entered when making dummy purchases at testing stage, but I have reduced the maximum number of scrolling items to 3 and these older items will slowly get pushed down the list and disappear.

Jason, thank you very much for your help and time!

Paul (in Dubai)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Board index » Web Design and Development » Development Discussions

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
It is currently Thu May 17, 2012 8:28 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

© CRE Loaded is a product of Chain Reaction Ecommerce, Inc. Usage & Privacy Policy