在shopify的逻辑路径中嵌入输出路径
我基本上希望检索用户在签出时使用的网关,并在该网关上应用逻辑路径 我试过了在shopify的逻辑路径中嵌入输出路径,shopify,Shopify,我基本上希望检索用户在签出时使用的网关,并在该网关上应用逻辑路径 我试过了 {% if {{ gateway }}=="Cash on Delivery (COD)" %} <tr> <td><strong>Shipping Taxes</strong></td> <td>Rs. 19</td> {% endif %} {%if{{gateway}==“货到付款(COD)”%} 运输税 Rs.19 {%endi
{% if {{ gateway }}=="Cash on Delivery (COD)" %}
<tr>
<td><strong>Shipping Taxes</strong></td>
<td>Rs. 19</td>
{% endif %}
{%if{{gateway}==“货到付款(COD)”%}
运输税
Rs.19
{%endif%}
签出中没有可设置的液体渲染。您可以将脚本添加到感谢页面,在那里您可以使用Liquid编写脚本。您的更改是访问订单本身。试一试
{% if order.gateway == 'Cash on Delivery (COD)" %}
... your special code here
{% endif %}
你会发现这是有效的 大卫说得对,您只能在结帐时添加液体(仅限感谢页面)。如果这就是您放置代码的地方,那么只要从
gateway
变量周围删除{{}}
就可以了
举一个例子:
{% if gateway == 'Cash on Delivery (COD)' %}
...
{% endif %}