简体   繁体   English

Prestashop传真模块

[英]Prestashop Fax Module

I am using Prestashop for a Pizzashop. 我正在将Prestashop用于Pizzashop。 The shop owner asked me if there is any way the orders which users place online, are printed directly on fax machine? 商店老板问我,用户在线下的订单是否可以通过传真机直接打印? Is there any way or any module which can be useful in this regards? 在这方面是否有任何有用的方法或模块? Or any module which can directly print orders on printer? 或任何可以直接在打印机上打印订单的模块?

Thanks and Regards 谢谢并恭祝安康

This questions boild down to: 这个问题可以归结为:

Is there a PHP script that can send a print order to a Fax machine? 是否存在可以将打印命令发送到传真机的PHP脚本?

If yes, then you can solve your problem. 如果是,那么您可以解决您的问题。 First, you'd have to create a module for PrestaShop - specific for this shop. 首先,您必须为PrestaShop创建一个模块-专门针对该商店。

This module would use hookValidateOrder - when an order is confirmed this hook is triggered. 该模块将使用hookValidateOrder确认订单后,将触发该挂钩。

In your function for this hook you would: 在此钩子函数中,您将:

  • Build your own document for fax (using template and variables available in the hook) 构建自己的传真文档(使用挂钩中可用的模板和变量)
  • Use buil-in functions to generate the order document - as far as I remember these functions do exists. 使用内置函数生成订单文档-据我所知,这些函数确实存在。
  • Then simply post a work order to your local fax machine to print the generated PDF or your own document. 然后,只需将工作单过帐到本地传真机即可打印生成的PDF或您自己的文档。

I also recommend to build Fax parameters into your module - configurable through back-office. 我还建议将传真参数内置到您的模块中-可通过后台进行配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM