• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

sarahfsd
#1 Posted : Saturday, September 8, 2007 1:53:48 AM(UTC)
sarahfsd

Rank: Member

Joined: 8/28/2007(UTC)
Posts: 36

Hi

I am creating a template for BVC5, and I want to display "Hot products" in a category page. Each category ould display its own hot products(the produsts which are sold more).I want to display These products on the each category page, on the right side of the page either in a list view or grid view. Is it possible

Thanx!
CorneliuTusnea
#2 Posted : Saturday, September 8, 2007 7:00:54 AM(UTC)
CorneliuTusnea

Rank: Member

Joined: 8/17/2006(UTC)
Posts: 681

Sarah,
It should be pretty simple. Duplicate and rename the folder for the Top 10 Products. Duplicate and rename the [bvc_Product_ProductsOrderedCount_s] store procedure.
Add a new param to the sp to represent the current category bvin and use that in an extra join with the ProductXCategory and Category tables and filter by the category bvin.
The update the code for the new page (View.vb from your new folder) to use the new sp and pass to it the current category.
The SP would be something like:
Select ....
From bvc_lineItem L
Join bvc_Product p on l.ProductId = p.bvin
join bvc_ProductXCategory pxc on pxc.productbvin = p.bvin
join bvc_Category c on c.bvin = pxc.categorybvin
where l.OrderBvin IN (....)
AND c.bvin = @currentCategoryID.
I hope I make sense and my sql coded in a textbox is close enough to what you need.
Regards,
Corneliu.
http://www.bestgames.com.au
http://www.bestchess.com.au



BV Product Links, Details and Signatures: Improve your customer experience:

http://www.acorns.com.au/projects/bv/quicklink/

Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012