ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Custom Search - sql query
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom Search - sql query

 Post Reply Post Reply
Author
Message
austcold View Drop Down
Groupie
Groupie


Joined: 29-May-2008
Location: Australia
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote austcold Quote  Post ReplyReply Direct Link To This Post Topic: Custom Search - sql query
    Posted: 14-November-2008 at 1:19am
I have upgraded to the latest Product Cart version 3.5.

I created a custom search field called"Model Number" and enter a model number for that product.

I am trying to create a drop menu using the "model number data" as dynamic data and filtered by the brand. The reason for this is that the list of models for all brands has to many entries to sort through.

I have worked out that I can create a drop menu for all model numbers by using the table "pcSearchData" selecting the "pcSearchDataName" and filtering it with "idSearchField" =1 (which is the ID key for my custom field "Model"), becouse all custom field data is in the same table and field.

The SQL query looks like this,

SELECT pcSearchDataName
FROM dbuser.pcSearchData
WHERE idSearchField = 1

? How can I filter further using the "Brand"

? can it be done with just a query or do tables need to be modified?

www.austcoldindustries.com.au

Back to Top
austcold View Drop Down
Groupie
Groupie


Joined: 29-May-2008
Location: Australia
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote austcold Quote  Post ReplyReply Direct Link To This Post Posted: 16-November-2008 at 6:03pm
? Is there a tool to track the "pcdataName" field relationship back to the "products" Table.

? Does ProductCart have this information available to us.

If I new the path I should be able to create the query without to much trouble, I think?

Currently trying "SQL Maestro" which appears to be pretty good with mssql databases.



Please help.
www.austcoldindustries.com.au

Back to Top
benpate View Drop Down
Groupie
Groupie
Avatar

Joined: 15-February-2007
Location: United States
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote benpate Quote  Post ReplyReply Direct Link To This Post Posted: 11-December-2008 at 9:05pm
You should be able to do this with just a query. A stored procedure with two variables should work.
ProductCart SEO - Resellers and Affiliates welcome
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.015 seconds.