Forum Replies Created
-
AuthorPosts
-
mcb927Member
I have resolved the issue I was having. I found that the page wp_eStore1.php has several lines of code working with the custom field function similar to what your code snippet is doing. The page reads several session cookie values. Following the examples from that page, I added these lines of code right before the function closes and the assembled $custom_field_val variable is returned:
if(!empty($_SESSION))
{
$name = ‘attyuserid’;
$value = $_SESSION;
$custom_field_val = append_values_to_custom_field($name,$value);
}
After that change, I found where paypal.php reads and assigns values to variables for use in the SQL INSERT query. Again following the examples there (specifically the one that reads the IP address), I added these lines of code:
$customer_attyid = $customvariables;
if(empty($customer_attyid)){$customer_attyid = “No atty ID”;}
On paypal.php I was then able to assign the value of $customer_attyid to the variable $member_username (we are not using eMember) and store the customer ID. It works very well. Hopefully this might help someone else with the same or similar question I had. Thanks again for your help; it pointed me in the right direction.
mcb927MemberIt looks like I just don’t know where to put the add_filter code or where to call it from or just how to use it. I added the code snippet above to eStore_misc_functions.php, and I’m not sure how to work with calling the custom field value in paypay.php. I try to avoid messing with any wordpress, theme, or plug-in code and primarily just work with forms and php functions to get and store database info. Could you either point me to a tutorial for working with the add_filter code or let me know more about how to use it? Thank you.
mcb927MemberThank you! I will give that a try. I am familiar with the IPN message from reading through the eStore code looking for a solution. I don’t use the IPN myself – I’m trying to keep things as simple and streamlined as possible – just make use of what is there.
-
AuthorPosts