Jump to content

bsrweb

Members
  • Posts

    2
  • Joined

  • Last visited

Profile Information

  • Activity
    Agency

bsrweb's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi maddock - could you help me sort this problem then...? How do I do it then?
  2. http://www.prestashop.com/forums/topic/57538-solved-how-to-insert-vat-number-in-pdf-invoice/ -------------------------- You'll need to edit classes/PDF.php. You can add your VAT number on lines 193-197 of Footer() function: $this->Cell(0, 5, $conf['PS_SHOP_NAME_UPPER'].(!empty($conf['PS_SHOP_ADDR1']) ? ' - '.self::l('Headquarters:').' '.$conf['PS_SHOP_ADDR1'].(!empty($conf['PS_SHOP_ADDR2']) ? ' '.$conf['PS_SHOP_ADDR2'] : '').' '.$conf['PS_SHOP_CODE'].' '.$conf['PS_SHOP_CITY'].((isset($conf['PS_SHOP_STATE']) AND !empty($conf['PS_SHOP_STATE'])) ? (', '.$conf['PS_SHOP_STATE']) : '').' '.$conf['PS_SHOP_COUNTRY'] : ''), 0, 1, 'C', 1);$this->Cell(0, 5,(!empty($conf['PS_SHOP_DETAILS']) ? self::l('Details:').' '.$conf['PS_SHOP_DETAILS'].' - ' : '').(!empty($conf['PS_SHOP_PHONE']) ? self::l('PHONE:').' '.$conf['PS_SHOP_PHONE'] : ''), 0, 1, 'C', 1); For example: $this->Cell(0, 5, $conf['PS_SHOP_NAME_UPPER'].(!empty($conf['PS_SHOP_ADDR1']) ? ' - VAT Number: 12345678 - '.self::l('Headquarters:').' '.$conf['PS_SHOP_ADDR1'].(!empty($conf['PS_SHOP_ADDR2']) ? ' '.$conf['PS_SHOP_ADDR2'] : '').' '.$conf['PS_SHOP_CODE'].' '.$conf['PS_SHOP_CITY'].((isset($conf['PS_SHOP_STATE']) AND !empty($conf['PS_SHOP_STATE'])) ? (', '.$conf['PS_SHOP_STATE']) : '').' '.$conf['PS_SHOP_COUNTRY'] : ''), 0, 1, 'C', 1);$this->Cell(0, 5,(!empty($conf['PS_SHOP_DETAILS']) ? self::l('Details:').' '.$conf['PS_SHOP_DETAILS'].' - ' : '').(!empty($conf['PS_SHOP_PHONE']) ? self::l('PHONE:').' '.$conf['PS_SHOP_PHONE'] : ''), 0, 1, 'C', 1); Change 12345678 to your VAT number. --------------------------------- Found this solution on pdf & vat - but cant find the classes/PDF.php anywhere? Can anybody help... My prestashop is PrestaShop™ 1.5.4.1 Yours bjarke
×
×
  • Create New...