Jump to content

Custom Product wizard add to cart


K3NAJ

Recommended Posts

Hello,

 

i want to create a custom module for product customization.

 

All customization are saved. How can I add the customization to cart just giving the price and the id of customization?

 

For example:

Product  costs $5.

If the customer buys 10:

10x$5 + $15 for handling.

 

Handling costs are just once. the quantity does not matter for handling.

 

Thanks for any help.

Link to comment
Share on other sites

You could do that by setting up a product as the basis for your customaziation product with a price set as basis price (in your case 5$). then when customization is made by customer you just have to send the new quantity created by your customizer app to the cart conroller. For example 10 pieces. so 10x5$ = 50$

 

Shipping and handling costs are done within shipping setting in prestashop. As I understood there is nothing to customize.

 

But it would be intereseting to know how you save your customization settings? Have created a cutom table in database? How you let your customers customize their products? By HTML form or by javascript or maybe by PHP? How you send data to save in databse?

Link to comment
Share on other sites

Hey,

 

thank you for your answer.

I've already tried this shipping thing, but i didnt work. The handling costs depend on user customization.

I've created a custom table and save all changes via ajax/php.

Link to comment
Share on other sites

  • 2 weeks later...

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...