Cyburg Posted December 11, 2015 Share Posted December 11, 2015 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 More sharing options...
gonssal Posted December 13, 2015 Share Posted December 13, 2015 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 More sharing options...
Cyburg Posted December 14, 2015 Author Share Posted December 14, 2015 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 More sharing options...
gonssal Posted January 10, 2016 Share Posted January 10, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now