PDA

View Full Version : Paypal Interface



dmm2020
10-05-2010, 00:54
I am having a problem...none of the paypal items are posting. It just returns the default settings with NOTHING changed. What si going on?

dmm2020
10-05-2010, 01:33
I am having a problem...none of the paypal items are posting. It just returns the default settings with NOTHING changed. What si going on?

Just an update...NONE of the payment options are saving. Everything else works fine. Hopefully there is a fix for this. Rather frustrating to hit these kind of snags on paid for software though.

Greystoke
12-05-2010, 01:53
Hi,

There is a known issue with this happening on some server with the standard osCommerce installation.

If you add this line to your shop/admin/modules.php it should fix the problem.

Add:


reset($_POST['configuration']);


Before this:


while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':


It should now look like this:


case 'save':
reset($_POST['configuration']);
while (list($key, $value) = each($HTTP_POST_VARS['configuration'])) {
tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'");
}
tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $HTTP_GET_VARS['module']));
break;
case 'install':

dmm2020
15-05-2010, 02:54
This worked...thanks!

What will you charge to write me a block of code that joins a member to a certain configurable group after an item is purchases in the cart.

I am looking for a group user is automatically joined after status of order is completed.

dmm2020
20-05-2010, 03:44
Getting same error when I try to "Install" checks in the payments module.

I had this open at one time, but need to edit the address to mail the check. Except now, it has reverted back to "Install" mode and when I click "Install" it blinks, refreshes the screen and back to same ole install button.

How do I fix this one?

Greystoke
20-05-2010, 04:02
Have you still got the above fix in the shop/admin/modules.php.

This is the Check/Money Order, Payment Module and it was originally working.

dmm2020
20-05-2010, 12:02
Yes, it was originally working, but for some reason is stuck on "Install" even though it's really already installed. I also noticed I got multiple entries in the configuration table for this. It does not seem to be "updating" existing entries, but rather "inserting" even though an existing entry in the config table exists.

Greystoke
20-05-2010, 20:55
reset($_POST['configuration']);

was entered twice in the modules.php

Should have only been there once.

This caused duplicate entries in the DataBase.