Drupal MailChimp Ecommerce Recover Abandoned Cart - php

I am trying to integrate MailChimp to my Drupal 7 site. But I am facing some problems right now.
What I can do:
I can subscribe new users to my MailChimp list.
I can send order data to MailChimp when a customer completes their purchase.
I can send Welcome Message campaign email.
I can send First Purchase campaign email.
I can send follow up mails for these campaign mails (for example; send mail after 1 hour if a subscriber receives First Purhcase email).
What I can not do:
I can not send Abandoned Cart campaign emails.
I can not show product info on ecommerce mails.
I can not see Cart data when I make a POST request to usX.api.mailchimp.com/3.0/ecommerce/stores/{store_id}/carts
I would like to give more info if needed.
edit: fixed grammar
edit: I can see Cart data when I make a POST request to usX.api.mailchimp.com/3.0/ecommerce/stores/{store_id}/carts. To achieve that, I have just deleted cart data in my Drupal 7 commerce website. So it kind of worked like a soft restart.

I have found the issue and fixed it.
For future readers;
The issue was that, MailChimp eCommerce module is not sending the checkout_url(path to the cart) out of the box. Although it is not required to sent checkout_url while POSTing, it is mandatory if you want to use Abandoned Cart email. In order to fix that problem, there are two patches that needs to applied.
Patch #1
Patch #2
original link for the solution
Hope this helps someone :)

Related

Delay WooCommerce order processing mail

I have a question regards delaying a WooCommerce Out of the box email notifications. We use WooCommerce Shipment tracking and also Dokan plugins. And therefore we also have suborders: A suborder has also a tracking code. We provide that information in the parent order processing mail.
When a new order comes in, the shipment tracking is empty. I guess this is because the mail is sent too fast. I think this because of the reason, that when I send the processing mail from the admin backend manually, then I have all info. So the code is fully working. I only have the problem with the automatically sent mail from WooCommerce when a new order comes in.
I found this but there is no time delay: Send an Email notification to the admin for pending order status in WooCommerce
Also, I found this plugin code on Github from Damien Carbery.
But I don't know if I can just copy the code and make changes to it?
This is the part that I should change maybe:
'woocommerce_order_status_pending_to_processing' => array( 'WC_Email_New_Order', $this->default_defer_time ),

Paypal Third Party Shopping Cart Retrieve Information

Hi I'm creating a third party shopping cart using paypal for my client and i need retrieve some information after the payment is confirmed. I need to send an email to the seller with the product information like color, font-family, font-size, size of the product. But i have no idea of how can i retrieve the payment confirm information from paypal and then send to the seller this email.
Does someone knows how or just could give me a hint?
Thanks.
If you're not on wordpress, you can still use IPN data: have a read here: https://developer.paypal.com/webapps/developer/docs/classic/products/instant-payment-notification/
Note that Paypal's example code is not very good, and also that their IPN simulator is not currently working properly: Paypal IPN continually returns invalid from Sandbox
The PayPal IPN for WordPress plugin will make that very simple for you.
Just install the plugin and create a basic hook in your theme's functions.php file (or create a simple custom plugin file). The plugin has hooks so you can trigger based on any IPN, or based on the IPN transaction type or payment status.
Here is a link to the general dev guide and another link specific to the hooks available.
You could have the IPN solution working and sending an email within minutes, so then it's just a matter of building your email body the way you want.

PayPal "Thank you" page, with details

I'm working on setting up a page that will display some information to the end-user after they make a purchase through PayPal. This page will have quite a few different tasks that it will need to execute to ensure the user receives what they had paid for, this mostly includes displaying information for the user in-case something goes seriously wrong, for example: The email containing product information is never sent.
In this event I would like to instruct the user to fill out "X" form providing their custom transaction id, however I don't know how I'd pass that custom transaction id to the thank-you page from paypal.
I know how to use the IPN, and I'm rather familliar with it. I've always used it to send emails, etc; However here, considering I'm selling a virtual product, I need to make sure it's delivered automatically, and providing enough information so that any problems can be dealt with accordingly.
IPN itself is all you need. You can generate email notifications with a download link or an attachment of the digital item that you're selling and it will be delivered in real-time. It will also help you handle things like e-checks correctly so that the goods aren't delivered until the payment actually clears as opposed to when the first transaction (the pending e-check) comes through.
If you do want to display data on the thank you page (assuming you're working with Payments Standard) then you can use PDT, which is very similar to IPN except that it's intended to send data back to the thank you page. This is for display purposes only and is not recommended to be used for updating the database, sending emails, etc.
Yet another option would be to move to the Express Checkout API. That way the checkout flow will always finish on your site without setting up any auto-return or PDT features, and you can do whatever you need to do in the thank you page code very easily. Again, though, it's still recommended to use IPN for final post-payment processing so that you can handle things like pending payments.

bulk invite in Magento

How would I go about creating a bulk invite feature in Magento?
The steps would be:
An admin fills in a form with a comma separated list of emails.
Email recipient gets an email containing a link to the client registration page of Magento. In Magento this would be the page "/customer/account/create/".
Is there a free module that lets me do this? If not, how can I get started in adding a page in the admin screen which would allow me to send emails?
Thanks.
I ended up creating my own module which sends email during a form post. I got my ideas here:
Send email via Magento

PayPal don't dislay Pay with CC or DC with VitueMart

I have a prolem with PayPal, maybe anyone has experienced the same problem and knows the solution.
I'm using VirtueMart that has built in 2 PayPal payment methods Legacy and API. I'm using Legacy.
I read how to set up VirtueMart for PayPal (before that I had done it myself because it's very simple), only put the email, rest are optional.
The result I want to get on the PayPal page is let customers pay without registering - but I can't get it working. I'm always getting Log-in or Register.
I read the manual for PayPal - it says for Business accounts, like mine, there's a radio button Account Optional that has to be ON. I have it - but it still doesn't display Pay without Registering.
So, maybe someone can help me out with this one :)
The problem is the Country, as far as I could figure out. Paypal lists my country in the official Manual - but it's still not avaliable.

Categories