根据订单数据生成密码


你可以在商户控制面板>管理产品>送货选项中设置一个脚本以根据订单数据和顾客详细资料生成产品的密码。你需要选中提供密码并选择"从远程Web服务器取得"项来设置这种送货方式。

你需要输入一个远程URL到系统中让系统把订单数据发送过去并获取密码。你可以自行定义传送的参数。参数的值可以是静态的文本或者一个来自订单数据的变量。以下变量是系统所支持的。

{OrderID}, {Currency}, {CreateTime}, {LastUpdateTime}, {TransactionID}, {RefererURL}, {CustomerIP}, {AffiliateID}, {Status}, {Additional1}, {Additional2}, {CouponID}, {CustomerFullName}, {CustomerFirstName}, {CustomerLastName}, {CustomerOrganization}, {CustomerAddress}, {CustomerSuburb}, {CustomerZipCode}, {CustomerState}, {CustomerCountryCode}, {CustomerPhone}, {CustomerFax}, {CustomerEmail}, {RecipientFullName}, {RecipientFirstName}, {RecipientLastName}, {RecipientOrganization}, {RecipientAddress}, {RecipientSuburb}, {RecipientZipCode}, {RecipientState}, {RecipientCountryCode}, {RecipientPhone}, {RecipientFax}, {RecipientEmail}, {ItemID}, {ProductID}, {ProductName}, {StandardUnitPrice}, {StandardPrice}, {UnitPrice}, {Price}, {Subscription}, {FirstPeriod}, {RegularUnitFee}, {RegularFee}, {RegularPeriod}, {UnitTax}, {Tax}, {TaxID}, {OfferID}, {Quantity}, {UnitCommission}, {Commission}, {Code}, {DownloadLink}

举个例子,如果你想将订单编号以参数"order_id"发送出去,你需要在参数中增加一条如"order_id={OrderID}"。我们建议你设置一个静态文本作为口令以验证发送的数据是来自SWPal,即使你的脚本URL不为他人所知。

该URL应该返回一个文本作为产品的密码。缺省地系统会以订单收货人的姓名作为产品用户名并把用户名和密码在售后邮件中一同发送。你可以建立一个定制售后邮件以提供关于如何使用密码的指引。

[ 返回主题列表 ]