Save {{cart_recovery_link}} in custom field

[ad_1]

Hi people!

Is it possible to save the {{cart_recovery_link}} variable in the custom field?

My intention is:
I have a conditional with 2 possibilities, one creates a 10% coupon and the other a 20% coupon.
Right in the email that will be sent to the customer I want to use the variable {{cart_recovery_link coupon='{{wc_dynamic_coupon id=”xxx”}}’}}, so that the link already loads the included coupon.

So, I thought about saving the link in a custom field while it is still inside the conditional, so that it saves the link with the corresponding coupon, and then sends the value of that field in the email. This would allow me to not have to create 2 email templates while still inside the conditional. That way, just 1 email template would be enough.

But I tried everything and the {{cart_recovery_link}} variable is not saved in a custom field.

If you have any guidance, I would be very grateful.
Guina.-

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer