Jump to content

Create Products Dynamically


Cyburg

Recommended Posts

Hi all,

 

I am in need of some advice from those who know Prestashop far better than me: we offer our customers custom cut products from various materials. On our existing platform (oscommerce) I have written some code which dynamically prices those custom cut products from a web form, and adds the resultant product to the shopping cart.

 

I can recreate the code which prices the products from our database tables with a module on Prestashop, no problem there. What I need is any useful advice anyone may have about creating a product object for the cart, which does not exist in the product catalogue. Is this likely to be possible, as it was with oscommerce?

 

 

Cheers,

Paul

Link to comment
Share on other sites

So if I understand correctly, what you are doing is dynamically price a product after some user customization and add it to the cart. Then you want to "mock" that product so, if someone else changes its price with different customizations, the one added to the cart by the first customer is not changed. Is this right?

Link to comment
Share on other sites

Hi Gonssal,

 

Thank you for your reply. Yes, you have hit the nail on the head, that is exactly what I am trying to achieve.

 

I have since seen a couple of modules that offer similar functionality (volume based material pricing), but I need to support a more complicated pricing model than either provide, so I am thinking I may have to roll my own code.

 

 

 

Cheers,

Paul

Link to comment
Share on other sites

  • 4 weeks later...

You definately need custom code for this, preferrably a custom module.

 

If I were you, I'd try to work with product combinations, and (programmatically, from the module) create a different product combination for every possible user selection, setting it's price accordingly. I'd create the variants only when a customer made a selection.

 

What you wanted to do, "mocking" the product in the cart, is not possible in PrestaShop, because each cart line links to an actual product, unlike other ecommerce systems that abstract the product once in the  cart.

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