Jump to content

José Antonio

Members
  • Posts

    19
  • Joined

  • Last visited

Community Answers

  1. José Antonio's post in add new string [INVOICE] was marked as the answer   
    OK, solved.... ithink
     
    <FILE original="pdf/invoice.addresses-tab.tpl" source-language="en-US" target-language="en" datatype="plaintext"> <BODY> <TRANS-UNIT id="1f2f0f119a907c6c67a3c6fcde0193ab"> <SOURCE>simplified</SOURCE> <TARGET>simplified</TARGET> <NOTE>Context: File: pdf/invoice.addresses-tab.tpl:36</NOTE> </TRANS-UNIT> I have changed trans-unit for a random one and it works in translations -> Shop - PDF
     
     
  2. José Antonio's post in Invoice template by iso country was marked as the answer   
    solved:
     
    $state = $delivery_address->id_state; ///// return $this->smarty->fetch($this->getTemplateByState($state)); ///// protected function getTemplateByState($state) { $file = Configuration::get('PS_INVOICE_MODEL'); // try to fetch the iso template $template = $this->getTemplate($file.'.'.$state); // else use the default one if (!$template) { $template = $this->getTemplate($file); } return $template; }  
×
×
  • Create New...