Ajax Product Customization Form
I’m trying to create a 4-step product customization form using WordPress and Ajax. Here is an outline of the process:
Step 1: Choose your style
Step 2: Choose a fabric type
Step 3: Choose some accessories
Step 4: Order your product
I’ve customized my theme to create custom post_types for Styles, Fabrics and Accessories. I then have a custom Page template that loops through my Styles, with ajax pagination.
Each “style” post has a Select button that makes an ajax call to another php file that queries my DB for that post ID and returns the title and price of that selection to a “cart” which will eventually become Step 4.
And that’s as far as my knowledge gets me.
Question 1: Is it possible to change my WP_Query to call a different post_type in my Page template when my ajax completes?
Question 2: If not, what is the best way for me to get to Step 2?
- The topic ‘Ajax Product Customization Form’ is closed to new replies.