Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show the result of combinations #2

Closed
santoshmaharjan opened this issue Dec 9, 2015 · 1 comment
Closed

Show the result of combinations #2

santoshmaharjan opened this issue Dec 9, 2015 · 1 comment

Comments

@santoshmaharjan
Copy link

Hi Sebastian,

How do I show the result of the individual combinations using ajax. For example:
Jeans > Lewis > Black > 7 --> $50
Shoes > Vans > Black > 8 --> $45 etc
I want to show the result in the place where it says "To see results please make your selection using menus above."

Thanks for the wonderful script.

@sebastiansulinski
Copy link
Owner

Hi @santoshmaharjan,

You'd have to fetch them from within the file that you make the call to based on the parameters you're sending. Examples make calls to the static .json files /data/colour.json?category=2&make=1, but you can make it to say php page, which takes arguments category=2&make=1 and based on that selection fetches the records, formats them in the correct format and returns as a replacement json index back to javascript to replace the content. I hope this makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants