andreszam24 Posted December 23, 2015 Share Posted December 23, 2015 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 More sharing options...
Daresh Posted December 23, 2015 Share Posted December 23, 2015 Maybe you can achieve your goal with the minimum purchase total setting? Link to comment Share on other sites More sharing options...
bellini13 Posted December 24, 2015 Share Posted December 24, 2015 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 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