Jump to content
sunnyb0y

[solved] Charging a one off fee for a customers first order

Recommended Posts

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 by sunnyb0y (see edit history)

Share this post


Link to post
Share on other sites

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.

  • Like 1

Share this post


Link to post
Share on other sites

Solved.

"Enrique Gómez" made a great little module that does exactly what we need. It even takes into accounts guests and repeat orders.

Share this post


Link to post
Share on other sites
Guest

Would you be able to share this module? I am looking for something similar.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More