index
inc/config
inc/config.bak
inc/wts
inc/class/cache
inc/class/cookie
inc/class/db
inc/class/error
inc/class/fso
inc/class/function
inc/class/js
inc/class/load
inc/class/log
inc/class/pagelist
inc/class/request
inc/class/response
inc/class/route
inc/class/session
inc/class/template
inc/class/valid
inc/class/crypt/a2u
inc/class/crypt/aes
inc/class/crypt/base64
inc/class/crypt/des
inc/class/crypt/escape
inc/class/crypt/hex
inc/class/crypt/md5
inc/class/crypt/num
inc/class/crypt/rsa
inc/class/crypt/sha
inc/class/ext/array
inc/class/ext/cart <--
inc/class/ext/date
inc/class/ext/http
inc/class/ext/jmail
inc/class/ext/jpeg
inc/class/ext/json
inc/class/ext/jsont
inc/class/ext/mail
inc/class/ext/md5
inc/class/ext/pack
inc/class/ext/stringbuilder
inc/class/ext/tqqwry
inc/class/ext/upfile
inc/class/ext/verify
inc/class/ext/webstat
inc/class/ext/wia
inc/class/ext/xml
inc/class/ext/zip
inc/class/route/module
inc/class/route/slash
inc/module/default/control/clear
inc/module/default/control/crypt
inc/module/default/control/error
inc/module/default/control/hello
inc/module/default/control/index
inc/module/default/control/json
inc/module/default/control/pic
inc/module/default/control/upload
inc/module/default/control/start/site
inc/module/default/control/start/route/key
inc/module/default/control/start/route/pic
inc/module/default/control/start/route/reg
inc/module/default/control/tag/hello
inc/module/default/language/cn/hello
inc/module/default/language/en/hello
inc/module/default/model/hello
inc/module/help/control/error
inc/module/help/control/index
inc/module/help/control/install
inc/module/help/control/start/site

类描述

title Class_Ext_Cart
author ekede.com
date 2018-02-11
description 购物车类

类属性

cartId 设置购物车id,便于区别不同站点

类方法

HasNum() 购物车产品总数量
Has() 购物车产品数量
GetAll() 打印购物车信息
GetIds() 返回购物车ID
GetById(ByRef productId) 取产品数量
Add(ByRef productId,ByRef productNum) 添加购物车
Edit(ByRef productId, ByRef productNum) 修改购物车
Remove(ByRef productId) 移除购物车产品
RemoveAll() 清空购物车
CurrencyPrice(ByRef prices, ByRef currencys, ByRef decimals) 公式 - 汇率计算
BuyDiscount(discount, discounts, quatity) 公式 - 折扣表计算
ShipWeight(ByRef country_code, ByRef sum_weight, ByRef table_fee) 公式 - 重量运费表计算

返回