Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Customization
 Top Seller List Question
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Packard40
Starting Member

USA
15 Posts

Posted - June 04 2006 :  21:27:44  Show Profile  Reply with Quote
If I am correct, it appears the Top Seller list displays data form the "cname" field in our database.

What change is needed to modify the Top Seller list to display the "cdescription" field?

Thanks, Respectfuly, Marshall

Scooter
VP-CART New User

USA
102 Posts

Posted - June 04 2006 :  22:43:56  Show Profile  Reply with Quote
Hi Packard40,

You can change this but it looks a bit tricky.

If you open shopproductsubs.asp and do a search on the word cname you will locate in the sub routine "TopTenProduceDetail" the cname references you need to look at.

There are a number of them as the translation function is also in here for the cname.

I have not tried this but you could try altering the cname referneces within this sub routine from cname to cdescription and seeing if this works.

Let us know how you go as it would be interesting to see if it works.

Cheers,
S

Go to Top of Page

Packard40
Starting Member

USA
15 Posts

Posted - June 05 2006 :  01:04:40  Show Profile  Reply with Quote
Dear Scooter...

Yes, it was a bit tricky. Worked perfectly!

For others: I copied and pasted the "TopTenProduceDetail" sub-routine from shopproductsubs.asp into a new text file; Next I did a search for "cname" and replaced it with "cdescription"; Lastly I pasted the routine back into shopproductsubs.asp and moved it to my server.

Thank you very much!!
Respectfully, Marshall...
Go to Top of Page

devshb
Senior Member

United Kingdom
1904 Posts

Posted - June 05 2006 :  03:51:06  Show Profile  Visit devshb's Homepage  Reply with Quote
In case anyone wants an easier-to-change/add top-seller function, our "product showcase" addon comes with a top-seller function where you can use different templates for each call, and have lots of other options on it too:

http://www.bigyellowzone.com/shopexd.asp?id=105

Simon Barnaby
Developer
[email protected]
www.BigYellowZone.com
Web Design, Online Marketing and VPASP addons
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00