t.zak510 Posted June 27, 2017 Share Posted June 27, 2017 Hello, How can I create a button inside every order which send an email, I have the following code: ----------------------------------------------------------------------------------------------------------------------- $fromTitle = Configuration::get('WK_MP_FROM_MAIL_TITLE'); $to = $mpOrderDetail['seller_email']; Mail::Send( $mpOrderDetail['seller_default_lang_id'], 'mp_order', Mail::l('Order Created', $mpOrderDetail['seller_default_lang_id']), $templateVars, $to, $mpOrderDetail['seller_name'], $adminEmail, $fromTitle, null, null, _PS_MODULE_DIR_.'marketplace/mails/', false, null, null ); ------------------------------------------------------------------------------------------------------------------------- The following code works fine but how to add a button that will appear on every order and when I click the button, it triggers that code. Thanks Link to comment Share on other sites More sharing options...
t.zak510 Posted June 27, 2017 Author Share Posted June 27, 2017 any other solution via code Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now