VP-ASP :: Shopping Cart Software

Shopping Cart Software Solutions for anywhere in the World

US/Canada(Toll Free): +1 888 587 2278
Europe/UK: +44 (020) 7193 9408
Australia/New Zealand: +61 3 9016 4497

VP-ASP Shopping Cart Customer Forum

Home | Profile | Register | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 General help me questions
 Editing top sellers list
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

22 Posts

Posted - April 05 2012 :  18:04:50  Show Profile  Reply with Quote
I have various categories on my online store. For each category I have a list of top sellers appear next to the extended description listing of each product. Is there a way to edit the top sellers list so that we can prevent an item from showing up in the top sellers list while allowing that item to be visible/searchable on the website?

The only way I could find was to use the "Hide" field in Product Admin but that way prevents the product from showing up on the website unless someone has a direct link.

VP-ASP Super User

209 Posts

Posted - April 09 2012 :  20:32:12  Show Profile  Reply with Quote

I would suggest to check NavigateTopSeller routine in shopproductsubs.asp or perhaps shoptopsellers.asp file. As I think you might need to change the default code.

Alternatively, you could use the Featured Products option, as this will allow you to set certain products in the list.

Hope this helps!
Go to Top of Page

VP-ASP Expert

United Kingdom
948 Posts

Posted - April 10 2012 :  04:03:16  Show Profile  Reply with Quote
The only way to stop certain products from showing up on a top sellers list is to add a piece of code to shopproductsubs.asp
Here's how.
First choose an empty field in the products table eg pother3 (or create a new column) For any product that you do NOT want to show up in the top sellers list add No to this field.
In shopproductsubs.asp find the follwoing sub routine:
Sub TopTenProduceDetail (dbc,rs)Then find these lines:
if cint(dbproductstock) <= cint(stocklowlevel) then
hideprod = true
end if

and add the following code:
' *** 10.04.2012 Stop certain products from displaying in topsellers by using products pother3 field
dim showInTopTen
showInTopTen = prs("pother3")
if showInTopTen="No" then
hideprod = true
end if

Save, close and test.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000