ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - custom search field at viecategories page
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

custom search field at viecategories page

 Post Reply Post Reply
Author
Message
Tzur-pc View Drop Down
Newbie
Newbie
Avatar

Joined: 01-March-2007
Location: Israel
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tzur-pc Quote  Post ReplyReply Direct Link To This Post Topic: custom search field at viecategories page
    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.
Back to Top
RedLeafDev View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 12-January-2010
Location: Portsmouth, NH
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedLeafDev Quote  Post ReplyReply Direct Link To This Post 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
 
If not, could you please be more specific about what you are trying to accomplish?
Amy
Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com
Back to Top
Tzur-pc View Drop Down
Newbie
Newbie
Avatar

Joined: 01-March-2007
Location: Israel
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tzur-pc Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
RedLeafDev View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 12-January-2010
Location: Portsmouth, NH
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedLeafDev Quote  Post ReplyReply Direct Link To This Post 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
Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.061 seconds.