<?php $order = $block->getOrder(); $orderGeneralDetails = $order->getData(); $billingData = $order->getBillingAddress()->getData(); $shippingData = $order->getShippingAddress()->getData(); $paymentData = $order->getPayment()->getData(); $storeInfo = $block->getStoreInfo(); /** @var $block \Magento\Checkout\Block\Onepage\Success */ /** @var \Magento\Framework\Escaper $escaper */ ?> <div class="row"><div class="col-md-12 thankyou_pg_title"><h1><i class="fas fa-check mr-1"></i> Comanda ta a fost plasata cu succes. Iti multumim pentru increderea acordata!</h1></div></div><div class="row"><div class="col-md-12"><div class="thankyou_pg_msg"><div class="thankyou_msg_body card-body"><div class="msg_info_txt"><p>Daca ai intrebari suplimentare, te vom ajuta cu mare drag!</p><p>Programul nostru de lucru este cuprins intre orele <span>09:00 - 17:00 luni - vineri</span></p><p>Comenzile plasate dupa ora 17:00 sau in weekend vor fi procesate in prima zi lucratoare, intre orele <span>09:00 - 12:00</span></p></div><div class="msg_info_contact"><div class="left_col col text-center"><div class="left"><span class="user_txt"><i class="fas fa-user"></i> Ne poti contacta:</span></div><div class="right"><span class="phone_txt"><i class="fa fa-phone"></i><a href="tel:<?=$storeInfo->getPhone();?>"><?=$storeInfo->getPhone();?></a></span> <span class="separator">|</span> <span class="envelope_txt"><i class="fa fa-envelope-open"></i><a href="mailto:office@autogedal.ro">office@autogedal.ro</a></span></div></div><div class="right_col text-center"><div>Peste <span>35 K</span> de oameni ne plac pe <a href="https://www.facebook.com/AutoGedal" target="_blank">FACEBOOK</a></div><div class="fb-like" data-href="https://www.autogedal.ro/" data-width="" data-layout="button" data-action="like" data-size="large" data-share="true"></div></div></div></div></div></div></div><div class="row thankyou_pg_retur"><div class="col-md-6"><div class="inner_col"><span class="retur_ico_one"></span> <p class="col">Ai comandat din greseala un alt produs? Il schimbam <strong>GRATUIT</strong> cu cel corect.</p></div></div><div class="col-md-6"><div class="inner_col"><span class="retur_ico_two"></span> <p class="col">In cazul in care nu esti multumit de produs il poti schimba <strong>GRATUIT</strong> in maxim <strong>14 zile</strong></p></div></div></div><div class="row thankyou_pg_order"><div class="col-md-12"><h3 class="text-center order_title"><?= $escaper->escapeHtml(__('Comanda ta: <span>#%1</span>.', $order->getUserIncrementId()), ['span']) ?></h3></div><div class="col_1 col-md-3 col-sm-6"><div class="order_info_box"><h4 class="text-left"><i class="fas fa-file-invoice"></i> Informatii facturare</h4><p class="text-left"><?php echo $orderGeneralDetails['customer_firstname']; ?> <?php echo $orderGeneralDetails['customer_lastname']; ?></br> <?php echo $billingData['street']; ?> <?php echo $order->getBillingAddress()->getCity();?></br> <?php echo $billingData['country_id']; ?></br> T: <?php echo $billingData['telephone']; ?></br> E: <?php echo $orderGeneralDetails['customer_email']; ?> <?php if (isset($billingData['company']) && $billingData['company']): ?> <?php echo $billingData['company']; ?></br> <?php endif; ?> <?php if (isset($billingData['fax']) && $billingData['fax']): ?> F: <?php echo $billingData['fax']; ?></br> <?php endif; ?> <?php if (isset($billingData['vat_id']) && $billingData['vat_id']): ?> VAT: <?php echo $billingData['vat_id']; ?></br> <?php endif; ?></p></div></div><div class="col_2 col-md-3 col-sm-6"><div class="order_info_box"><h4 class="text-left"><i class="fas fa-credit-card"></i> Metoda de plata</h4><p class="text-left"><?php echo $paymentData['additional_information']['method_title']; ?></br> <?php echo $paymentData['additional_information']['instructions'] ?? ''; ?></p></div></div><div class="col_3 col-md-3 col-sm-6"><div class="order_info_box"><h4 class="text-left"><i class="fas fa-truck"></i> Informatii livrare</h4><p class="text-left"><?php echo $shippingData['firstname']; ?> <?php echo $shippingData['lastname']; ?></br> <?php echo $shippingData['street']; ?>, <?php echo $shippingData['city']; ?></br> <?php echo $shippingData['country_id']; ?></br> T: <?php echo $shippingData['telephone']; ?> <?php if (isset($shippingData['company']) && $shippingData['company']): ?> <?php echo $shippingData['company']; ?></br> <?php endif; ?> <?php if (isset($shippingData['fax']) && $shippingData['fax']): ?> F: <?php echo $shippingData['fax']; ?></br> <?php endif; ?> <?php if (isset($shippingData['vat_id']) && $shippingData['vat_id']): ?> VAT: <?php echo $shippingData['vat_id']; ?></br> <?php endif; ?></p></div></div><div class="col_4 col-md-3 col-sm-6"><div class="order_info_box"><h4 class="text-left"><i class="fas fa-box"></i> Metoda de livrare</h4><p class="text-left"><?php echo $orderGeneralDetails['shipping_description']; ?></p></div></div><div class="col-md-12"><div class="thankyou_pg_summary order-summary"><table class="thankyou-summary-table"><colgroup><col><col class="col-qty"><col class="col-price"></colgroup><thead><tr><th class="th-produs"><div class="produs-label-wrapper"><?= $escaper->escapeHtml(__('Produs')) ?></div></th><th class="th-qty"><?= $escaper->escapeHtml(__('Cantitate')) ?></th><th class="th-price"><?= $escaper->escapeHtml(__('Pret total')) ?></th></tr></thead><tbody><?php foreach ($order->getAllVisibleItems() as $item): ?> <?php $product = $block->getOrderProduct($item->getProductId()); ?> <tr class="product-item"><td class="td-produs"><a target="_blank" href="<?= $product ? $escaper->escapeUrl($product->getProductUrl()) : '#' ?>" class="image-link"><div class="image-wrapper"><img loading="lazy" src="<?= $escaper->escapeUrl($block->getProductImageUrl($product)); ?>" style="max-width: 100%; max-height: 100%;" alt="<?= $escaper->escapeHtmlAttr($item->getName()) ?>" title="<?= $escaper->escapeHtmlAttr($item->getName()) ?>"></div></a> <a target="_blank" href="<?= $product ? $escaper->escapeUrl($product->getProductUrl()) : '#' ?>" class="product-item-name-link"><strong class="product-name-text"><?= $escaper->escapeHtml($item->getName()) ?></strong></a></td><td class="td-qty"><span class="qty-badge"><?= (int)$item->getQtyOrdered() ?></span></td><td class="td-price"><span class="price-text"><?= /* @noEscape */ $order->formatPrice($item->getRowTotalInclTax()) ?></span></td></tr><?php endforeach; ?></tbody></table><table class="thankyou-summary-table thankyou-totals-table"><colgroup><col><col class="col-qty"><col class="col-price"></colgroup><tbody><tr><td></td><th scope="row"><?= $escaper->escapeHtml(__('Pret total')) ?></th><td class="amount"><?= /* @noEscape */ $order->formatPrice($order->getSubtotalInclTax()) ?></td></tr><?php if (abs((float)$order->getDiscountAmount()) > 0): ?> <tr><td></td><th scope="row"><?php if ($couponCode = $order->getCouponCode()): ?> <?= $escaper->escapeHtml(__('Discount (%1)', $couponCode)) ?> <?php else: ?> <?= $escaper->escapeHtml(__('Discount')) ?> <?php endif; ?></th><td class="amount"><?= /* @noEscape */ $order->formatPrice($order->getDiscountAmount()) ?></td></tr><?php endif; ?> <tr><td></td><th scope="row"><?= $escaper->escapeHtml(__('Transport')) ?></th><td class="amount"><?= /* @noEscape */ $order->formatPrice($order->getShippingInclTax()) ?></td></tr><?php if ($order->getTaxAmount() > 0): ?> <tr><td></td><th scope="row"><?= $escaper->escapeHtml(__('TVA')) ?></th><td class="amount"><?= /* @noEscape */ $order->formatPrice($order->getTaxAmount()) ?></td></tr><?php endif; ?> <tr><td></td><th class="total-label" scope="row"><?= $escaper->escapeHtml(__('TOTAL')) ?></th><td class="total-val amount"><?= /* @noEscape */ $order->formatPrice($order->getGrandTotal()) ?></td></tr></tbody></table></div></div></div><div class="thankyou_pg_buttons checkout-success"><!-- Add "onebutton" class when "create account" button is missing --><div class="actions-toolbar"><div class="primary"><a class="action primary continue" href="<?= $escaper->escapeUrl($block->getContinueUrl()) ?>"><span><?= $escaper->escapeHtml(__('Continue Shopping')) ?></span></a></div></div></div><div id="fb-root"></div><script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v9.0" nonce="WbHgai1M"></script>