Jump to content

List Payment Methods According To The Value Of Purchase.


Recommended Posts

I am setting up a shop where I need to list the electronic means of payment only if the purchase is more than € 198. otherwise it will show a message.

I tried to change the variable $ HOOK_PAYMENT but I can not achieve my goal.

My version of PrestaShop is 1.6.0.12.

 

Thanks in advance for your help.

Link to comment
Share on other sites

so 2 things I would do

 

1) edit the individual "electronic" payment module files, locate the function hookdisplaypayment or hookpayment.  In that function, obtain the order amount from the cart, and if the amount is less than 198, then return false.  that will cause the payment module to hide

 

2) create a new simple payment module that will check if the order amount is less than 198, and if so, this module will display the message.  alternatively, instead of creating a module, just edit your theme file to show the message accordingly.

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...