Adding custom fields in invoice emails in Magento 1.6?


HOME » PHP
I have added text fields to one step checkout page in Magento, now how
can I display the custom fields in invoice emails?

I need help on how to Add customise text at the bottom of magento
pdf invoice.



Example "Thank you for working with us" at the bottom of the pdf
invoice



Thank you in advance

Web Development
How many way to Enable and Disable Custom Magento Extension ?
Development

Wanting to add a custom Model to be rendered in a custom magento
admin form. Just cant seem to get the source model to render any of
the options. Should be a simple task to do this but maybe im missing
something. Couldnt really find anything on google as it was mostly to
do with system/config source model examples.. See code below



Model File (My/Module/Model/MyModel.php)



<?php
class My_Module_Model_MyModel extends Mage_Core_Model_Abstract
{
static public function getOptionArray()
{

$allow = array(
array('value' => '1', 'label' => 'Enable'),
array('value' => '0', 'label' => 'Disable'),
);

return $allow;
}
}


and my form tab file - Tab shows up with multiselect field, but its
blank (My/Module/Block/Adminhtml/Module/Edit/Tab/Data.php)



<?php

class My_Module_Block_Adminhtml_Module_Edit_Tab_Data extends
Mage_Adminhtml_Block_Widget_Form
{

protected function _prepareForm(){


$form = new Varien_Data_Form();
$this->setForm($form);
$fieldset = $form->addFieldset('module_form',
array('legend'=>Mage::helper('module')->__('Module
Information')));
$object = Mage::getModel('module/module')->load(
$this->getRequest()->getParam('module_id') );


echo $object;



$fieldset->addField('module_enabled', 'multiselect', array(
'label' => Mage::helper('module')->__('Allowed
Module'),
'class' => 'required-entry',
'required' => true,
'name' => 'module_enabled',
'source_model' => 'My_Module_Model_MyModel',
'after_element_html' => '<small>Select Enable to
Allow</small>',
'tabindex' => 1
));


if ( Mage::getSingleton('adminhtml/session')->getModuleData() )
{

$form->setValues(Mage::getSingleton('adminhtml/session')->getModuleData());

Mage::getSingleton('adminhtml/session')->setModuleData(null);
} elseif ( Mage::registry('module_data') ) {

$form->setValues(Mage::registry('module_data')->getData());
}
return parent::_prepareForm();
}


}


So i have other fields, tabs that all save the data etc but just
cant get the values to render using a custom model inside the
multiselect field.



Any help would be awesome!!



cheers

Web Development

I have installed Ship note extension from href="https://github.com/drewhunter/ShipNote"
rel="nofollow">https://github.com/drewhunter/ShipNote
it's optional note on onepage checkout i want to send this note in
order email. please see image.
enter image<br />
description here
Thanks.

Web Development
I would like to change the position of "country" with "zip code"?
Everything else is correct.

You can see the Value:


Zürich, 8605


and


Schweiz


Those need to be changed, but where can I ...
Development
I have added text fields to one step checkout page in Magento, now how
can I display the custom fields in invoice emails?
PHP

- Technology - Languages
+ Webmasters
+ Development
+ Development Tools
+ Internet
+ Mobile Programming
+ Linux
+ Unix
+ Apple
+ Ubuntu
+ Mobile & Tablets
+ Databases
+ Android
+ Network & Servers
+ Operating Systems
+ Coding
+ Design Software
+ Web Development
+ Game Development
+ Access
+ Excel
+ Web Design
+ Web Hosting
+ Web Site Reviews
+ Domain Name
+ Information Security
+ Software
+ Computers
+ Electronics
+ Hardware
+ Windows
+ PHP
+ ASP/ASP.Net
+ C/C++/C#
+ VB/VB.Net
+ JAVA
+ Javascript
+ Programming
Privacy Policy - Copyrights Notice - Feedback - Report Violation 2018 © BigHow