Guest argentice Posted March 22, 2006 Share Posted March 22, 2006 You need to change this file.. ./modules/gateway/NOCHEX/transfer.inc.php Find "function fixedVars()" and change it to the following.. function fixedVars(){ global $module, $basket, $ccUserData, $cart_order_id, $config, $GLOBALS; $postaddress = $ccUserData[0]['add_1']; if ("$ccUserData[0]['add_2']" != "" ) { $postaddress .= ", ".$ccUserData[0]['add_2']; } if ("$ccUserData[0]['town']" != "" ) { $postaddress .= ", ".$ccUserData[0]['town']; } if ("$ccUserData[0]['county']" != "" ) { $postaddress .= ", ".$ccUserData[0]['county']; } $hiddenVars = "<input type='hidden' name='cart_order_id' value='".$cart_order_id."'> <input type='hidden' name='amount' value='".$basket['grandTotal']."'> <input type='hidden' name='billing_fullname' value='".$ccUserData[0]['firstName']." ".$ccUserData[0]['lastName']."'> <input type='hidden' name='billing_address' value='".$postaddress."'> <input type='hidden' name='billing_postcode' value='".$ccUserData[0]['postcode']."'> <input type='hidden' name='merchant_id' value='YOURMERCHANTACCOUNTID'> <input type='hidden' name='description' value='Online order from YOUR COMPANY'> <input type='hidden' name='order_id' value='".$cart_order_id."'>"; return $hiddenVars; } And change the formaction at the bottom of the file to..... $formAction = "https://secure.nochex.com/"; Hope this helps someone. Quote Link to comment Share on other sites More sharing options...
Guest hennaboy Posted March 22, 2006 Share Posted March 22, 2006 And this is for? any nochex account or just specifically the merchant account. As Nochex offer 3 different account types. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted March 22, 2006 Share Posted March 22, 2006 Thanks for this I've updated the dev store ;) Quote Link to comment Share on other sites More sharing options...
rockyrobin Posted March 22, 2006 Share Posted March 22, 2006 Thanks for this I've updated the dev store Yeah what is this for please? Quote Link to comment Share on other sites More sharing options...
Guest EverythingWeb Posted March 22, 2006 Share Posted March 22, 2006 Yeah what is this for please? Eh? This is for the Nochex configuration in CubeCart. The Dev store is the version of CubeCart currently in development. Quote Link to comment Share on other sites More sharing options...
Guest argentice Posted March 23, 2006 Share Posted March 23, 2006 And this is for? any nochex account or just specifically the merchant account. As Nochex offer 3 different account types. The clue is in the thread title "New Nochex Merchant account settings" Nochex have released a new "Merchant" account recently, this modification is for this account only. It does not apply to the other accounts. Also, be aware, you might need a "Thank you" page set up in the Nochex control panel and the new merchant account does not pass back any variables. Quote Link to comment Share on other sites More sharing options...
Guest Posted July 18, 2006 Share Posted July 18, 2006 And this is for? any nochex account or just specifically the merchant account. As Nochex offer 3 different account types. The clue is in the thread title "New Nochex Merchant account settings" Nochex have released a new "Merchant" account recently, this modification is for this account only. It does not apply to the other accounts. Also, be aware, you might need a "Thank you" page set up in the Nochex control panel and the new merchant account does not pass back any variables. This is great! Thanks for posting it. Do you know the way for cubecart to automatically send the 'new order' email to both the store owner and customer when using Nochex merchant account? Many thanks Sharon xx Quote Link to comment Share on other sites More sharing options...
Guest UKDisco Posted August 11, 2006 Share Posted August 11, 2006 Is this sorted in 3.11? Quote Link to comment Share on other sites More sharing options...
Guest Tony_B Posted August 17, 2006 Share Posted August 17, 2006 Also, be aware, you might need a "Thank you" page set up in the Nochex control panel and the new merchant account does not pass back any variables. Sorry to say you are totaly wrong. The new merchant account passes back variables as does the older, existing extra account. Cubecart has totally failed to implement anything to make use of this but it's been available for years now and continues with the new merchant account. This is great! Thanks for posting it. Do you know the way for cubecart to automatically send the 'new order' email to both the store owner and customer when using Nochex merchant account? Many thanks Sharon xx The code needs to be hacked quite heavily to do so as nobody at cubecart can be bothered to implement nochex properly. I've managed to get mine working by copying and hacking the paypal modules. However, my PHP isn't great and my solution far from elegant so sadly I won't share or publish it unless/until I get it 100% right and secure. The solution above while handy still does not make Nochex useable in cubecart IMHO for a busy site. Quote Link to comment Share on other sites More sharing options...
Guest johnp. Posted September 4, 2006 Share Posted September 4, 2006 [quote The solution above while handy still does not make Nochex useable in cubecart IMHO for a busy site. 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.