Я новичок в разработке. Я хочу создать кнопку отслеживания порядка в теме учетной записи gmail. Как ниже изображения enter image description hereКак передать динамический url в gmail viewAction метод Go-to Action с использованием magento?
Пример: code.gs
function testSchemas() {
var htmlBody = HtmlService.createHtmlOutputFromFile('mail_template').getContent();
MailApp.sendEmail({
to: Session.getActiveUser().getEmail(),
subject: 'Tracking Order status in the Inbox - ' + new Date(),
htmlBody: htmlBody,
});
}
mail_template.html
<html>
<head>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://checkout.example.com/sales/order/view/order_id/1666039/",
"name": "Track Order"
},
"description": "See the order status"
}
</script>
</head>
<body>
<p>
This a test for a Go-To action in Gmail.
</p>
</body>
</html>
Как передать динамическое значение для целевого атрибута?
Спасибо заранее!
Такая же проблема я также сталкивается .. –