Guest Posted February 2, 2005 Share Posted February 2, 2005 Hi folks, I'm new to the forum and not a coder so please be gentle! :) I've installed a clean version of osCommerce 2.2 Milestone 2: which works perfectly on the demo store I've set-up. To this I've added the Account Balance contribution, which is a feature that I really need in my store implementation: http://www.oscommerce.com/community/contributions,2009 In the store admin section I get the following error when I click on the customers button. Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/linkdes/public_html/store/admin/customers.php on line 154 I'm in the dark about this, any help would be appreciated. Thanks. deemo Quote Link to comment Share on other sites More sharing options...
AaronMihe Posted February 22, 2005 Share Posted February 22, 2005 To this I've added the Account Balance contribution, which is a feature that I really need in my store implementation: http://www.oscommerce.com/community/contributions,2009 In the store admin section I get the following error when I click on the customers button. Parse error: parse error, unexpected T_DOUBLE_ARROW in /home/linkdes/public_html/store/admin/customers.php on line 154 <{POST_SNAPBACK}> Same problem when I installed it yesterday. There's a lot of errors in the install.txt. But fixing those doesn't resolve the problem. They centre around Replacing lines, not adding them. Go back through your insertions and look at the lines below. Some need to replace the original lines. However as I say this does nothing about the problem - which I suspect is derived from somethign not being decalred correctly? Help! A. Quote Link to comment Share on other sites More sharing options...
AaronMihe Posted February 23, 2005 Share Posted February 23, 2005 OK Caused by not changing the line above so the array isn't ended correctly. 'customers_newsletter' => $customers_newsletter, 'customers_account_balance' => $customers_account_balance); Is how it should look about line 162 A. Quote Link to comment Share on other sites More sharing options...
AaronMihe Posted February 23, 2005 Share Posted February 23, 2005 Other fixes include: The reference in install.txt to adding Add at the end just before ?> : // include balance_format class and create an instance // Account Balance Modif require(DIR_WS_CLASSES . 'balance_format.php'); $balance_format = new balance_format(); // End Account Balance Modif to catalog\admin\customers.php is incorrect, it really means catalog\admin\application_top.php AND In file catalog\admin\includes\languages\english.php (and all 'language'.php ie french, german...) Add at the end just before ?> : // added for account balance mod define('ENTRY_ACCOUNT_BALANCE', 'Account Balance'); define('CATEGORY_ACCOUNT_BALANCE', 'Account Balance'); define('TABLE_HEADING_ACCOUNT_BALANCE', 'Account Balance'); needs a small bug-fix in customers.php becuase customers php is calling a variable "TABLE_ACCOUNT_BALANCE" for the title of the column. Instead I just added define('TABLE_ACCOUNT_BALANCE', 'Account Balance'); And so far it all looks good and works from the admin side. Still testing on the customer side! A. Quote Link to comment Share on other sites More sharing options...
bigbig6 Posted March 1, 2005 Share Posted March 1, 2005 Other fixes include: The reference in install.txt to adding Add at the end just before ?> : // include balance_format class and create an instance // Account Balance Modif ?require(DIR_WS_CLASSES . 'balance_format.php'); ?$balance_format = new balance_format(); // End Account Balance Modif to catalog\admin\customers.php is incorrect, it really means catalog\admin\application_top.php AND In file catalog\admin\includes\languages\english.php (and all 'language'.php ie french, german...) Add at the end just before ?> : // added for account balance mod define('ENTRY_ACCOUNT_BALANCE', 'Account Balance'); define('CATEGORY_ACCOUNT_BALANCE', 'Account Balance'); define('TABLE_HEADING_ACCOUNT_BALANCE', 'Account Balance'); needs a small bug-fix in customers.php becuase customers php is calling a variable "TABLE_ACCOUNT_BALANCE" for the title of the column. Instead I just added define('TABLE_ACCOUNT_BALANCE', 'Account Balance'); And so far it all looks good and works from the admin side. Still testing on the customer side! A. <{POST_SNAPBACK}> Hello Guys! Sorry if there is some bugs in the install.txt, I'll correct it very soon. I'll had also an history of account balance, the new contrib is nearly ready. If any questions, I'll try to answer you. If you found some bug tell it I'll try to repair this Sincerely, Big Quote Link to comment Share on other sites More sharing options...
milesdavis Posted March 22, 2005 Share Posted March 22, 2005 Hello, I'm going crazy trying to get this to work...I think I found the errors and corrected them, but I don't understand how this account balance is to be subtracted from a customers order -- It does not show up at all during the checkout_process.php. I do have gift vouchers installed as well, that option is visable but thats it.. I'm able to add a credit to a customer I'm able to see that credit under edit account but thats the only place its visable, it never deducts from the total... also...in my admin, it says above the customer names: // Account Balance Modif about 10 times, then the regular customers table appears. thanks for any help, it's greatly appreciated! -md Quote Link to comment Share on other sites More sharing options...
milesdavis Posted March 22, 2005 Share Posted March 22, 2005 Okay, I solved the //Account Balance Modif issue, I had a slight error. Still, I cannot get the account balance to be subtracted during the checkout process... is there some kind of conflict with the CC & GV contribution? thanks! -milesdavis Hello, I'm going crazy trying to get this to work...I think I found the errors and corrected them, but I don't understand how this account balance is to be subtracted from a customers order -- It does not show up at all during the checkout_process.php. I do have gift vouchers installed as well, that option is visable but thats it.. I'm able to add a credit to a customer I'm able to see that credit under edit account but thats the only place its visable, it never deducts from the total... also...in my admin, it says above the customer names: // Account Balance Modif about 10 times, then the regular customers table appears. thanks for any help, it's greatly appreciated! -md <{POST_SNAPBACK}> Quote Link to comment Share on other sites More sharing options...
bigbig6 Posted April 5, 2005 Share Posted April 5, 2005 Hi milesdavis, Can you see the credit in the checkout_confirmation page? Sincerely, Big Quote Link to comment Share on other sites More sharing options...
Guest Posted April 7, 2005 Share Posted April 7, 2005 Hi Big, Thanks for your hard work in fixing bugs and improving the contribution. Could you list the bug fixes and improvements so that folks can assess whether they want to upgrade? Thanks, Mike Quote Link to comment Share on other sites More sharing options...
bigbig6 Posted April 7, 2005 Share Posted April 7, 2005 Ok, here is all the modifications: - Modification of the account balance in customer.php. Now you enter the amount of the new balance, before you needed to modify directly the balance; - Added an history of account balance; - When you delete an order you have the choice to credit an account balance or not; - corrected the calcul of account balance in checkout_process.php; - corrected the bugs in customer.php; - correction in setup.txt Sincerely, Big Quote Link to comment Share on other sites More sharing options...
e-hobbies Posted April 8, 2005 Share Posted April 8, 2005 Trying to get this working with account balance payment - but when I select the pay by account option, it says "Please select a payment method for your order" - any ideas why? There is heaps of credit in the account. Quote Link to comment Share on other sites More sharing options...
bigbig6 Posted April 8, 2005 Share Posted April 8, 2005 I'm afraid I don't understant your question: Account Balance is not a payment methode, it's an order total contrib. That's mean you don't choose to use this or not, if your customer have an account balance this is firstly used, and the new total is the older total minus the account balance. But you're right in one point, if the new total is 0.00 we needn't to choose a payment method... I'll look for it! ;) Enjoy, Big Quote Link to comment Share on other sites More sharing options...
e-hobbies Posted April 10, 2005 Share Posted April 10, 2005 I am using 21 Sep 2004 - Automatic payment module for this system. which is http://www.oscommerce.com/community/contributions,2009 as well - for payment it works fine, but would be good to actually have the amount shown, instead of a 0.00 balance for the account payment. Is there any way to show, maybe under the shopping cart how much credit the shopper has in their account? Quote Link to comment Share on other sites More sharing options...
e-hobbies Posted April 10, 2005 Share Posted April 10, 2005 Ok, I have an account balance as below: Account Balance : $694.95 I add a heli into my shopping cart: Sub-Total: $339.95 I goto checkout, and then click on continue, I get to the payment page, and click on Use Account Balance and continue. This is what I get now: Account Balance (minus from Sub-total): $344.95 Sub-Total: $339.95 Flat Rate (Best Way): $5.00 Total: $0.00 All that should have $350 left in the account - Is it possable to display that on the page as well, maybe you have $350 left in your account or something like that. Next one, I just took $300 off the account, and go shopping: I purchase 1 heli at $339.95 now the account balance as payment options is not shown, as there is not enough credit to pay for the whole lot, so I select bank transfer, It woul be good to say here, that you have $50 credit on your account that will be dudected off the total, anyway I select bank transfer and click continue. Then I get the following: Account Balance (minus from Sub-total): $0.00 Sub-Total: $339.95 Flat Rate (Best Way): $5.00 Total: $294.95 It has taken off the $50, but it should be able to show that payment - should''nt it? instead of the account balance 0.00 thing? Quote Link to comment Share on other sites More sharing options...
bigbig6 Posted April 11, 2005 Share Posted April 11, 2005 Ok, I fact I don't use this add-on... :blush: But I can look for you probleme if I've some times... Sincerely, Big Quote Link to comment Share on other sites More sharing options...
LindaBee Posted May 26, 2005 Share Posted May 26, 2005 Im' having the same parse error. Arron, I"ve changed my code to the array above the //account balance modif to reflect your code, but I'm still experiencing that parse error. I would really appreciate any help. I'm stuck. $sql_data_array = array('customers_firstname' => $customers_firstname, 'customers_lastname' => $customers_lastname, 'customers_email_address' => $customers_email_address, 'customers_telephone' => $customers_telephone, 'customers_fax' => $customers_fax, 'customers_newsletter' => $customers_newsletter, 'customers_account_balance' => $customers_account_balance); // Account Balance Modif Linda Quote Link to comment Share on other sites More sharing options...
Guest Posted September 12, 2005 Share Posted September 12, 2005 Hi I am having the same problems as milesdavis where I am not seeing anything in checkout_payment or checkout_confirmation. The admin side is working well. I am using the credit class gift voucher contribution and I too am wondering if there is some kind of conflict. I also noticed in the database that it was not pulling the customer id number into the database....it pulls all other information except customer ID and order ID, of couse I'm not really sure why it have a order ID, but I'm not a programmer. I think to it would be nice to have the balance in the shopping cart (right hand column) like CCGV does...that way customers know they have a balance as soon as they login. This may have a lot to do with my problem, but in Account Balance 3.0 there are several files that after doing a "compare" I could not find any references to *****account modif**** this would include catalog/checkout_confirmation.php catalog/includes/classes/order_total.php catalog/admin/includes/functions/general.php All of the rest of the files are very plainly marked with *********account modif******** So is that my problem??? are there modification I need to do to those three files? And if so, what are they? any help you can give me would be great. Teresa 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.