Jump to content

How to move a button from shoppingCart to Shipping step


suwanchaic

Recommended Posts

Just install print quotation addon and after press cart then display a new button 'print quotation' on the web store in the first step => Summary, given code like this:

!$this->registerHook('shoppingCart')
and ....

function hookShoppingCart($params)
{
return $this->display(__FILE__, 'printquotecarttopdf.tpl');
}


I try to move the button 'print quotation' to step => Payment , modify the line like this:

!$this->registerHook('payment')

and change the line...

function hookPayment($params)
{
return $this->display(__FILE__, 'printquotecarttopdf.tpl');
}

But it's not work. Do anyone know how to hook the button???

Link to comment
Share on other sites

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...