VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: caesarsk on April 14, 2013, 10:41:45 AM

Title: display vendor info in invoice
Post by: caesarsk on April 14, 2013, 10:41:45 AM
hi all,
i need a little help with php code.
in invoice template i have table (uuuuu:)). in cell i have show vendor info, but one cell, one vendor parameter (for example field address 1)
how i white php code?
i mean some like this:
<?php echo $this->orderDetails['shipmentName']->shipmentmethods['shipment_name']; ?>

the same thing, I need show ONLY shipment and payment methot name, without picture and description

pls help
thx
Title: Re: display vendor info in invoice
Post by: K&K media production on April 20, 2013, 14:31:35 PM
add in you invoice template this code and in configuration enable vm debug mode

vmdebug('$this->vendor',$this->vendor->vendorFields['fields']);

then you will find a array with all vendor information and you can build your own output

example:

echo $this->vendor->vendorFields['fields']['address_1']['value']

to get all available information from order, use this debug code

vmdebug('$this->orderDetails',$this->orderDetails);