标签搜索

Shopify,Shoplaza平台全局参数一览

sunshine
2022-10-27 / 0 评论 / 65 阅读
温馨提示:
本文最后更新于2024年07月31日,已超过113天没有更新,若内容或图片失效,请留言反馈。

shopify

purchase事件中:

订单号:{{ order.order_number }}
订单金额:{{ total_price | times: 0.01 }}
运费:{{ shipping_price | times: 0.01 }}
币种:{{ order.currency }}

Shoplaza

purchase事件中

订单号:{{ checkout.order_id }}
金额:{{ checkout.total_price }}


订单总金额(check.total_price) = 商品优惠后的总价(check.line_items_subtotal_price) + 税费(check.tax_price) + 物流费(check.shipping_price)

计算销售额

Shopify:
sale = subtotal_price + total_shipping

Shoplaza:
sale = sub_total - total_discount + total_tax + total_shipping

获取collection产品信息

shopify:


{% assign collection = section.settings.collection %}
{% assign products = collections[collection].products %}
{% for product in products %}
    {% assign price = product.price | money_with_currency %}
    {% assign retailPrice = product.compare_at_price | money_with_symbol %}
    {% assign productImage = product.images[0].src | img_url: '640x' %}
    {% assign url = product.url %}
{% endfor %}

shoplaza:


{% assign collection = section.settings.collection %}
{% assign products = collections[collection.id].products %}
{% for product in products %}
    {% assign price = product.price | money_with_symbol %}
    {% assign retailPrice = product.compare_at_price | money_with_symbol %}
    {% assign productImage = product.image.src | img_url: '640x' %}
    {% assign url = product.url %}
{% endfor %}

shoplaza获取单个产品自定义属性(json格式时)和其他产品参数信息

 {% assign product = all_products[section.settings.product.id] %}
 {% assign icons = product.metafields.sunshine.show_case.value.icons %}
感觉很棒,欢迎点赞 OR 打赏~
4
分享到:

评论 (0)

取消