Hi, there. Can anyone help me to understand why my checkout success page it is not showing on my magento1 store?
my module is OpenCart_Cart
my cart.xml inside of /app/design/frontend/base/default/layout/opencart/cart/cart.xml is:
<?xml version="1.0"?>
<layout version="0.1.0">
<checkout_onepage_index translate="label">
<reference name="head">
<action method="addJs">
<script>opencart/main.js</script>
</action>
</reference>
</checkout_onepage_index>
<checkout_onepage_success translate="label">
<reference name="content">
<reference name="checkout.success">
<block type="core/template" name="cart.info" template="opencart/cart/checkout/success.phtml" />
</reference>
</reference>
</checkout_onepage_success>
</layout>and my success.phtml inside of app/design/frontend/base/default/template/opencart/cart/checkout/success.phtml is:
<?php
$orderId = Mage::getSingleton('checkout/session')->getLastOrderId();
if($orderId){
?>
<div class="buttons-set">
<?php
$order = Mage::getModel('sales/order')->load($orderId);
$payment = $order->getPayment();
echo '<p>'. $payment->getMethodInstance()->getTitle() .'</p>';
?>
<div>
<span>opencart test checkout success</span>
</div>
</div>
<?php
}
?>but only shows the payment title:
how can I fix this to show the whole page on checkout success?
FIXED
It was missing on
config.xmlthe<layout>tag: