Skip to content

[PLUGIN] Plugin cannot free display [現在送料無料です。] message #138

@lqdung-lockon

Description

@lqdung-lockon

概要(Overview)

Plugin can not display free message [現在送料無料です。] without changing shopping cart template.

期待する内容(Expect) or 要望 (Requirement)

  • Expected: Plugin can change free message without changing shopping cart template. (cart/index.twig)
  • Example:
(cart/index.twig)

{% if is_delivery_free[cartKey] %}
    現在送料無料です。
{% elseif BaseInfo.delivery_free_amount and BaseInfo.delivery_free_quantity %}
    あと「<strong>{{ least[cartKey]|price }}</strong>」または「<strong>{{ quantity[cartKey]|number_format }}個</strong>」のお買い上げで<strong class="text-primary">送料無料</strong>になります。
{% elseif BaseInfo.delivery_free_amount %}
    あと「<strong>{{ least[cartKey]|price }}</strong>」のお買い上げで<strong class="text-primary">送料無料</strong>になります。
{% elseif BaseInfo.delivery_free_quantity %}
    あと「<strong>{{ quantity[cartKey]|number_format }}個</strong>」のお買い上げで<strong class="text-primary">送料無料</strong>になります。
{% endif %}
  • After changing like this, the plugin just needs to change the is_delivery_free variable and it will display the free message.
  • Plugins will be easier to change and do not need to change the cart template.

再現手順(Procedure)

関連情報 (Ref)

Delivery free plugin plugin

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions