Guest Posted February 12, 2010 Share Posted February 12, 2010 if($_SESSION['cart']->total > '5.00') //give payment option here } ..only seems to work when the page is refreshed, so it's not 100%. presently i'm using something similar to block payment types outside of the us & canada. but since the order total isn't stored in the database at this point in checkout (like the delivery address) i don't know how to successfully do this. //hide for non-u.s. & canadian $check_query = tep_db_query("select zone_id, zone_country_id from " . TABLE_ZONES . " where zone_country_id = '" . (int)$order->delivery['country']['id'] . "' order by zone_id"); if($check = tep_db_fetch_array($check_query)) { //hide for non-u.s. & canadian if( $check['zone_country_id'] == 223 || $check['zone_country_id'] == 38) { $this->enabled = true; }else{ $this->enabled = false; } is there any options that work to block payment type unless the cart is over a certain amount? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.