Solved

Woo Commerce Abandoned Cart

  • 5 January 2021
  • 4 replies
  • 165 views

Badge

Im trying to set up an abandoned cart flow from my woo commerce/wordpress site. 

 

The emails are sending but when the customer clicks on the “Return To Cart” button it is coming up with a “Not Found” message. 

The button URL link is 

{{ organization.url|trim_slash }}/cart

 

Thanks 

icon

Best answer by Paul S 5 January 2021, 20:18

Hi @jht652 

So just for some additional background, we do use WooCommerce Data to Rebuild Carts from an Abandoned Cart Flow.

We will generate a key on the Started Checkout event that allows you to create a link that rebuilds the customer's cart in case they return to their cart via an email triggered by this event on another device. You can create this link using the following url parameter in an Abandoned Cart flow email triggered by a Started Checkout:

?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

Assembled, the url should look like the following:

{{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

The dynamically-generated product title link pulls directly from the URL you have inserted in your account settings. You may need to add a forward slash to your URL parameters between {{ organization.url }} and cart to resolve any errors with the destination URL. To add the forward slash, navigate to Table Block > Rows > Column 2 and double click the hyperlinked product title tag. Add the forward slash to the URL in the window and click OK. (It looks like you’ve already handled this step).

forwardslash.png

Could you try using your URL in the form of https://www.remainderofyourURL and then the 

/cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }} and see if that helps for the link associated with your “Return to your cart” button?

 

So it should look something like https://www.restofdomain//cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

 

The reason for this is if you are using {{ organization.url }} to link to a non-secure HTTP URL, you will need to manually add your URL using HTTPS for the cart to rebuild correctly.

 

Try this out and let me if this resolves the issue. 

View original

4 replies

Userlevel 5
Badge +3

Hi @jht652 

So just for some additional background, we do use WooCommerce Data to Rebuild Carts from an Abandoned Cart Flow.

We will generate a key on the Started Checkout event that allows you to create a link that rebuilds the customer's cart in case they return to their cart via an email triggered by this event on another device. You can create this link using the following url parameter in an Abandoned Cart flow email triggered by a Started Checkout:

?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

Assembled, the url should look like the following:

{{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

The dynamically-generated product title link pulls directly from the URL you have inserted in your account settings. You may need to add a forward slash to your URL parameters between {{ organization.url }} and cart to resolve any errors with the destination URL. To add the forward slash, navigate to Table Block > Rows > Column 2 and double click the hyperlinked product title tag. Add the forward slash to the URL in the window and click OK. (It looks like you’ve already handled this step).

forwardslash.png

Could you try using your URL in the form of https://www.remainderofyourURL and then the 

/cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }} and see if that helps for the link associated with your “Return to your cart” button?

 

So it should look something like https://www.restofdomain//cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }}

 

The reason for this is if you are using {{ organization.url }} to link to a non-secure HTTP URL, you will need to manually add your URL using HTTPS for the cart to rebuild correctly.

 

Try this out and let me if this resolves the issue. 

Badge

Hi Paul, Yes.. that’s worked for me now. Thanks so much :) 

Userlevel 4
Badge +1

Adding some additional info just in case others might run into similar problems.

Another thing which might trigger not found is when woocommerce is customized and the /cart is not visible anymore or is renamed to something else. i.e with slide-in cart functionality.

Always make sure you use the correct name for the cart page.

Badge

I’m having a similar problem where {{ organization.url }}cart?wck_rebuild_cart={{ event.extra.CartRebuildKey }} is not rebuilding the cart.

 

Any ideas?

 

Maybe a better question is…

Do test emails rebuild a cart when they use sample data?

Reply