我在CartThrob结帐流程的最后一页设置了"礼品留言"自定义字段.这是我的代码示例:
{exp:cartthrob:checkout_form return="/checkout/billing/process"}
<textarea id="gift_message" name="gift_message">
{if gift_message}
{gift_message}
{/if}
</textarea>
{/exp:cartthrob:checkout_form}
Run Code Online (Sandbox Code Playgroud)
如果订单已提交且出现错误,则不会保留"礼品消息"数据.如何强制它保存到CartThrob会话?
CartThrob文档的此页面上列出了coupon_code变量:http://cartthrob.com/docs/tags_detail/coupon_info/index.html#coupon_code
这个变量的确切数据来自何处?默认优惠券渠道上没有"优惠券代码"字段可以设置.
有任何想法吗?