Jump to content

How to make a customer create a new product from a custom page and add it to the cart?


kaamyi

Recommended Posts

Hello there !

I am trying to develop on PS 1.6 a custom page where a customer could create a new product from a form and then add it to the cart.

Let's say for example, i am selling woodcrafts and i want my customers to fill a form where they need to specify the type of wood, dimensions, ...
Depending on these criterias, the price would be modified and it will create a "final" product that will be added to the customer's cart.

I know how i will develop the form and i think i can add the product to the cart with updateQty() from Cart.php but how do i instanciate my product from the data i get from the form? I am trying to search through all files but i can't seem to find where new products are instanciated from.

Thanks in advance for the help

Edited by kaamyi (see edit history)
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...