[英]Save Cookie in Transaction ID and use in Shopify thank you page
[英]How to get Shopify transaction getway on thank you page?
我想獲取用戶選擇的付款方式類型。 我試過使用
{{ transaction.gateway }}
如Shopify Liquid 文檔中所述。 但我不知道為什么該值為空。 下面是我在Admin->Settings->Checkout->Additional content and scripts
添加的小代碼片段
<script type="text/javascript">
var temp = " {{ shipping_method.title }} ";
var temp1 = "{{ transaction.gateway }}";
alert(temp);
alert(temp1);
誰能幫幫我嗎?
試試{{ transactions[0].gateway }}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.