Becki Posted May 17, 2006 Posted May 17, 2006 Nana, Hi, I had installed the older version of FEC and fixed a few things (nearly fully working :)) I then saw you'd posted the update on the contributions board and said you were going to post up again in a week after you'd debugged. Do you know when you might be doing this? Also would you recommend a compete re-install? Thanks very much :) Becki Quote
Webtytte Posted May 17, 2006 Posted May 17, 2006 (edited) Just installed part 1 of this contribution - works like a charm, although I would like to be able to change the "Get New Total" button in an easier way.. havent changed it yet, but I will ;o) Anyways I post here because I noticed the contribution actually lacks a "loading.gif"-file. (the picture shown when calculating new total). I found a nice one here: http://my.hollywood.com/images/loading.gif, maybe you can use it too - don't think it's copyrighted :blink: Instructions: download the file and copy it to "catalog/images". Kind regards Webtytte Denmark Edited May 17, 2006 by Webtytte Quote
nana Posted May 17, 2006 Author Posted May 17, 2006 (edited) thanks for the gif and what do you mean easier way for get total? Edited May 17, 2006 by nana Quote
thrasha Posted May 18, 2006 Posted May 18, 2006 i have had many problems with all versions of FEC... i have never gotten it to work correctly, it has always seemed to have some bug that has to be worked out... i just tried the newest 3.2 and am having the same problems and errors as BounderOfAdventure with credit cards... everything works absolutely fine without FEC... i think i am just going to use PWA and wait until OSC3 comes out with its own rewritten checkout... Quote
Webtytte Posted May 18, 2006 Posted May 18, 2006 thanks for the gif and what do you mean easier way for get total? I am running a site in Danish and english, and would like to have the button text in danish when danish language is chosen and english when english language is chosen, but I can't change that with my scarce knowledge of coding. :) Currently I am just using it as is, but if you got a solution to language change for that button, I would be very happy :) - Maybe a solution for a graphical button? Then I could make a button with a calculator on it :) What do you think? Kind regards Thomas aka Webtytte Quote
nana Posted May 18, 2006 Author Posted May 18, 2006 thomas i will post the code to change the language in a little while thrasha maybe there is a conflict with your payment module so maybe you could let us know which one it is so other people that have that don't use fec or maybe a better explanation of your problem rather than just complaining Quote
nana Posted May 19, 2006 Author Posted May 19, 2006 thomas in includes/fec/ajax_shipping.php change <script type="text/javascript"> <!--// document.write('<input type=button class="button" value=" Get New Total" onclick="ajaxLoader(\'checkout_2confirmation.php?tip=\'+ zprice+\'&cb=\'+submitter+\'&zship=\'+zhipper+\'&osCsid=\'+Csid,\'contentLYR\')" name="CLEARBUTTON">'); //--> </script> to <script type="text/javascript"> <!--// document.write('<input type=button class=button "value=" <?php echo IMAGE_BUTTON_GET_TOTAL;?>" onclick="ajaxLoader(\'checkout_2confirmation.php?tip=\'+ zprice+\'&cb=\'+submitter+\'&zship=\'+zhipper+\'&osCsid=\'+Csid,\'contentLYR\')" name="CLEARBUTTON">'); //--> </script> and you have to declare the IMAGE_BUTTON_GET_TOTAL in language files Quote
hydro Posted May 19, 2006 Posted May 19, 2006 Can someone please post the complete package for fast easy checkout including the changes. Thanks. For shipping/payment combo: checkout_shipping.php checkout_payment.php checkout_confirmation.php checkout_shipping_address.php checkout_payment_address.php For creat account: 1-account.php 2--account_edit.php 3-account_history.php 4-account_history_info.php 5-account_newsletters.php 6-account_notifications.php 7-account_password.php 8-address_book.php 9-login.php 10-logoff.php 11-checkout_success.php 12-password forgotten.php 13-checkout_process.php 14-includes/form_check.js.php 15-includes/header.php 16include/languages/english/create_account.php 17-includes/languages/english/account_password.php 18-includes/languages/english/checkout_process.php 19-includes/llanguages/english/logoff.php 20-admin/orders.php Quote
Webtytte Posted May 19, 2006 Posted May 19, 2006 Nana, thanks for helping me out. I have made the changes to ajax_shipping.php. Button is empty - no text. I tried putting in this code: define('IMAGE_BUTTON_GET_TOTAL ', 'Get New Total'); in all these files: /languages/english.php /languages/english/fast_account.php /languages/english/checkout_payment.php /languages/english/checkout_shipping.php ...with no luck. Which one is it? Is this code needed in ajax_shipping.php somewhere, maybe? require(DIR_WS_LANGUAGES . $language . '/' . 'fast_account.php'); I tried putting it in at the top, but didn't work either. I hope you can enlighten me :) Kind regards Thomas Quote
nana Posted May 19, 2006 Author Posted May 19, 2006 maybe define('IMAGE_BUTTON_GET_TOTAL ', 'Get New Total'); i put it in the english.php but i suppose fast_account.php would work also Quote
thrasha Posted May 19, 2006 Posted May 19, 2006 i am mainly using authorize.net AIM but it is the same for even the stock credit card module... it keeps going back to the checkout_shipping.php page with the error of "The first four digits of the number entered are: If that number is correct, we do not accept that type of credit card. If it is wrong, please try again." no matter what credit card numbers i use... test or actual... these modules work just fine on the multiple shopping sites that i run as long as i dont try to use them with FEC... Quote
nana Posted May 19, 2006 Author Posted May 19, 2006 this bit of code is what transfers the cc numbers and it should be in your checkout_confirmation.php //fast easy checkout start foreach ($_SESSION as $key => $val) { // print $key.' => '.$val.' - ';print_r($val);echo "<br>"; $HTTP_POST_VARS[$key] = $val; } // first two lines are for ccgv //tep_session_unregister('gv_redeem_code'); //tep_session_unregister('credit_covers'); tep_session_unregister('cc_number'); tep_session_unregister('cc_expires_month'); tep_session_unregister('cc_expires_year'); tep_session_unregister('cc_owner'); tep_session_unregister('authorizenet_cc_number'); tep_session_unregister('authorizenet_cc_expires_month'); tep_session_unregister('authorizenet_cc_expires_year'); tep_session_unregister('authorizenet_cc_owner'); //fast easy checkout end when i was trying to install this in one of the forks i came across a problem with it because it has bts do you have bts installed have you changed checkout_shipping.php that is included in the cobtribution at all Quote
Guest Posted May 22, 2006 Posted May 22, 2006 I have tried installing this module on a custom site, so I am aware this is the issue, but everything works great until i click on the button to process the cart and complete at which point it sends me to the create account page any pointers what i might have done wrong? im using sppc if that helps? Quote
nana Posted May 23, 2006 Author Posted May 23, 2006 simon you are probably losing the session are you sure you did not have this problem before and sometimes it shows up when you activate ssl most of the time it has to do with your configure file Quote
Guest Posted May 23, 2006 Posted May 23, 2006 This is a great contribution!~ I am stuck though, I did the steps, but if I go to the checkout page, I only see the payment info, I dont see shipping info anymore, and method of shipping is gone too, even though I have all weights in, and USPS and UPS modules turned on in admin. Can someone help?? www.jawproducts.com is the site. thanks! Quote
BounderOfAdventure Posted May 23, 2006 Posted May 23, 2006 I am having the same problem as Simon with the when I use FEC with Authorize AIM. again all works fine without the FEC plugged in. The mod looks great otherwise though. -- Dale simonyou are probably losing the session are you sure you did not have this problem before and sometimes it shows up when you activate ssl most of the time it has to do with your configure file Quote
BounderOfAdventure Posted May 23, 2006 Posted May 23, 2006 I should have said that I'm having the same problem as Erik (not Simon). In that FEC is not working with the AIM payment system. It just returns, The first four digits of the number entered are: <br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again. It looks like it is sending all the values twice or something. I like the mod but I need to use the Authorize Aim. Maybe I can find a fix. If anyone has any ideas. I'd love to hear them. -- Dale I am having the same problem as Simon with the when I use FEC with Authorize AIM. again all works fine without the FEC plugged in. The mod looks great otherwise though. -- Dale Quote
nana Posted May 23, 2006 Author Posted May 23, 2006 dale try uncomenting the print line in this code in your checkout_confirmation.php and see if the variables show i had this problem when i was instaling this for someone //fast easy checkout start foreach ($_SESSION as $key => $val) { // print $key.' => '.$val.' - ';print_r($val);echo "<br>"; $HTTP_POST_VARS[$key] = $val; also if you have sts or bts you probably have to add these lines to the other part of the template part of the file i do not remember exactly what it was other than that pm me so i can take a look at your files Quote
BounderOfAdventure Posted May 23, 2006 Posted May 23, 2006 (edited) I tracked a bit more down on the AIM problem. It seems that I am sending everything twice somehow so my submission looks something like this. This doesn't happen without FEC so I'm wondering how this is happening. and what I can do to get rid of it. sendto => 80 - 80 billto => 80 - 80 customer_id => 58 - 58 customer_first_name => Spike - Spike customer_default_address_id => 80 - 80 customer_country_id => 223 - 223 customer_zone_id => 44 - 44 registered_now => 1 - 1 createaccount => N - N cartID => - payment => authorizenet_aim - authorizenet_aim action => process - process shipping => Array - Array ( [id] => fedex1_90 [title] => Federal Express (1 x 5lbs) (Home Delivery (1 days)) [cost] => 6.23 ) authorizenet_aim_cc_owner => Spike Lee - Spike Lee authorizenet_aim_cc_number => 4************7 - 4************7 authorizenet_aim_cc_expires_month => 01 - 01 authorizenet_aim_cc_expires_year => 08 - 08 preview_x => 38 - 38 preview_y => 12 - 12 preview => preview data - preview data comments => - Warning: Cannot modify header information - headers already sent by (output started at /usr/*****/development/catalog/checkout_confirmation.php:18) in /usr/*****/development/catalog/includes/functions/general.php on line 33 --- dale dale try uncomenting the print line in this code in your checkout_confirmation.php and see if the variables show i had this problem when i was instaling this for someone //fast easy checkout start foreach ($_SESSION as $key => $val) { // print $key.' => '.$val.' - ';print_r($val);echo "<br>"; $HTTP_POST_VARS[$key] = $val; also if you have sts or bts you probably have to add these lines to the other part of the template part of the file i do not remember exactly what it was other than that pm me so i can take a look at your files Edited May 23, 2006 by BounderOfAdventure Quote
nana Posted May 23, 2006 Author Posted May 23, 2006 in checkout_shipping.php around line 122 in this code while (list($key, $value) = each($_POST)) { tep_session_register($key); } comment out tep_session_register($key); this adds the cc number to the session in fec so this might remove the extra enteries if you have them Quote
BounderOfAdventure Posted May 24, 2006 Posted May 24, 2006 I think , regarding my previous post that I was fooled by the dupe values being called twice in the (uncommented) print function. I still can not get it to work with AIM as it is. So, I'd like to keep the rest of this mod, but restore the final oscommerce confirmation page. Is there a quick way to do that? As when I manually bypass the mod to an old confirmation page via a url and keep the session id), all the payment data is there, and the payment goes through ok. -- thanks in advance for any tips. in checkout_shipping.phparound line 122 in this code while (list($key, $value) = each($_POST)) { tep_session_register($key); } comment out tep_session_register($key); this adds the cc number to the session in fec so this might remove the extra enteries if you have them Quote
nana Posted May 24, 2006 Author Posted May 24, 2006 tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION,'', 'SSL')); redirects the page to checkout_confirmation page and it should pass the session_id if you are seeing all those things printed then the session_id must be there try comment out the lines that unregisters the cc data maybe the problem is there but if you have bts or sts then do you have a tpl file or anyother file related to checkout_confirmation.php Quote
BounderOfAdventure Posted May 24, 2006 Posted May 24, 2006 Thanks for all your help, and the great mod. I got it working in my testing area. and This will work for my needs now. I had to seperate out the payment process so it continues to checkout payment now, and I turned off all the STS goodies on all my payment pages. I still get the great features of billing and shipping addresses on the same page, the cool ajax total tool, and the create account functions. So unwinding the billing information from the shipping page is not so bad. -- thanks for the help and the great mod support. -- Dale tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION,'', 'SSL'));redirects the page to checkout_confirmation page and it should pass the session_id if you are seeing all those things printed then the session_id must be there try comment out the lines that unregisters the cc data maybe the problem is there but if you have bts or sts then do you have a tpl file or anyother file related to checkout_confirmation.php Quote
nana Posted May 24, 2006 Author Posted May 24, 2006 glad you got it to work if sts pages creates two parts one for template and one for code you might fix the problem by puting the code from the previous post in the template part and get it to work correctly i think that was what i did for the other site Quote
thrasha Posted May 24, 2006 Posted May 24, 2006 i am not using STS or any other mods and i cannot get this to work with authorize.net AIM or any creditcard module... having a seperate payment page defeats the purpose of FEC doesnt it? Quote
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.
Note: Your post will require moderator approval before it will be visible.