sunnyb0y Posted August 15, 2013 Share Posted August 15, 2013 (edited) Hello,I am building a PrestaShop (1.5.4) site for a region specific fruit and veg delivery business.Is there a way in PrestaShop to somehow automatically charge a one off fee for the first order from a customer (eg $5 to cover the cost of the foam box that the produce is delivered in)? And then for every order that a "paid" customer places in the future, they are not charged the $5 extra?I guess almost like a one off handling fee for new customers - that no longer applies when they have made at least one order.(Or alternatively a product ($5 Foam box deposit) that gets automatically added only to the first order of a customer.)It would be nice to have the $5 appear in the cart as "Foam box deposit" or something like that.Any ideas on how to achieve this?Thanks in advance. Edited September 25, 2013 by sunnyb0y (see edit history) Link to comment Share on other sites More sharing options...
Enrique Gómez Posted August 16, 2013 Share Posted August 16, 2013 I think a little custom programming must be made. Maybe it's worth build a general purpose module (if it's not created yet..) for those requirements . You'll need to keep the info (boolean yes/no) in the customers table, a field as simple as "firstFeePaid". Into another "place" (Such as a module value) you need to keep the "First fee deposit" value, if it's a general module the translated texts of the "item" added, maybe some image. In general you could think as this first fee as a special product that is added for some customers and can not be removed from the cart, but this product has to be invisible to find (with the visibility selector in products admin area). So in the module you can choose this special product and then you save some work (no need to keep the "First fee deposit"). Then you need to keep this "special product" irremovable during the checkout and finally when the order has been paid save the "firstFeePaid" into the customers table, for further orders not to be charged. 1 Link to comment Share on other sites More sharing options...
sunnyb0y Posted September 25, 2013 Author Share Posted September 25, 2013 Solved."Enrique Gómez" made a great little module that does exactly what we need. It even takes into accounts guests and repeat orders. Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2020 Share Posted January 16, 2020 Would you be able to share this module? I am looking for something similar. 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