swipestripe/swipestripe-nzpostaddress

SwipeStripe中的nzpost地址查询模块。

安装: 24

依赖: 0

建议: 0

安全: 0

星级: 1

关注者: 1

分支: 1

开放问题: 0

语言:方案

类型:silverstripe模块

1.0.1 2016-02-03 22:48 UTC

This package is not auto-updated.

Last update: 2024-09-24 03:29:58 UTC


README

维护者联系方式

Sam Coursey

需求

  • SilverStripe 3.1.*
  • SwipeStripe 2.1.*

文档

将NZ Post地址查询字段添加到结算页面,从下拉列表中选择地址会将地址添加到运货和账单字段。

安装说明

  1. 将此目录放置在SilverStripe安装根目录下,重命名文件夹为'swipestripe-nzpostaddress'。
  2. 获取NZ Post API密钥(https://www.nzpost.co.nz/business/developer-centre/tracking-api/get-a-tracking-api-key)。
  3. 将您的NZ Post公共API密钥输入到\templates\Includes\NzPostAddress.ss中
  4. 将您的OrderForm.ss页面替换为提供的\templates\Includes\OrderForm.ss,或者将<% include NzPostAddress %>添加到现有的OrderForm.ss文件中。
  5. 访问您的site.com/dev/build?flush=1以重建数据库。

使用概述

  1. 处理订单并填写NZ Post地址表单字段。

许可证

Copyright (c) 2011 - 2013, Frank Mullenger
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

		* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
		* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the 
			documentation and/or other materials provided with the distribution.
		* Neither the name of SilverStripe nor the names of its contributors may be used to endorse or promote products derived from this software 
			without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 
GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.