Skip to main content
Solved

How to automate link from cart to checkout for each customer

  • December 11, 2024
  • 1 reply
  • 13 views

Forum|alt.badge.img

I want a link that turns the customers cart into check out with the exact items, personalised for each customer. I already have the code for personalised checkout abbandonment. Thanks

Best answer by Christiannoerbjerg

Hi ​@sfdahj!

Thank you for posting in the Community!

You could try the following code, which works in Shopify :-) 

https://yourstore.com/cart/ {% for item in event.extra.line_items %} {{ item.variant_id }}:{{ item.quantity }}{% if forloop.last == false %},{% endif %} {% endfor %}/checkout

Hope that helps! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

Christiannoerbjerg
Expert Problem Solver II
Forum|alt.badge.img+12

Hi ​@sfdahj!

Thank you for posting in the Community!

You could try the following code, which works in Shopify :-) 

https://yourstore.com/cart/ {% for item in event.extra.line_items %} {{ item.variant_id }}:{{ item.quantity }}{% if forloop.last == false %},{% endif %} {% endfor %}/checkout

Hope that helps! :-) 

Christian Nørbjerg Enger
Partner & CPO
Web: Segmento.dk
LinkedIn: @christianfromsegmento
Voldbjergvej 22b, 8240 Risskov


Reply