Tips and Tricks HQ Support Portal › Forums › WP eStore Forum › WP eStore General Questions › Aweber – eStore product purchase send tags
- This topic has 7 replies, 3 voices, and was last updated 3 years, 6 months ago by Yaron.
-
AuthorPosts
-
January 6, 2017 at 2:24 am #13912RobertParticipant
I am using the Aweber integration so that when someone purchases a product they are automatically added to a list.
Is there any way to send tags along with the customer information? Ideally I’d like to send some address info (city, state, zip) for targeting purposes. Is this possible?
January 6, 2017 at 4:12 am #74877RobertParticipant…possibly even IP Address…
January 6, 2017 at 4:19 am #74878RobertParticipantFYI…I’m sure you know this, but found this snippet on Aweber’s site:
# create a subscriber
$params = array(
’email’ => ‘johndoe@example.com’,
‘ip_address’ => ‘127.0.0.1’,
‘ad_tracking’ => ‘client_lib_example’,
‘misc_notes’ => ‘my cool app’,
‘name’ => ‘John Doe’,
‘custom_fields’ => array(
‘Car’ => ‘Ferrari 599 GTB Fiorano’,
‘Color’ => ‘Red’,
),
‘tags’ => array(‘cool_app’, ‘client_lib’, ‘other_tag’),
);
January 9, 2017 at 12:22 am #74879RobertParticipantUPDATE:
I did find this page on your site with some digging:
Example Code for Custom Autoresponder Integration with WP eStore
which was very helpful.
I believe I understand how to update tags for a subscriber, but an getting the following error from Aweber:
403 Method requires access to Subscriber information.
AWeber states:
What is it?
This error is raised when you make a request to a resource that requires access to subscriber information, but your application has not specifically requested access to subscriber information from the AWeber Customer.
Troubleshooting Checklist
Log into your labs account and select ‘access to subscribers information’ for your application.
Issue new access tokens to your application.
Not sure is your app has the correct permissions to update subscriber info or I’m not doing it right…just thought I’d check if your app has the right permissions to update subscriber info.
January 10, 2017 at 1:22 am #74880adminKeymasterWith our app we use the default permission so everyone is okay with it. The following statement from AWeber should explain why:
Only request permissions that your application needs in order to function. Keep in mind that users will be less comfortable allowing access to sensitive information.
You are doing your own custom integration basically. So you should create your own app with more permission then authorize that app. Use the plugin’s hook to be notified when an autoresponder signup should be done, then with your code (and your own app) do the signup.
You can create a small addon and handle this whole thing from that addon (without affecting anyone else). So you would disable the AWeber option in eStore settings then handle everything from the custom addon. The following addon can be used as an example:
https://www.tipsandtricks-hq.com/ecommerce/estore-mad-mimi-integration-addon-2841
January 10, 2017 at 5:36 pm #74881RobertParticipantOk, that makes sense. Thanks.
January 28, 2017 at 4:03 am #74882RobertParticipantI was able to use the Mad Mimi Integration you suggested as a starting point for my own addon. Thanks, that was of great help.
I noticed in the hook “eStore_item_specific_autoresponder_signup”, you are only sending the “item_id” and “item_name”.
It would be of great value if there were more information available.
Would it be possible to add both the “current_cart_item” and “retrieved_product” to that call as well so that information would be available for any addon using that hook?
Secondly, is there any hook that isn’t called for each cart item, but could be called for the entire cart at once?
All that being said…would it be a valid solution to use the “eStore_product_database_updated_after_payment” hook instead of the eStore_item_specific_autoresponder_signup hook if I wanted to tie in to the entire cart all at once?
Thanks
May 20, 2021 at 2:54 pm #83040 -
AuthorPosts
- You must be logged in to reply to this topic.