diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml index 1bfa30478df8a..5a064b33355a4 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/view/gallery.phtml @@ -47,11 +47,21 @@ "data": getGalleryImagesJson() ?>, "options": { "nav": "getVar("gallery/nav") ?>", - "loop": getVar("gallery/loop") ? 'true' : 'false' ?>, - "keyboard": getVar("gallery/keyboard") ? 'true' : 'false' ?>, - "arrows": getVar("gallery/arrows") ? 'true' : 'false' ?>, - "allowfullscreen": getVar("gallery/allowfullscreen") ? 'true' : 'false' ?>, - "showCaption": getVar("gallery/caption") ? 'true' : 'false' ?>, + getVar("gallery/loop"))): ?> + "loop": getVar("gallery/loop") ?>, + + getVar("gallery/keyboard"))): ?> + "keyboard": getVar("gallery/keyboard") ?>, + + getVar("gallery/arrows"))): ?> + "arrows": getVar("gallery/arrows") ?>, + + getVar("gallery/allowfullscreen"))): ?> + "allowfullscreen": getVar("gallery/allowfullscreen") ?>, + + getVar("gallery/caption"))): ?> + "showCaption": getVar("gallery/caption") ?>, + "width": "getImageAttribute('product_page_image_medium', 'width') ?>", "thumbwidth": "getImageAttribute('product_page_image_small', 'width') ?>", getImageAttribute('product_page_image_small', 'height') || $block->getImageAttribute('product_page_image_small', 'width')): ?> @@ -66,18 +76,28 @@ "transitionduration": getVar("gallery/transition/duration") ?>, "transition": "getVar("gallery/transition/effect") ?>", - "navarrows": getVar("gallery/navarrows") ? 'true' : 'false' ?>, + getVar("gallery/navarrows"))): ?> + "navarrows": getVar("gallery/navarrows") ?>, + "navtype": "getVar("gallery/navtype") ?>", "navdir": "getVar("gallery/navdir") ?>" }, "fullscreen": { "nav": "getVar("gallery/fullscreen/nav") ?>", - "loop": getVar("gallery/fullscreen/loop") ? 'true' : 'false' ?>, + getVar("gallery/fullscreen/loop")): ?> + "loop": getVar("gallery/fullscreen/loop") ?>, + "navdir": "getVar("gallery/fullscreen/navdir") ?>", - "navarrows": getVar("gallery/fullscreen/navarrows") ? 'true' : 'false' ?>, + getVar("gallery/transition/navarrows")): ?> + "navarrows": getVar("gallery/fullscreen/navarrows") ?>, + "navtype": "getVar("gallery/fullscreen/navtype") ?>", - "arrows": getVar("gallery/fullscreen/arrows") ? 'true' : 'false' ?>, - "showCaption": getVar("gallery/fullscreen/caption") ? 'true' : 'false' ?>, + getVar("gallery/fullscreen/arrows")): ?> + "arrows": getVar("gallery/fullscreen/arrows") ?>, + + getVar("gallery/fullscreen/caption")): ?> + "showCaption": getVar("gallery/fullscreen/caption") ?>, + getVar("gallery/fullscreen/transition/duration")): ?> "transitionduration": getVar("gallery/fullscreen/transition/duration") ?>, diff --git a/app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php b/app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php index f06da0de0fd00..92d00d0436634 100644 --- a/app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php +++ b/app/code/Magento/Sales/Model/Order/Email/Sender/OrderSender.php @@ -138,7 +138,7 @@ protected function prepareTemplate(Order $order) */ $this->eventManager->dispatch( 'email_order_set_template_vars_before', - ['sender' => $this, 'transport' => $transportObject, 'transportObject' => $transportObject] + ['sender' => $this, 'transport' => $transportObject->getData(), 'transportObject' => $transportObject] ); $this->templateContainer->setTemplateVars($transportObject->getData());