Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration
You are here: Home

ec999

  • Profile
  • Topics Started
  • Replies Created
  • Engagements
  • Favorites

Forum Replies Created

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • September 7, 2018 at 7:00 pm in reply to: How to get buyer's name and email address to be used in PHP code #78378
    ec999
    Member

    Thank you! I will find another solution to what I want to accomplish. I will not bother you any more with my questions.

    September 6, 2018 at 7:18 pm in reply to: How to get buyer's name and email address to be used in PHP code #78376
    ec999
    Member

    Using implode to transform the arrays to a string as shown below does not make any difference. The result is still ***. The arrays seem to be empty.

    add_action( ‘eStore_product_database_updated_after_payment’, ‘my_custom_code’, $ipn_data, $cart_items );

    function my_custom_code ($ipn_data, $cart_items) {

    //The $ipn_data, $cart_items arrays contain all the useful data.

    //Do something with it.

    $message = implode(“*”,$ipn_data) . ” *** ” . implode(“*”,$cart_items);

    $message = wordwrap($message, 70, “rn”, TRUE);

    $message = str_replace(“n.”, “n..”, $message);

    $header = “from:sender@email”;

    $subject = “sales data”;

    $to = “receiver@email”;

    $mail_sent = @mail($to,$subject,$message,$header);

    }

    September 5, 2018 at 10:55 am in reply to: How to get buyer's name and email address to be used in PHP code #78374
    ec999
    Member

    I wonder if you have seen my previous post? Can you help me? Thanks

    August 31, 2018 at 7:12 pm in reply to: How to get buyer's name and email address to be used in PHP code #78373
    ec999
    Member

    To get the information of the sale I tried to send the information via email to my self using the following code:

    add_action( ‘eStore_product_database_updated_after_payment’, ‘my_custom_code’, $ipn_data, $cart_items );

    function my_custom_code ($ipn_data, $cart_items) {

    //The $ipn_data, $cart_items arrays contain all the useful data.

    //Do something with it.

    $message = $ipn_data . ” *** ” . $cart_items;

    $message = wordwrap($message, 70, “rn”, TRUE);

    $message = str_replace(“n.”, “n..”, $message);

    $header = “from:sender@email”;

    $subject = “sales data”;

    $to = “receiver@email”;

    $mail_sent = @mail($to,$subject,$message,$header);

    }

    However the mail produced only the following: ***

    i.e. $ipn_data and $cart_items seemed to be empty variables. Can you explain that? Thanks in advance for your response.

    P.S. I have inserted my PDT Identity Token in the PayPal settings.

    August 24, 2018 at 8:07 pm in reply to: How to get buyer's name and email address to be used in PHP code #78372
    ec999
    Member

    Yes, I think you are right. A custom plugin using the action hook you provided in your first reply would be the best. I will go for that solution. Thank you.

    August 22, 2018 at 4:33 pm in reply to: How to get buyer's name and email address to be used in PHP code #78370
    ec999
    Member

    Thanks for your response.

    I just found “3rd party integration” in the settings section.

    If this is activated then eStore will post the IPN(instant payment notification) to the URL specified. I think that would be a good solution for me.

    Could the information that I need then be obtained by using the code you provided in your first response? Or is another approach needed?

    Thanks.

    August 20, 2018 at 8:14 pm in reply to: How to get buyer's name and email address to be used in PHP code #78368
    ec999
    Member

    Thank you for your response. I think that is just what I need to be able to do what I want.

    However, since I have no experience in going into the code of wordpress plugins, I would be happy if you could give me slightly more details – especially in regard to where I should place the above code supplemented with my own extra code.

    I do have some experience in PHP coding, but my computer programs are made using PowerBasic for Windows.

    Thanks again. So far my experience with eStore has been great. Really a fine plugin!

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