Basic requirements(安装需求):
- Joomla! 1.5 (tested on 1.5.21)
- VirtueMart (tested on 1.1.5)
Installation(安装)
1. Install Phoca PDF component (1.0.8 or later version, Phoca PDF component download link) in Joomla! Extension Manager. It is good to test, if you are able to create PDF documents on your site (e.g. with help of Phoca PDF Content plugin).
第一步:安装Phoca PDF component 组件(点击该链接下载Phoca PDF component download ).很容易进行测试。可以在您的站上创建pdf文档
2. Install Phoca PDF VirtueMart plugin (or Phoca PDF VirtueMart Email plugin) in Joomla! Extension Manager. Enable this plugin in Joomla! Plugin Manager (Phoca PDF VirtueMart plugin download site).
第二步:安装Phoca PDF VirtueMart plugin,点击该链接下载Phoca PDF VirtueMart plugin download
3. Install Phoca Install - VirtueMart component (Phoca Install - VirtueMart component download link) in Joomla! Extension Manager. Check "Ignore SQL query" in case, on your site there is installed previously version of VM IDnR addon (to not lose data). Before you install files and data with help of this component, VirtueMart must allready be installed on your site.
第三步:安装Phoca Install和VirtueMart组件(点击链接下载 Phoca Install - VirtueMart component download ).如果你的站已经安装该virtuemart插件,选择"Ignore SQL query" 。在安装之前,必须保障virtuemart已经在您的站上安装好了
(4). If you are using Phoca PDF VirtueMart Email plugin, install Phoca Email Component (it must be installed before making following modifications - Phoca Email component download link).
第四步:在做下面的基本修改之前,必须保证Phoca PDF VirtueMart Email插件已经安装,Phoca Email Component 已经安装
Basic Modification(基本的修改)
1. Displaying Delivery tab in detail of an order 在订单详情页显示Deliver标签
Modify the following file: 修改一下文件
administrator/components/com_virtuemart/html/order.order_print.php
FROM (line cca 191):从第199行开始将以下代码
TO:改成
$tab->endTab(); // Delivery $lang =& JFactory::getLanguage(); $lang->load('plg_phocapdf_virtuemart', JPATH_ADMINISTRATOR, null, true); $tab->startTab( JText::_('PLG_PHOCAPDF_VM_DELIVERY_TAB_LBL'), "delivery_pane" ); require_once(CLASSPATH.'ps_order_delivery.php'); $tab->endTab(); // End Delivery $tab->endPane();
Now the basic addon is installed. Go to "Order List" in your VirtueMart and click on some order (to edit it). Now the "Delivery" tab will be displayed in detail of an order.
现在基本的插件已经安装好了。现在点击"Order List" 并且查看具体的订单信息。现在你可以看到"Delivery"标签已经显示在订单详情里面了
If you click on "New delivery" button, you will be able to create new delivery.
You can create Invoice or Receipt. Delivery Note will be created automatically. After saving delivery, you will be able to display Invoice or Receipt and Delivery Note as PDF.
你可以创建invoice或者收据。提货单将被自动创建。在保存了提货单以后,invoice或者收据等就可以以pdf文档的形式显示了
If you are using Phoca PDF VirtueMart Email plugin , you can send emails to your customers.
如果你使用Phoca PDF VirtueMart Email插件,你就可以给您的客户发送邮件
Advanced Modifications (Phoca PDF VirtueMart plugin)高级选项修改(Phoca PDF VirtueMart插件)
1. Displaying Invoice, Delivery Note or Receipt in frontend, in Account Maintenance 在账户管理页面,显示invoice,提货单或者收据
Modify the following file修改一下文件:
administrator/components/com_virtuemart/classes/ps_order.php
FROM (line cca 23)从第23行将一下代码
TO修改成以下代码 :
FROM (line cca 729):从第729行将以下代码
TO:修改成以下代码
Then your customers will see PDF icon to Invoice, Delivery Note or Receipt (if created) in Account Maintenance view.
然后您的客户在账户管理页面就可以看到invoice,提货单,收据的图标,如下图所示
2. Fixing tab bug in detail window of an order (if you click on e.g. "New delivery" in delivery tab, the site is redirecting but not the delivery tab will be displayed - the first tab is displayed instead). The site should be redirecting back to delivery tab
在订单详情页修复标签bug(例如在deliver标签 点击 "New delivery",网站跳转但是deliver标签没有显示,第一个标签反而显示了)。网站按道理应该跳转到deliver标签页
Modify the following file修改一下文件:
administrator/components/com_virtuemart/classes/htmlTools.class.php
FROM (line cca 407):从第407行将一下代码