adller99 Posted October 18, 2015 Share Posted October 18, 2015 Hi, I'm working on a page where user enters a value of a voucher he wants to buy. What I'm doing is that: - creating a product (inserts to the DB) - assigning images - cleaning up afterwards (when the order is paid or the item removed from a cart) I would like to know if there is easier way to do this. thanks Link to comment Share on other sites More sharing options...
adller99 Posted October 19, 2015 Author Share Posted October 19, 2015 no-one? Link to comment Share on other sites More sharing options...
tuk66 Posted October 20, 2015 Share Posted October 20, 2015 Make one "base" product, don't remove it (there are many links to this product in the database). Use Customization for adding the custom (voucher) value. This way the database stays clean and not broken. Link to comment Share on other sites More sharing options...
adller99 Posted October 20, 2015 Author Share Posted October 20, 2015 Make one "base" product, don't remove it (there are many links to this product in the database). Use Customization for adding the custom (voucher) value. This way the database stays clean and not broken. Thanks! but I've read it's not possible to use ths on price. is it? if yes, could you please give me a bit of hint? The value is always different so it cannot be predefined anywhere. I've spent 4 days developing on fly product (including cleanUp jobs etc) but more than willing to get rid of them and use this. Help me out, please. Thanks Link to comment Share on other sites More sharing options...
adller99 Posted October 21, 2015 Author Share Posted October 21, 2015 How about this? http://stackoverflow.com/questions/27989752/custom-price-calculation-in-prestashop this could also work right? I would just change the price according to what the user inputs and that's it. ?? thanks people! 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