Jump to content

[RISOLTO] DDT


Aquila_77

Recommended Posts

Non ci riesco, qual'è la modifica da apportare???

Grazie

Questa è la parte che si riferisce al logo:

* Invoice header
*/
public function Header()
{
global $cookie;

$conf = Configuration::getMultiple(array('PS_SHOP_NAME', 'PS_SHOP_ADDR1', 'PS_SHOP_CODE', 'PS_SHOP_CITY', 'PS_SHOP_COUNTRY', 'PS_SHOP_STATE'));
$conf['PS_SHOP_NAME'] = isset($conf['PS_SHOP_NAME']) ? Tools::iconv('utf-8', self::encoding(), $conf['PS_SHOP_NAME']) : 'Your company';
$conf['PS_SHOP_ADDR1'] = isset($conf['PS_SHOP_ADDR1']) ? Tools::iconv('utf-8', self::encoding(), $conf['PS_SHOP_ADDR1']) : 'Your company';
$conf['PS_SHOP_CODE'] = isset($conf['PS_SHOP_CODE']) ? Tools::iconv('utf-8', self::encoding(), $conf['PS_SHOP_CODE']) : 'Postcode';
$conf['PS_SHOP_CITY'] = isset($conf['PS_SHOP_CITY']) ? Tools::iconv('utf-8', self::encoding(), $conf['PS_SHOP_CITY']) : 'City';
$conf['PS_SHOP_COUNTRY'] = isset($conf['PS_SHOP_COUNTRY']) ? Tools::iconv('utf-8', self::encoding(), $conf['PS_SHOP_COUNTRY']) : 'Country';
$conf['PS_SHOP_STATE'] = isset($conf['PS_SHOP_STATE']) ? Tools::iconv('utf-8', self::encoding(), $conf['PS_SHOP_STATE']) : '';

if (file_exists(_PS_IMG_DIR_.'/logo.jpg'))
$this->Image(_PS_IMG_DIR_.'/logo.jpg', 10, 8, 0, 15);
$this->SetFont(self::fontname(), 'B', 15);
$this->Cell(115);

if (self::$orderReturn)
$this->Cell(77, 10, self::l('RETURN #').' '.sprintf('d', self::$orderReturn->id), 0, 1, 'R');
elseif (self::$orderSlip)
$this->Cell(77, 10, self::l('SLIP #').' '.sprintf('d', self::$orderSlip->id), 0, 1, 'R');
elseif (self::$delivery)
$this->Cell(77, 10, self::l('DELIVERY SLIP #').' '.Configuration::get('PS_DELIVERY_PREFIX', intval($cookie->id_lang)).sprintf('d', self::$delivery), 0, 1, 'R');
elseif (self::$order->invoice_number)
$this->Cell(77, 10, self::l('INVOICE #').' '.Configuration::get('PS_INVOICE_PREFIX', intval($cookie->id_lang)).sprintf('d', self::$order->invoice_number), 0, 1, 'R');
else
$this->Cell(77, 10, self::l('ORDER #').' '.sprintf('d', self::$order->id), 0, 1, 'R');
}

/**

Link to comment
Share on other sites

Ciao,

per il ddt puoi modificare la linea 84 del file \classes\PDF.php

$this->Cell(80, 20, ecc.ecc. 



con

$this->Cell(-125, 30, ecc. ecc.

sono rispettaivamente le coordinate x ed y del testo DOCUMENTO DI ...ecc

fai varie prove e vedi quali valori si adattano meglio. le coordinate che ti ho inserito di esempio spostano il testo in basso a sinistra.

Se viste le dimensioni "discrete" del logo la scritta non ci stà, puoi diminuire il font alla riga 76 da 15 a 10 (in questo caso devi aggiustare le coordinate ancora)

se nemmeno ci stà, devi modificare tutto il resto... verificando dove intervenire (ma te lo sconsiglio, al massimo cambia la traduzione in ddt)

Spero di esserti stato di aiuto.

Ciroco

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