原文地址,也是自己原创的,只不过先发布在自己的站上了:http://www.365joomla.com/Joomla%E6%89%A9%E5%B1%95%E4%B8%8B%E8%BD%BD/virtuemart-invoice.html

VirtueMart Invoice, Delivery Note and Receipt Addon (VM IDnR Addon)

(英文水平有限,翻译不对的地方请指出,您的支持是对我最大的安慰,先奉献上下载地址,你也可以根据下面的正文内容进行单个下载)

virtuemart invoice在1.1.6测试通过

virtuemart invoice在1.1.6测试通过,用户可以下载invoice,发送invoice给用户,这里教你一个不要钱的方法配置成功

压缩包包含了下文提到的所有(除了virtuemart)安装程序

 
 2011-02-26   Joomla 1.5  1.49 MB 0

VM IDnR addon is a "package" of components, plugins and small hacks which allow creating PDF Invoice, PDF Delivery Note, PDF Receipt and sending them through email to customers (Email feauture is available for users who are regularly active in Phoca Forum, are regularly translating Phoca Extensions or have donated to Phoca Project - get more info about how to contribute and get the Email feature on info[at]phoca[dot]cz).

这段就自己看吧,主要是介绍的是神马东东

Features(特点):

  • Creating Delivery (Partial delivery possible)
  • Creating PDF of Invoice, Delivery Note or Receipt  创建pdf格式的invoice,提货单或者收据
  • Sending PDF of Invoice, Delivery Note or Receipt through emal to customers (Phoca PDF VirtueMart Email plugin)通过邮件将invoice,提货单或者收据发给客户(Phoca PDF VirtueMart Email plugin)
  • Displaying PDF of Invoice, Delivery Note or Receipt in frontend in Account Maintenance (VirtueMart hack needed)在用户首页账户管理可以显示invoice,提货单或者手机(需要将virtuemart hack掉)
  • Creating Delivery, PDF of Invoice, Delivery Note or Receipt, sending them through the email - all automatically after changing order status (Phoca PDF VirtueMart Email plugin, VirtueMart hack needed)在修改订单状态后全部自动通过邮件将提货单,invoice,收据发送给客户(需要Phoca PDF VirtueMart Email plugin,将virtuemart hack掉)
  • Changing the PDF output in parameters (Changing header, footer height, fonts, etc.)自定义pdf输出参数
  • Changing the PDF output with help of CSS styles in parameters  自定义pdf css样式输出参数
  • Changing the PDF output easily in PDF templates (With help of HTML or CSS)很容易修改pdf模板
  • Changing the Email output (Email template) in parameters (Phoca PDF VirtueMart Email plugin) 根据参数修改email模板
  • Setting default values for creating Invoice, Delivery Note or Receipt in parameters (Phoca PDF VirtueMart Email plugin)根据默认参数生成invoice,提货单或者收据
  • Product attributes are displayed in PDF document  产品相关属性都显示在pdf文件中
  • Additional information like Bank Account Nr., VAT, etc. can be added in parameters (e.g. to header or footer area)附加信息,例如银行信息等

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行开始将以下代码

$tab->endTab(); $tab->endPane();

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行将一下代码

