dynamic domain name

This commit is contained in:
O K
2025-09-04 15:12:53 +03:00
parent b834851889
commit 0949f1025b

View File

@@ -932,7 +932,7 @@ class MauticConnect extends Module
"@type" => "Order", "@type" => "Order",
"merchant" => [ "merchant" => [
"@type" => "Organization", "@type" => "Organization",
"name" => "exclusion-ua.shop" "name" => Tools::getShopDomainSsl()
], ],
"orderNumber" => $order_number, "orderNumber" => $order_number,
"orderStatus" => "http://schema.org/OrderInTransit", "orderStatus" => "http://schema.org/OrderInTransit",
@@ -1056,13 +1056,13 @@ class MauticConnect extends Module
"about" => [ // What this email is about: the abandoned cart items "about" => [ // What this email is about: the abandoned cart items
"@type" => "OfferCatalog", // A collection of offers/products "@type" => "OfferCatalog", // A collection of offers/products
"name" => "Неоформлене замовлення", "name" => "Неоформлене замовлення",
"description" => "Ви, можливо, забули придбати ці товари на exclusion-ua.shop.", "description" => "Ви, можливо, забули придбати ці товари на ".Tools::getShopDomainSsl(),
// Optionally, add a general image for the catalog/brand // Optionally, add a general image for the catalog/brand
// "image": "https://exclusion-ua.shop/logo.png", // // "image": "https://exclusion-ua.shop/logo.png",
"merchant" => [ "merchant" => [
"@type" => "Organization", "@type" => "Organization",
"name" => "exclusion-ua.shop", "name" => Tools::getShopDomainSsl(),
"url" => "https://exclusion-ua.shop" // URL of your store "url" => Tools::getShopDomainSsl(true) // URL of your store
], ],
"itemListElement" => $abandoned_cart_items_for_json // The list of products "itemListElement" => $abandoned_cart_items_for_json // The list of products
] ]
@@ -1165,7 +1165,7 @@ class MauticConnect extends Module
"@type" => "Order", "@type" => "Order",
"merchant" => [ "merchant" => [
"@type" => "Organization", "@type" => "Organization",
"name" => "exclusion-ua.shop" "name" => Tools::getShopDomainSsl()
], ],
"orderNumber" => $order_number, "orderNumber" => $order_number,
"orderStatus" => "http://schema.org/OrderInTransit", "orderStatus" => "http://schema.org/OrderInTransit",