Jump to content

[Solved] Showing "Customer message" in cart summary.


metal1616

Recommended Posts

Thanks rocky!

 

But I'm trying to do this, but the problem is that I don't know how to take the value of the "message".

 

I see in OrderController.php in the function: 

public function processAddress()
    {

The code in wich the value is collected from the form: 

if (Tools::isSubmit('message')) {
                $this->_updateMessage(Tools::getValue('message'));
            }

But I don't know how to retrieve the value in ParentOrderController::_assignSummaryInformations function.

 

Any idea?

Link to comment
Share on other sites

Thank you so much rocky! I solved it!

 

But the correct lexical is this:

$message = Message::getMessageByCartId((int)$this->context->cart->id);
        $this->context->smarty->assign('message', $message['message']);

I will change the name of the post to [solved].

 

Thanks again rocky.

Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...