Jump to content

Crezco

Members
  • Posts

    23
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Crezco's Achievements

Newbie

Newbie (1/14)

  • Dedicated Rare
  • First Post Rare
  • Collaborator Rare
  • Week One Done Rare
  • One Month Later Rare

Recent Badges

3

Reputation

  1. For anyone who may interest. For Prestashop 1.6 & 1.7 To print invoice from BO with customer language, go to /classes/pdf/HTMLTemplateInvoice.php Under public function __construct, serach for : // header informations $this->date = Tools::displayDate($order_invoice->date_add); Just insert below: Context::getContext()->language = new Language($this->order->id_lang); That's all
  2. Finally I found how to make it work. This is only for wording into class files. Once you have introduced the trans() function, ex: $this->translator->trans('Only letters and the dot (.) character, followed by a space, are allowed.', [], 'Shop.Forms.Help') You should edit the adequate xlf file into /app/Resources/translations/default/ folder, and insert manually , example: <trans-unit id="dd7bf230fde8d4836917806aff6a6b27"> <source>Address</source> <target>Address</target> <note>Line: 211</note> </trans-unit> An voila, will show up in BO under Core translations. Perhaps it helps,
  3. Lyl, el Prestashop 1.7 funciona con el framework Symfony y utliza su sitema de traducciones con la funcion trans(), traducibvle desde el backoffice. Puedes ver documentacion en https://devdocs.prestashop.com/1.7/development/internationalization/translation/translation-tips/#adding-new-wordings No se porqué en mi instalación symfony no encuentra los nuevos wordings que he instertado en el codigo. Saludos
  4. Yes, into classes/form/CustomerFormatter.php I add a new customer field, look below: $format['email'] = (new FormField()) ->setName('email') ->setType('email') ->setLabel( $this->translator->trans( 'Email', [], 'Shop.Forms.Labels' ) ) ->setRequired(true); // NEW FIELD ADDED FOR VERIFICATION EMAIL $format['email_ver'] = (new FormField()) ->setName('email_ver') ->setType('email_ver') ->setLabel( $this->translator->trans('Email Verification',[],'Shop.Forms.Labels') ) ->setRequired(true); Verification email works fine, but $this->translator->trans('Email Verification',[],'Shop.Forms.Labels') don't show up into back office. Neither translations xlf files are modified with new field. Thanks for your help
  5. Hi, did you resolve the problem? I have same problem with Presta 1.7.8.3 and PHP 7.4 I insert new wordings into class files and tpl files and don't show up in BO Translation interface. Any help?
  6. Thanks technico2006 I set domain2 as Addon domain pointing to public_html and works. it helps !
  7. Hi, I read the article "BIND9 DNS Server Configuration on CentOS7" (https://systemzone.net/dns-server-configuration-on-centos-7-caching-dns-with-bind/) and I'm not able to make it, even my server provider cannot make it as well. There is any other easy way to reach it ? Thanks
  8. Hi guys, Need some help on how install SSL certificate into second shop froma multistore installation. I bought a new domain for shop2, this domain is parked on my server, and prestashop manage both shops (domain1.com and domain2.com) so good. The problem is how to secure with SSL domain2.com since this domain is parked with no dns zone on server. SSL certificates need a dns zone to be installed. I miss anything? I've read lot on internet but no solutions found. Thanks
  9. He encontrado la solucion en este post: https://www.prestashop.com/forums/topic/233513-integrar-wordpress-y-prestashop-facilmente/page-12 Se trata de crear un nuevo hook donde queremos las metas y crear un modulo que llame la funcion wp_head() y engancharlo al nuevo hook. Como no se me habia ocurrido. Saludos
  10. Tengo un problema, he integrado el wp en presta 1.6.11 todo bien, excepto que necesito incluir la funcion de wp wp_head() en el header.tpl de Presta. Ya que necesito que me aparezcan las meta etiquetas de wp en el header. No consigo llamar la funcion wp_header() desde el FrontController. Alguna idea? Saludos a todos
  11. Will be a great addon, but how to solve the problem on PS 1.6 right now? I need to apply as well both discounts, catalog and specific price rule. Thanks for sharing
  12. Hi For everyone who needs it, here you go a small php script that changes the order status after certain days. I used it on a cron job. Enjoy it! crezco
  13. May I reopen this topic? I'm working on Persta 1.6, and would like to make an itemon the top menu with 3 sub items on it. Such sub items are external links. I've created the 3 external links on the module back office, but I don't know how to tie them in a submenu. thanks everybody,
×
×
  • Create New...