![]() |
custom search field at viecategories page |
Post Reply ![]() |
Author | |
Tzur-pc ![]() Newbie ![]() ![]() Joined: 01-March-2007 Location: Israel Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() Posted: 18-May-2010 at 5:18am |
Hi,
maybe some one can help me with that one... i want to add the custom search fields to my products in viewcategories. i find in viewprdcode: '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' START: Show Custom Search Fields '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Public Sub pcs_CustomSearchFields Dim query,rs,pcArr,intCount,i query="SELECT pcSearchFields.idSearchField,pcSearchFields.pcSearchFieldName,pcSearchData.idSearchData,pcSearchData.pcSearchDataName,pcSearchData.pcSearchDataOrder FROM pcSearchFields INNER JOIN (pcSearchData INNER JOIN pcSearchFields_Products ON pcSearchData.idSearchData=pcSearchFields_Products.idSearchData) ON pcSearchFields.idSearchField=pcSearchData.idSearchField WHERE pcSearchFields_Products.idproduct=" & pIdProduct & " AND pcSearchFieldShow=1 ORDER BY pcSearchFields.pcSearchFieldOrder ASC,pcSearchFields.pcSearchFieldName ASC;" set rs=connTemp.execute(query) IF not rs.eof THEN pcArr=rs.getRows() set rs=nothing intCount=ubound(pcArr,2) response.Write("<div style='padding-top: 5px;'></div>") For i=0 to intCount response.write "<div class='pcShowProductCustSearch'>"&pcArr(1,i)&": <a href='showsearchresults.asp?customfield="&pcArr(0,i)&"&SearchValues="&Server.URLEncode(pcArr(2,i))&"'>"&pcArr(3,i)&"</a></div>" Next END IF set rs=nothing End Sub '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ' END: Show Custom Search Fields '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ but i dont know where to put this lines in viewcategories. thank you very much for helping me. Yossi. |
|
![]() |
|
RedLeafDev ![]() Certified ProductCart Developers ![]() Joined: 12-January-2010 Location: Portsmouth, NH Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() |
Hi Yossi,
Are you talking about the "Drill down navigation widget"? If so, read this: http://wiki.earlyimpact.com/productcart/search_fields_widget
If not, could you please be more specific about what you are trying to accomplish?
Amy
|
|
![]() |
|
Tzur-pc ![]() Newbie ![]() ![]() Joined: 01-March-2007 Location: Israel Status: Offline Points: 0 |
![]() ![]() ![]() ![]() ![]() |
Hi' thanks for your reply.
when you use the drill down nav, you can show the product's result's at the viewprd.asp page like this: if the result that you have for screen with - size:20", res.:1680x1050,barnd:LG ![]() i want to add this to the produt at view categories page here: ![]() also i want to add the produt rating (from the reviews) to there. i want the product in viewcategories to look like this: image, price, short description, add to cart and detail buttons, rating of the product (3 star/5 star/1.5 star) and the product main features (from the drill down results). hope you understend. thanks |
|
![]() |
|
RedLeafDev ![]() Certified ProductCart Developers ![]() Joined: 12-January-2010 Location: Portsmouth, NH Status: Offline Points: 28 |
![]() ![]() ![]() ![]() ![]() |
Hi Yossi,
You can't just drop these lines into the viewCategories.asp page for 2 reasons:
1) This is a subroutine - which means that you need to make the call to it. Or, remove the Public Sub and End Sub lines and then you can place it in the code where you want it.
2) The categories page pulls multiple products - so you will have to make sure that you include this code in the do while... next loop.
Good luck - let us know if you need help customizing this.
Amy
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() 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 |