class vm_ps_order {​

TO修改成以下代码 :

jimport('joomla.filesystem.file');</code> <code>if (JFile::exists(JPATH_ROOT.DS.'plugins'.DS.'phocapdf'.DS.'virtuemart'.DS.'virtuemarthelper.php')) { </code><code>require_once(JPATH_ROOT.DS.'plugins'.DS.'phocapdf'.DS.'virtuemart'.DS.'virtuemarthelper.php'); } else { return JError::raiseError('Include Error', 'Plugin: Phoca PDF VirtueMart Helper class not found'); }</code> <code>class vm_ps_order {

FROM (line cca 729):从第729行将以下代码

$listObj->addCell( $tmp_cell );

TO:修改成以下代码

$listObj->addCell( $tmp_cell ); $delivery = PhocaPDFVirtueMartHelper::renderPDFIconAccount($sess, URL, $db->f("order_id")); $listObj->addCell($delivery);

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行将一下代码

function endPane() { echo "</div>";

TO修改成一下代码 :

function endPane() { echo "</div>"; $d = JRequest::get('request'); if(isset($d['delivery_pane']) && $d['delivery_pane'] == 1) { $activeTab = 2; } else { $activeTab = 0; }

FROM: (line cca 421):从第421行开始将一下代码

TO修改成一下代码 :

activeTab: {$activeTab},

Advanced Modifications (Phoca PDF VirtueMart Email plugin)      高级选项修改(Phoca PDF VirtueMart Email插件)

1. Creating Delivery, Creating PDF of Invoice, Delivery Note or Receipt, Sending email with the Invoice, Delivery Note or Receipt automatically after changing Order status

在修改了订单状态以后,创建invoice,提货单或者收据,并将它们自动发送给客户

E.g. if you will change the order status from pending to confirmed , then the delivery will be automatically created, PDF document (Invoice, Delivery Note or Receipt) will be created and sent through email to customer.

例如:例如将订单的状态由pending 修改成 confirmed状态,然后系统会自动创建pdf文档(invoice,提货单或者收据)并且通过邮件发送给客户

Modify修改:

administrator/components/com_virtuemart/classes/ps_order.php,

If you didn't do with some previous hack, then you should paste the following code如果之前你没有做过如何的修改的话,你需要复制一下代码:

FROM (line cca 23)从第23行起将一下代码

class vm_ps_order {​

TO修改成如下代码 :

jimport('joomla.filesystem.file');</code> <code>if (JFile::exists(JPATH_ROOT.DS.'plugins'.DS.'phocapdf'.DS.'virtuemart'.DS.'virtuemarthelper.php')) { </code><code>require_once(JPATH_ROOT.DS.'plugins'.DS.'phocapdf'.DS.'virtuemart'.DS.'virtuemarthelper.php'); } else { return JError::raiseError('Include Error', 'Plugin: Phoca PDF VirtueMart Helper class not found'); } class vm_ps_order {

and then然后 :

FROM (line cca 281):从第281行开始将一下代码

if( !empty($notify_customer) ) { $this->notify_customer( $d ); }

TO修改成一下代码 :

if( $curr_order_status=="P" && $d["order_status"]=="C" && $notify_customer == 1) {</code> <code>PhocaPDFVirtueMartHelper::createDeliveryAndPDFandSendEmail($vmLogger, $VM_LANG, CLASSPATH); }</code> <code>if( !empty($notify_customer) ) { //$this->notify_customer( $d ); }

PDF templates are created in HTML and CSS so they can be stylized in Phoca PDF VirtueMart (Email) plugin parameters or they can be modified directly in template files which are located in the follwing folder:

你可以通过修改Phoca PDF VirtueMart (Email)插件参数来达到修改pdf模板的目的 或者是直接到模板文件所在文件夹修改模板文件。

plugins/phocapdf/virtuemart/ (in your Joomla! site root folder)如下几个文件

  • tmpl.deliverynote.php
  • tmpl.invoice.php
  • tmpl.receipt.php

You can set default settings for creating of a delivery:可以设置默认值来创建delivery

  • If receipt or invoice will be created
  • Due days
  • Delay interest

Example of styled Invoice (CSS attributes and header changed in Phoca PDF VirtueMart plugin parameters - no edit in PDF templates):下面是一个例子的截图

Translation:

All language strings follows Joomla! translation rules and can be found in:语言文件

  • Phoca PDF VirtueMart plugin (Phoca PDF VirtueMart Email plugin) - en-GB.plg_phocapdf_virtuemart.ini
  • Phoca PDF component - en-GB.com_phocapdf.ini
  • Phoca Email component - en-GB.com_phocaemail.ini

Translation files can be translated to other languages and used on Joomla! site. See article: How to create translation for Joomla! extensions    你可以根据您的站点语言来创建语言文件。点击How to create translation for Joomla! extensions 查看如何创建语言文件

Phoca Install VirtueMart component is specific file needed for installation only (designed for developers or administrators), so it does not include translation (it is only in English available).

Phoca Install VirtueMart组件安装过程比较特殊(为开发人员或者超级管理员设计的),所以不包含翻译(只有英文的)

引用自:http://www.phoca.cz/documents/18-virtuemart/399-virtuemart-invoice-delivery-note-and-receipt-addon

教你创建virtuemart invoice收据 发票相关推荐

  1. 超级简单:一步一步教你创建一小型的asp.net mvc 应用程序

    超级简单:一步一步教你创建一小型的asp.net mvc 应用程序 这本教程中将帮助你创建一个小型的asp.net mvc示例. 在本教程中,我们将创建自己的 Model , View 和Contro ...

  2. 企业小程序开发步骤【教你创建小程序】

    随着移动互联网的兴起,微信已经成为了很多企业和商家必备的平台,而其中,微信小程序是一个非常重要的工具.本文将为大家介绍小程序开发步骤,教你创建小程序. 步骤一.注册小程序账号 先准备一个小程序账号,在 ...

  3. 智能灯控制页面用HTML编写,3分钟教你创建手机APP控制全彩智能灯泡应用,图形化编程!...

    本帖最后由 bigfanofloT 于 2016-9-22 22:33 编辑 对,你没有看错!!!3分钟教你创建手机APP控制全彩智能灯泡应用,图形化编程,自动代码生成,麻麻再也不用担心我不会编程了, ...

  4. 手把手教你创建springBoot项目

    **# 手把手教你创建springBoot项目 千里之行 始于足下 简介 springboot是用来简化spring应用的初始搭建以及开发过程 使用特定的方式来进行配置(properties或yml文 ...

  5. 在计算机上创建一个本地用户账户,多种方法教你创建和删除Win10本地账户?

    Win10系统如何创建和删除本地账户?现在使用Win10系统的朋友越来越多了,有位Windows10用户反映自己因为刚刚升级系统,所以对系统中的很多操作都很陌生.尤其是对Win10系统中添加和删除用户 ...

  6. 网课答案公众号小白教程——手把手教你创建自己的大学查题公众号

    网课答案公众号小白教程--手把手教你创建自己的大学查题公众号 1.很多新手想搭建属于自己的查题公众号! 所以我来写一个搜题公众号搭建教程,如果你想要做公众号方面的引流之类的,这个就非常不错! 废话不多 ...

  7. 20个最佳Flash游戏解析,一步步教你创建Flash游戏

    20个最佳Flash游戏解析,一步步教你创建Flash游戏 http://www.javaeye.com/news/12740-flash Flash算得上是一个家喻户晓的名字,涉及面很广,比如多媒体 ...

  8. 冷钱包 开发 c语言,冷钱包是什么?教你创建冷钱包

    原标题:冷钱包是什么?教你创建冷钱包 玩币的人都有自己的比特币钱包,而钱包按照私钥的存储方式又分为冷钱包和热钱包两种. 热钱包就不用说了,即是我们平时用来交易的在线钱包,它的特点是使用方便,易操作. ...

  9. Unity3dUGUI十步三点教你创建游戏排行榜界面

    创建游戏结束玩家名次排行榜: 1.将Game面板中的屏幕大小新建为768×1024,"Layel"为iPad2; 2.新建Panel改名为"PanelRanking&qu ...

最新文章

  1. 在Java程序设计中,设置环境变量path和classpath的作用分别是什么?
  2. struts2 中文件的位置问题
  3. 为WPF播放GIF伤神不?
  4. postgreSQL分页
  5. Android graphic: bitmap and it's principle
  6. vs 2015 加载该页时出错。 解决方案
  7. Atitit 写的计算机技术类的书 与it类紧密的学科 atiitt it学科体系化 体系树与知识点概念大总结 v3 t88.xlsx 门类 学科一级分类 专业、二级学科分类 课程 书籍 工学
  8. 在七牛上传之后如何自己自定义上传完成处理并在页面显示。
  9. 软件测试中的人工智能现状:未来会怎样?
  10. Ardunio开发实例-简单声音感应控制开关
  11. 折腾了5个多小时的OC启动与win10冲突
  12. 机器学习总结(九):梯度消失(vanishing gradient)与梯度爆炸(exploding gradient)问题
  13. html excel 在线查看,web在线查看服务器的Excel文件
  14. mysql 1.4安装步骤_从零开始搭建系统1.4——MySql安装及配置
  15. backface-visibility 翻转特效
  16. 网络之tcpdump命令
  17. Linux Glibc幽灵漏洞紧急修补方案【转】
  18. 英国电信日本东芝公开测试英国首个商用量子安全城域网
  19. jQuery实现王者荣耀英雄列表
  20. 美赛2022年O奖经验分享(一)

热门文章

  1. seqkit根据基因id_fasta序列操作神器——seqkit
  2. 新领域、新探索、新规划,以色列老牌安全厂商 Check Point 新变化:AI、零日安全
  3. 古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子
  4. 整数除法 JAVA leetcode
  5. ctfshow-年_ctf初一初二
  6. [思维模式-6]:《如何系统思考》-2- 认识篇 - 为什么要系统思考?系统思考是系统架构师、系统设计师的基本技能
  7. Unity --- 基本键鼠操作
  8. Android WiFi —softAP流程分析
  9. 来点零食-“YPM”中的演讲艺术
  10. 织梦cms、帝国cms、PHPcms优缺点解析