模板和变量

借助 Teapplix,你可对拣货单和配货单模板进行深度定制。模板为 HTML 格式,带有采用名称为“ClearSilver”的模板语言的嵌入式标签:

www.clearsilver.net

你可以使用模板语言中所有句法,包括“if-then-else”,但是你不能使用“include”语句。

要修改拣货单/配货单模板,执行以下操作:

  • 转到“设置 > 配货单”
  • 选择“高级”标签
  • 利用变量参考修改 PackingCenter.cs 和 PickList.cs 模板;
  • 单击“保存配货单模板”

变量参考

你可以修改 3 个模板:

  • PackingHeader.cs —控制拣货单和配货单使用的样式表
  • PackingCenter.cs—控制配货单的每个订单部分
  • PickList.cs—控制整个拣货单

变量

对于所有模板,以下变量均可用

  • skulist —SKU 和数量的列表,通常用作创建拣货单
  • orderlist —所有订单的列表,可用于创建专门的拣货单。对于配货单,由于每个 PackingCenter.cs 均包含订单列表中的一个订单,因此你无需检查订单列表
  • config —包含配置变量
  • date —当前日期;

订单

orderlist 中的每个订单均包含以下信息:

  • order.txn_id —订单 ID
  • order.pin_type —订单的来源平台对于来自 Amazon 的订单,为“Amazon”。对于来自采用“仅 eBay”模式的 eBay 的订单,为“ebay”。对于来自采用 eBay + PayPal 模式的 eBay 的订单,为‘pin’或‘api’。其他值包括“buy.com”、“sears”、“newegg”、“generic”、“volusion”、“3dcart”、“bigcommerce”、“magento”、“cart”
  • order.receiver_email —用于确认帐户、卖家 ID 或 PayPal 主电子邮件地址
  • order.qb_txn_number —如果订单已导出至 QuickBooks,或订单自 QuickBooks 导入,则此字段应包含 QuickBooks 中的销售编号

买方信息

  • order.payer_email —(字符串)电子邮件
  • order.address_name —(字符串)收件人姓名
  • order.payer_business_name —(字符串)公司名称
  • order.contact_phone - (字符串)电话

买方地址信息:

  • order.address_street - (string) Street Address
  • order.address_street2 - (string, optional) Street Address 2
  • order.address_city - (string) City
  • order.address_state - (string) State
  • order.address_zip - (string) Zip
  • order.address_country - (string) Country
  • order.address_country_code - (string) 2 letter Country Code

Notes And Special Handling:
order.memo - (string) Notes;

Item List (each:item = order.lineitems):

  • item.item_name - (string) Item Name
  • item.item_number - (string) Item Number
  • item.item_description - (string) Item Description
  • item.quantity - (integer) Quantity
  • item.mc_gross - (float) Subtotal

Additionally, for each item in the item list, if inventory is defined, the following parameters are available:

  • item.item_type - (integer 0 - for inventory parts, 1 - for inventory assembly, 2 - non inventory items, 3 - service, 4 - other charge, 5 - discount)
  • item.inventory_item_name - (string) Unique name of item
  • item.inventory_item_description - (string) Description
  • item.item_category - (integer) Currently not used
  • item.supplier - (string) Supplier Name
  • item.supplier_sku - (string) SKU Known to Supplier
  • item.asin - (string) Amazon ASIN
  • item.upc - (string) UPC | EAN Number
  • item.location - (string) Location assigned in Teapplix
  • item.xref3 - (string) xref3 assigned in Teapplix
  • item.image_url_s - (string) Small image URL
  • item.image_url_l - (string) Large image URL
  • item.default_cost - (float) Cost
  • item.min_quantity - (integer) Minimum quantity before re-ordering
  • item.customs_value - (float) Value used to declare on customs form
  • item.customs_description - (string) Customs description in English, as entered in Teapplix
  • item.localized_customs_description - (string) Customs description in Chinese when shipping from Asia
  • item.harmonized_code - (string) harmonized_code to be put on customs form
  • item.mod_date - (string) Last time the item was updated in Teapplix

Order Level Totals

  • order.mc_fee - (float) Fee
  • order.mc_discount - (float) Discount
  • order.mc_shipping - (float) Shipping
  • order.tax - (float) Tax
  • order.mc_gross - (float) Total Paid

SKU

Each sku from skulist contain the following info:

  • sku.name - product name
  • sku.title - product description
  • sku.location - location
  • image_url_s - small image
  • image_url_l - large image
  • sku.qty - all the quantity needed to fill this entire list of orders

Config

  • config.packing_list - (1/0) Display packing list
  • config.pick_list - (1/0) Display pick list
  • config.packing_xref1 - (1/0) sku
  • config.packing_xref1_barcode - (1/0) sku barcode
  • config.packing_xref2 - (1/0) location
  • config.packing_xref3 - (1/0) image or xref3
  • config.packing_txn_id_barcode - (1/0) order id barcode
  • config.packing_invoice - (1/0) $ amount
  • config.packing_memo - (1/0) memo
  • config.packing_gift - (1/0) gift messages (gift purchases will not have $ amount)
  • config.packing_signature - (1/0) Allow Teapplix footer on page bottom