After speaking with Mailchimp Support, we determined that the cart data sent by this module was not including the "checkout_url" value which is required for Abandoned Carts: http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...
Can view your data via API:
GET /3.0/ecommerce/stores/{STORE_ID}/carts
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | mailchimp_ecommerce-abandoned-carts-checkout-url-2903701-5.patch | 1.19 KB | firewaller |
Comments
Comment #2
firewaller commentedAttached patch adds hardcoded "checkout_url" value.
This value should probably be configurable considering some people may be overriding the URL or have it on a separate domain.
Also, I couldn't get a direct answer from support, but the API response example has an absolute URL without the protocol, so maybe we should have reformat the value:
"checkout_url" : "freddiesjokes.com/cart/?checkout=xxxx"Comment #3
firewaller commentedThe above patch was for 7.x-1.1.
I have re-rolled it to piggyback off the proposed "Store missing domain" patch here: https://www.drupal.org/node/2903707#comment-12229767
Comment #4
torgospizzaNice catch. However, I think instead of hard-coding
/cartwe may want to utilizecommerce_checkout_order_uri($order)to pass along to MailChimp the actual URL for their order status. Then, it could be potentially easier to send a user back to the actual page they were at when they abandoned their order. (Also, in case developers have implemented any custom cart URLs, we'll want to ensure the customer is sent to their correct page.)Comment #5
firewaller commentedUpdated patch attached.
Comment #6
firewaller commentedAdded missing slash (/) in URI.
Comment #7
torgospizzaWorks for me and is a requirement for abandoned carts.
Comment #8
torgospizzaComment #9
greg boggsWe also need to support the Platform name, so unfortunately, all 3 of these need a refactor :\
Comment #10
torgospizzaComment #11
firewaller commented@Greg Boggs, I'm happy to refactor this patch as necessary. Where do you see the requirement for Platform name? I don't see it in the carts documentation:
http://developer.mailchimp.com/documentation/mailchimp/reference/ecommer...
Comment #12
greg boggsWe work directly with the MailChimp integration team and add things based on their feedback even when the documentation isn't 100% clear.
Comment #13
firewaller commentedOk. Do you know where I can find the platform name key or who I can contact to find out?
Comment #14
greg boggsThe platform name field is already in the dev release on github. We just need to expand that code to add the domain. It's not documented in the API because the platform names are Drupal specific.
Comment #15
firewaller commented@Greg Boggs it seems like the platform name needs to be stored in a variable to be used outside of the form. Additionally, to clarify, will the platform name need to be added to the $order_data array in the last patch?
Comment #16
firewaller commentedAttached is just a re-rolled patch of above.
Comment #17
firewaller commentedComment #18
marthinal commentedI had the same problem with D8 version. Created a PR https://github.com/thinkshout/mailchimp_ecommerce/pull/143
Comment #20
ruscoe commentedPlatform name is only used when creating a store. The patch is good.