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

Comments

firewaller created an issue. See original summary.

firewaller’s picture

Status: Active » Needs review
StatusFileSize
new1.01 KB

Attached 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"

firewaller’s picture

StatusFileSize
new1.12 KB

The 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

torgospizza’s picture

Nice catch. However, I think instead of hard-coding /cart we may want to utilize commerce_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.)

firewaller’s picture

StatusFileSize
new1.21 KB

Updated patch attached.

firewaller’s picture

StatusFileSize
new1.22 KB

Added missing slash (/) in URI.

torgospizza’s picture

Status: Needs review » Reviewed & tested by the community

Works for me and is a requirement for abandoned carts.

torgospizza’s picture

greg boggs’s picture

We also need to support the Platform name, so unfortunately, all 3 of these need a refactor :\

torgospizza’s picture

Status: Reviewed & tested by the community » Needs work
firewaller’s picture

@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...

greg boggs’s picture

We work directly with the MailChimp integration team and add things based on their feedback even when the documentation isn't 100% clear.

firewaller’s picture

Ok. Do you know where I can find the platform name key or who I can contact to find out?

greg boggs’s picture

The 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.

firewaller’s picture

@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?

firewaller’s picture

StatusFileSize
new1.19 KB

Attached is just a re-rolled patch of above.

firewaller’s picture

Status: Needs work » Needs review
marthinal’s picture

I had the same problem with D8 version. Created a PR https://github.com/thinkshout/mailchimp_ecommerce/pull/143

  • ruscoe committed 163b6ba on 7.x-1.x authored by firewaller
    Issue #2903701 by firewaller: Abandoned Carts support missing...
ruscoe’s picture

Status: Needs review » Fixed

Platform name is only used when creating a store. The patch is good.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.