Вы можете создать after plugin
, чтобы добавить всплывающую подсказку к полям улиц, вам необходимо ввести оформление заказа LayoutProcessor
Class LayoutProcessor
{
/**
* @param \Magento\Checkout\Block\Checkout\LayoutProcessor $subject
* @param array $jsLayout
* @return array
*/
public function afterProcess(
\Magento\Checkout\Block\Checkout\LayoutProcessor $subject,
array $jsLayout
) {
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][0]['tooltip']['description'] = "ToolTip 1";
$jsLayout['components']['checkout']['children']['steps']['children']['shipping-step']['children']
['shippingAddress']['children']['shipping-address-fieldset']['children']['street']['children'][1]['tooltip']['description'] = "ToolTip 2";
return $jsLayout;
}
}
Пожалуйста, обратитесь это POST