Page 1 of 1

Delivery note - print to sticky labels

Posted: 15 Dec 2011, 16:31
by fesolutions
Hello

I have installed and am successfully using the component, thank you very much!

However, I would like to modify the delivery note. I would like to repeat the shipping and billing address 'boxes' at the bottom of the the pdf where the vendor details are. I have an A4 sheet with two sticky labels and I would like to print to them to save me writing out addresses each time!

Is this possible? If so, could you help me by pointing out where I need to look and what needs to be changed?
Thanks

Fran

Re: Delivery note - print to sticky labels

Posted: 15 Dec 2011, 18:26
by fesolutions
Hello

As a quicker resolution, can I change the billing address to be the vendor address, if so how?

Thanks

Re: Delivery note - print to sticky labels

Posted: 16 Dec 2011, 00:03
by Jan
Hi, this needs to be customized in the code - load the information and post them to template. :idea:

Re: Delivery note - print to sticky labels

Posted: 22 Dec 2011, 11:44
by fesolutions
HI Jan

Thanks for replying. I am trying to work out how to load the information and to which files. I have altered the template but it is producing a blank space where I want the vendor address to be shown. Can you help me?

I have the following in the template:

.'<span class="vendorfooter">'.JText::_('PLG_PHOCAPDF_VM_DELIVERY_PRINT_VENDOR_ADDRES_LBL').'</span><br />';
if ($a['vendor_store_name'] != '') {$o .= $a['vendor_store_name'].'<br />';}
$o .= $a['vendor_store_name'].$a['vendor_store_name'] .$a['vendor_store_name']. '<br />';
if ($a['extra_field_1'] != '') {
$o .= '<span class="extrafield">'.$a['l_extra_field_1'] . ': '.$a['extra_field_1']. '</span><br />';
}
if ($a['extra_field_2'] != '') {
$o .= '<span class="extrafield">'.$a['l_extra_field_2'] . ': '.$a['extra_field_2']. '</span><br />';
}
$o .= $a['vendor_address_1']. '<br />';
if ($a['vendor_address_2'] != '') {$o .= $a['vendor_address_2'].'<br />';}
$o .= $a['vendor_city'] .' '. $a['vendor_zip'] . '<br />';
if ($a['vendor_state'] != '') {$o .= $a['vendor_state'].'<br />';}
$o .= $a['vendor_country']

Can you tell me where I am going wrong?

Thanks

Fran