Print Page | Close Window

custom search field at viecategories page

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=3721
Printed Date: 19-July-2025 at 8:32am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: custom search field at viecategories page
Posted By: Tzur-pc
Subject: custom search field at viecategories page
Date 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.



Replies:
Posted By: RedLeafDev
Date Posted: 20-May-2010 at 4:25pm
Hi Yossi,
 
Are you talking about the "Drill down navigation widget"? If so, read this: http://wiki.earlyimpact.com/productcart/search_fields_widget - http://wiki.earlyimpact.com/productcart/search_fields_widget
 
If not, could you please be more specific about what you are trying to accomplish?
Amy


-------------
http://www.redleafdevelopment.com" rel="nofollow - Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com


Posted By: Tzur-pc
Date Posted: 21-May-2010 at 12:50am
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


Posted By: RedLeafDev
Date Posted: 21-May-2010 at 3:33pm
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


-------------
http://www.redleafdevelopment.com" rel="nofollow - Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net