Jump to content

Save additional field from product page in database


ramin

Recommended Posts

I have Added 2 text box in product page to recive height an width from user for each product.

I have used textbox input just like quantity in The buy-block Form.

Now I want to save this textboxs in Database and use them in cart page and order page for each cart and product.

I added 2 variable in cartcontroller.php like $qty in function preProcess() .

Now how can I save them in DB?

Link to comment
Share on other sites

did you consider just using custom fields for your product?

 

not sure what ps version but you can add custom fields by editing the product in your back office. It won't check the input values but it carries the values throughout check out and stores in your db.

  • Like 2
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...