Guest Posted February 17, 2010 Share Posted February 17, 2010 I have an usual problem in that we have may customers who select payment on delivery as their chosen payment method. The problem I have is that if this method is selected I MUST use a certain carrier which is expensive. This is not usually an issue if it is a high value item however we have a scenario cropping up that I want to avoid - someone buying a low value item, selecting payment on delivery, then selecting the cheapest delivery method that I cannot use. The result is that it must be sent via a courier at high cost to me. Is there a way of removing a payment method based upon 1) the value and 2) the chosen shipping method? Quote Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2010 Share Posted February 18, 2010 I think I may have almost solved my own problem but have hit upon a glitch along the way. I have the COD (Cash on delivery) module installed and this works fine - it is therefore this module that I would like to amend to produce the results I want however it doesn't seem to work. Within the code there is the option to disable the method if the order is for a virtual product: if ($this->enabled == true) { if ($order->content_type == 'virtual') { $this->enabled = false; } } My thought then was to add the following: if ($this->enabled == true) { if ($order->total <25) { $this->enabled = false; } } Where the value 25 is the order value at which the option becomes available. the problem is that this merely has the effect of disabling the module all together regardless of the order total. Any ideas anyone?? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.