Jump to content

Mod Prestashop 1.7.8.11 New Discount Restriction : Payment Method


DelosTR

Recommended Posts

Hi, on the B2B side we use a cash/early-payment discount — a % off if the customer pays upfront (card or bank transfer), since we have another module for Net-30 payments.

To encourage immediate payment we offer a discount. The thing is, PrestaShop doesn’t provide a condition based on payment method. (Maybe in v8 or v9 — I haven’t checked.)

I tested plenty of modules and either they don’t work or they’re not reliable.

So I built it myself with ChatGPT-5 and it took me two days! Figured I’d share it.

Heads-up: these are core edits — I didn’t make an override, but I documented everything — and we’re on the latest stable 1.7: 1.7.8.11.

I’m using a custom theme and several modules, so if you want to try it, definitely don’t do it in production!

In the back office it looks like this: (payment method selection). I made sure to keep the same workflow as the other conditions.

If the upload doesn’t work, PM me. modif.txt

That’s it, hope it helps some of you. Personally I wish I’d had this, so I’m sharing. You end up with a new payment-based restriction, and that’s it — the rest behaves like the stock feature. And in the cart, when you switch payment methods it updates instantly via JS.

screenshot.thumb.png.86bfd435846d0f7a354e039a9484a907.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...