Reinstalling what? Just the contrib?
Printable View
Hoping someone more sage than I can help decypher this mystery.. If you click the "Modify" button next to to a Super Orders payment, the popup window does not open up the payment for modification at all.
I believe that the key to fixing this is found on line 108 or the super_payments.php file.
I've tried a few things, but ultimately I am not sure what needs to be modified.. (I think is a minor fix).. Anyone got any ideas??Code:zen_redirect(zen_href_link(FILENAME_SUPER_PAYMENTS, 'oID=' . $so->oID . '&payment_mode=' . $payment_mode . '&index=' . $_GET['payment_id'] . '&action=confirm', 'NONSSL'));
If I can't figure this out, I think I may just disable this feature since from an auditing point of view, the CORRECT way to "modify" a payment is to make a payment adjustment. (Yes even if you made a data entry mistake -- in real accounting software this is how it would be handled)
Another observation.. When an order is either canceled or marked completed, ALL of the buttons which allow you to add, modify, or delete payments, P.O.s and Refunds should be hidden. I noticed that other editing features are hidden, but not these.Does anyone have any clue as to how I would go about correcting this???
I've been testing how payments made using the "Credit Card - Offline Processing" payment module appear in Super Orders. I noticed that not all credit cards payments display the correct payment_type in Super Orders. In particular Master Card and Diners Club. (Visa, Amex, and Discover all show up correctly) After doing some tiptoeing through the Developers Tool Kit I think found the answer:
I believe that Master Card does not show up because the Master Card value used in the array in the Super Orders class files (store and admin) and the payment type for Master Card in the so_payment_types table do not match the cc_type for Master Card in the /includes/classes/cc_validation.php file.
Diners Club doesn't show up because it's not defined in the array in the Super Orders class files (store and admin) and simply needs to be added the class files and the so_payment_types table.
To fix Master Card and add Diners Club here's the changes I made:
Go to /admin/includes/classes/super_order.php around line 276 and make the changes highlighted in red:Go to /includes/classes/super_order.php around line 276 and make the changes highlighted in red:Code:$cc_type_key = array('MasterCard' => 'MC',
'Visa' => 'VISA',
'American Express' => 'AMEX',
'Diners Club' => 'DINE',
'Discover' => 'DISC');
Then run the following SQL changes in Admin>Tools>Code:$cc_type_key = array('MasterCard' => 'MC',
'Visa' => 'VISA',
'American Express' => 'AMEX',
'Diners Club' => 'DINE',
'Discover' => 'DISC');
Install SQL Patches to correct the Master Card payment type and add Diners Club to the Super Orders payment types tables.
For the record any other credit cards you would like to add, you can simply update the class files to add them to the array. You must make sure that you also add them to the so_payment_types table as well. Remember they must match the cc_types used in the /includes/classes/cc_validation.php file.Code:UPDATE `so_payment_types` SET `payment_type_full` = 'MasterCard' WHERE `so_payment_types`.`payment_type_full` = 'Master Card';
INSERT INTO `so_payment_types` (`payment_type_id` ,`language_id` ,`payment_type_code` ,`payment_type_full`)
VALUES ('10', '1', 'DINE', 'Diners Club');
Thought I'd share this too.. I used the following test credit card numbers for the various credit card types
Here's the source for these test credit card numbers: http://www.ameripayment.com/testcreditcard.htmQuote:
Master Card - 5105105105105100 - (16) Characters
Master Card - 5555555555554444 - (16) Characters
Master Card - 4222222222222 - (13) Characters
VISA - 4111111111111111 - (16) Characters
VISA - 4012888888881881 - (16) Characters
American Express - 378282246310005 - (15) Characters
American Express - 371449635398431 - (15) Characters
Amex Corporate - 378734493671000 - (15) Characters
Dinners Club - 38520000023237 - (14) Characters
Dinners Club - 30569309025904 - (14) Characters
Discover - 6011111111111117 - (16) Characters
Discover - 6011000990139424 - (16) Characters
JCB - 3530111333300000 - (16) Characters
JCB - 3566002020360505 - (16) Characters
Hope all of this is useful for someone else..
Please don't take this wrong Webskipper, but you've asked this question over and over since LAST December, and (IMO) it's been answered a few times in this support thread.. I'm not sure what additional information you are seeking in asking again, but I'll throw in my 3 cents on the subject again..
Super Orders as it's name and the readme file states is supposed to be the replacement for the stock Zen Cart orders.php, packingslip.php, and invoice.php. It's an order management system that includes many more features not included in the stock Zen Cart order management.
Edit Orders as it's name implies and the readme file states is a module that allows you to edit an order.
These are two separate mods with COMPLETELY different purposes, and there is NO FEATURE OVERLAP between the two.. It's not a matter of one versus the other, that's like comparing apples to oranges.. They are both fruit, but they are different kinds of fruit..
That said if you are replacing the stock order management with Super Orders there is no reason why you can't use Edit Orders with Super Orders. In fact there are instructions in the Edit Orders readme file which address SPECIFICALLY how to incorporate Edit Orders with Super Orders. There are also several threads in this support thread which give guidelines on how to achieve this integration as well.. (Including one posted by yours truly which I believe provides a lot more detail than other posts in past have provided on the subject)
http://www.zen-cart.com/forum/showpo...postcount=1510
http://www.zen-cart.com/forum/showpo...&postcount=250
It's been over a year since I dropped into this support thread, and it appears that you are still having issues getting the integration of these two modules to work. Perhaps you might want to consider seeking some paid assistance which might give you more detailed or hands on help than you've gotten here. It appears that Scott might offer commercial assistance with this integration on his site: http://www.zencartmod.com/index.php?...&products_id=3.. Dunno.. If you want to try taking a stab at this, check out the threads I posted and see if they help..
Ah yes since December 2008?
Been busy serving my country.
Appreciate your response.
Yep Dec 2008..
Appreciate your service to our country..
Hope the posts I listed help.. I used the guidelines I posted, and have Super Orders successfully integrated with Edit Orders. On my loaded test store I have Super Orders integrated with the following modules:
- Fast & Easy Check Out
- FedEx Shipping Labels
- Admin Comments
- Edit Orders
Everything is playing VERY nicely together.. The application Beyond Compare is my secret weapon to help pulling it all together..
So what you are saying is that you have the next version of So ready with Admin Notes Integrated? That's like including a corkscrew with a Wine & Cheese Gift set.:yes:
The issue I was having was that the htaccess page was hacked. Once I fixed that and cleaned up the mess, everything worked correctly. All the issues were resolved.
Don't take this the wrong way. In the future, you may want to ask more questions before responding the way you did above.:wink: