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
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VPCart Forum
 Customization
 Need to view/sort products by Price, Color, etc.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

keng
VP-ASP New User

152 Posts

Posted - May 14 2005 :  17:57:07  Show Profile  Reply with Quote
Hi,

I would like to give my customers the ability to view/sort the products by price (lowest to highest, or vice versa), by name, color, etc (not necessarily in those options but something to that effect).

Is this even possible in VPASP? Look at zappos for example. There's so much flexibility to view their products.

http://www.zappos.com/n/es/d/722000271.html


support
Administrator

4266 Posts

Posted - May 15 2005 :  23:38:38  Show Profile  Visit support's Homepage  Reply with Quote
If you set xproductfiltering then a filtering table will display at the bottom of shopdisplayproducts.asp allowing customers to sort products by name and price.

VP-ASP Support

Go to Top of Page

keng
VP-ASP New User

152 Posts

Posted - May 16 2005 :  00:22:53  Show Profile  Reply with Quote
Hi Support,

Thanks! That works.... this is just what I need. I have a question though...

At the table that showed up, there is "Sort", "Sort2" and "Display". Why do I need two "Sorts". It would be just simple to have "Sort" and "Display". Can you please explain or let me know how I could get rid of "Sort 2"? Thanks!

Go to Top of Page

keng
VP-ASP New User

152 Posts

Posted - May 16 2005 :  21:25:09  Show Profile  Reply with Quote
Hi,

I need somebody to please help me do it. Below is support's answer to my question but I don't have asp programming knowledge. Can somebody please tell me what I should do remove the table "Sort 2" Thanks!
________________________________________________________________
You would need to do some basic modifications to the Displayfiltering
subroutine in shopdisplayproducts.asp to remove the second sort column.

You should be able to find the places that need to be modified by just
searching for "2" in this subroutine.



Go to Top of Page

dcwebman
VP-ASP New User

USA
127 Posts

Posted - May 17 2005 :  07:39:11  Show Profile  Reply with Quote
In shopdisplayproducts.asp, make your sub Displayfiltering look like this. Note: all I did was comment out lines by putting a ' at the beginning.


Sub Displayfiltering
' debugwrite "In display displayfieldcount=" & displayfieldcount
response.write "<form name=filter action='shopfiltering.asp' method=post>"
Response.write Productfilteringtable
Response.write productfilteringrow
Response.write productfilteringcolumn & getlang("langEditSort") & Productfilteringcolumnend
'Response.write productfilteringcolumn & getlang("langEditSort") & " 2" & Productfilteringcolumnend
Response.write productfilteringcolumn & getlang("langEditDisplay") & Productfilteringcolumnend
Response.write "</tr>"
Response.write productfilteringrow
Response.write ProductFilteringColumn
response.write " "
generateSelectV sortcaptions,sortnames,sortfield,"sortfield", sortcount, getlang("langCommonSelect")
Response.write "</p><p align='center'> "
GenerateSelectV Sortupdownnames,Sortupdownvalues,sortupdown,"sortupdown", sortupdowncount,""
response.write Productfilteringcolumnend
'Response.write ProductFilteringColumn
'response.write " "
'GenerateSelectV sortcaptions,sortnames,sortfield2,"sortfield2", sortcount, getlang("langCommonSelect")
'response.write "</p><p align='center'> "
'GenerateSelectV Sortupdownnames,Sortupdownvalues,sortupdown2,"sortupdown2", sortupdowncount,""
'response.write Productfilteringcolumnend
Response.write ProductFilteringColumn
GenerateSelectV yfieldcaptions,yfieldnames,SelectField,"SelectField", yfieldcount, getlang("langCommonSelect")
response.write "<br>"
Response.write "<input type='text' name='SelectValue' size='20'>"
response.write Productfilteringcolumnend
response.write "</tr>"
Response.write productfilteringrow
'Response.write ProductFilteringColumn
'response.write Productfilteringcolumnend
Response.write ProductFilteringColumn
If getconfig("Xbuttonreset")="" then
Response.Write("<input type=reset value=""" & getlang("langCommonReset") & """>")
else
Response.Write("<img src='" & getconfig("xbuttonreset") & "' onclick='document.filter.reset()'>")
end if
response.write Productfilteringcolumnend
Response.write ProductFilteringColumn
shopbutton getconfig("xbuttoncontinue"),getlang("langCommonContinue"),"action"
response.write Productfilteringcolumnend
Response.write "</tr>"
response.write "</table>"
response.write "</form>"
end sub



Go to Top of Page

keng
VP-ASP New User

152 Posts

Posted - May 17 2005 :  20:23:19  Show Profile  Reply with Quote
Thank You! It works!

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