Hi at all!
I've a problem.
I've got a Cs-Cart version 2.2.4 (professional).
In admin panel, I need disable payment method “Cash on delivery” for amounts exceeding € 200,00.
Is it possible this?
How to do to hidden to customers this payment method in this case?
Thanks to those who help me to solve this problem!
Marco.
controllers/customer/checkout.php
insert the code before ($cart['payment_surcharge'] = 0;)
$payment_methods = fn_prepare_checkout_payment_methods($cart, $auth);
foreach ($payment_methods as $k => $v) {
if ($cart['total'] >= 200 && $payment_methods[$k]['payment_id'] == 6){
unset($payment_methods[$k]);
}
}
$view->assign('shipping_rates', $_SESSION['shipping_rates']);
$view->assign('payment_methods', $payment_methods);
work for me version 2.2.5
And if you are not a man of code we have a ready addon for this http://www.cscart.bi…rice-limit.html
I am interested in this also to something similar.
dvsgr - Can your add-on also work between Domestic and International counties? For example, I would only want to setup a Payment method for International buyers that anything over $500 USD, the only payment option shown would be Bank Wire Transfer … and below $500 USD they can pay with credit card or bank wire transfer.
Thanks!
[quote name='dvsgr' timestamp='1389199069' post='174726']
And if you are not a man of code we have a ready addon for this http://www.cscart.bi…rice-limit.html
[/quote]
When will you have it ready for version 4… ?
[quote name='panto' timestamp='1389199770' post='174728']
When will you have it ready for version 4… ?
[/quote]
Well panto I can try till next week to finish this.
I ll let you know
Fotis
[quote name='Tim Hensel' timestamp='1389199590' post='174727']
I am interested in this also to something similar.
dvsgr - Can your add-on also work between Domestic and International counties? For example, I would only want to setup a Payment method for International buyers that anything over $500 USD, the only payment option shown would be Bank Wire Transfer … and below $500 USD they can pay with credit card or bank wire transfer.
Thanks!
[/quote]
So you need actually 2 functionalities. one per value compined with one per Location?
There is an Addon for the second functionality too [url=“Συσχέτιση Μεταφορικών με Τρόπους Πληρωμής - CS-Cart Addons/Πρόσθετα at Cscart.Biz | CS-Cart Market by Dvs.gr”]http://www.cscart.biz/sushetisi-metaforikwn-me-tropous-plirwmis.html[/url]
Thank you very much at all (special thanks to Panto)!
It works!
Bye.
Marco.
Does this code work for v4.2.4 as well ?
[quote name='dvsgr' timestamp='1389201225' post='174732']
So you need actually 2 functionalities. one per value compined with one per Location?
There is an Addon for the second functionality too http://www.cscart.bi…s-plirwmis.html
[/quote]
Hi Dvs any plans for upgrading these plugins for v4.3.x?