maksudkhatri Posted September 27, 2014 Share Posted September 27, 2014 Hello All, I need help on payment list on order page. Payment methods are enable from back-office and i want to hide some of them on front-end. I have search for the hook and got "displayPayment" hook to display payment list. Can any one help me how can i change payment list on front-end even if it is installed and enable from back-office. Thanks in advance for your help Regards Maksud Khatri Link to comment Share on other sites More sharing options...
Paulito Posted September 27, 2014 Share Posted September 27, 2014 Hello If you do not want your customers to use certain Payment methods the just disable them Paul Link to comment Share on other sites More sharing options...
bellini13 Posted September 27, 2014 Share Posted September 27, 2014 i don't know why you want to keep the module installed and enabled, but not available to be used by a customer... but the easiest way is to go to Modules > Payments page in back office and uncheck all countries for those payment modules. They will not display then 1 Link to comment Share on other sites More sharing options...
maksudkhatri Posted September 28, 2014 Author Share Posted September 28, 2014 Hello, I want to enable payment method for all countries. For example : if I have specific product In Cart than I can have one payment method only let's say bank wire. And for all other products all payment methods. Please help me how can I do this. ? Link to comment Share on other sites More sharing options...
bellini13 Posted September 28, 2014 Share Posted September 28, 2014 you cannot configure payment methods based on the products in the cart. you would have to add code to each of the payments methods to detect the contents of the cart and react appropriately. And this is tricky, what happens in this scenario Product A is bankwire Product B is paypal Customer adds product A and product B to the cart. What do you do? Link to comment Share on other sites More sharing options...
maksudkhatri Posted September 28, 2014 Author Share Posted September 28, 2014 Yes I want that if product A is in cart than bankwire appear only and when product B is in cart than cheque payment method is appear only. I have checked that listing appear from displayPayment hook . Please help me how I can change into that hook Link to comment Share on other sites More sharing options...
bellini13 Posted September 28, 2014 Share Posted September 28, 2014 You have to add code to the hookPayment function inside those modules. The code would have to look at the products in the cart and react appropriately. You still did not say what should happen when both Product A and Product B are in the cart. Link to comment Share on other sites More sharing options...
maksudkhatri Posted September 29, 2014 Author Share Posted September 29, 2014 Both products can not be in the cart at same time . If product A is available you are not able to add product B and vice versa. Can you please send me code from where I can chane into displayPayment hook ? Link to comment Share on other sites More sharing options...
bellini13 Posted September 29, 2014 Share Posted September 29, 2014 I cannot send the code as it needs to be developed. If you are looking to hire someone to develop the code, feel free to send me a PM or move your request to the paid job offers forum. 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