amnonM Posted February 14, 2020 Share Posted February 14, 2020 Hi When a customer pays for a product, the order status correctly goes to "payment accepted" I would like, that when a customer buys just product X (with no other products), the order status goes to "payment accepted - competition". I have set up this new order status, but can't find a way to link it to a particular product (X) Can this be done? (I am using PS 1.6.0.9) Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted February 16, 2020 Share Posted February 16, 2020 You cannot link statuses to particular products unfortunately. You might be able to do it with a modification of paymentmodule.php, but it depends on the payment modules you use Link to comment Share on other sites More sharing options...
Guest Posted February 17, 2020 Share Posted February 17, 2020 This is not as simple as my colleague NemoPS wrote. You'll have to keep track of what the product is in the competition. You can add a checkbox for each product and add a column in the database, for example, with a contest title. Next, you must add an event when you click the button in the product detail .... A faster way would be to have a text file with a comma-separated list of product ids or product references stored on FTP. Then simply enter the function into the payment method. But all is about Prestashop's knowledge and programming. If I write part of the code, you still won't know what to do next. The best thing to do is to make a request. Own unprofessional interventions in Prestashop can break the whole eshop and all your work will be gone. 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