Thanks. I am looking into it.
It seems really simple to pass variables onto a page. Except It's not. I really am missing something in this MVC thing.
For example...
After some digging into the code I found four files that seem to deal with the "Success" page on checkout.
catalog/controller/checkout/success.php -- actual
catalog/language/english/checkout/success.php
catalog\view\theme\default\template\checkout\success.tpl
catalog\model\checkout\order.php
So what I want to do is capture the order Id. I can see it being set in a function in order.php ($order_id)
I cannot for the life of me get it to pass to any page even when I set it in a session variable.
I even tried manipulating this function and setting my new variable as global...
Code: Select all
class ControllerCheckoutSuccess extends Controller {
public function index() {
if (isset($this->session->data['order_id'])) {
$this->cart->clear();
unset($this->session->data['shipping_method']);
unset($this->session->data['shipping_methods']);
unset($this->session->data['payment_method']);
unset($this->session->data['payment_methods']);
unset($this->session->data['guest']);
unset($this->session->data['comment']);
unset($this->session->data['order_id']);
unset($this->session->data['coupon']);
}
I am not sure what is happening as far as how all the variables get passed to where and where I should add mine so that they get passed. At this point I feel pretty silly. So if anyone wants to give me a clue I really appreciate it.