Jump to content

Save Customized Product Form When User Adds To Cart


Recommended Posts

I created a module that adds a form to the product page.  I used the module generator to create a basic bare-bones module.  It doesn't do anything except add a form via a hook.

I am using the default-bootstrap theme.

 

The form is dynamically generated via a .tpl file that is based on the products category (i.e. if it's in category A, then it shows form A).

 

The form is 3 text inputs.  If the user changes the quantity, a form is added accordingly via javascript (so if the user changes the quantity to '2', then 2 small forms appear for customization on each product).

 

I would like some guidance on saving these inputs and the information the user has entered when the user clicks 'add to cart' so that it may be retrieved / edited later (before the user checks out).

 

What is the best way to do that?

 

Ultimately I would like it to be included on the order (obviously) and saved to the database with that order for future use.

 

I know the plugin Attribute Wizard Pro exists - but I'm looking to expand my knowledge and make something on my own.

 

If there are other ways to go about this that would be cleaner/easier I'm open to those suggestions as well.

post-1158760-0-88369300-1451403354_thumb.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...