Coder Social home page Coder Social logo

wubinworks / magento2-price-formatter Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 13 KB

Formatting Price has never been easier with this extension. A Price Formatter for Magento 2. #日本語化 #日本ローカライズ #価格表示

License: Open Software License 3.0

PHP 90.49% JavaScript 9.51%
currency format formatter japanese localization magento2 magento2-extension-free price price-format price-formatter

magento2-price-formatter's Introduction

Price Formatter for Magento 2

Formatting Price has never been easier with this extension.

Wubinworks Price Formatter

  • Can use HTML and support "per Store View" configuration

  • Placeholders: {{price}}, {{price_no_decimal}}, {{price_bitcoin}}, {{symbol}}

  • For {{symbol}}, Check Stores > Currency > Currency Symbols

  • Example: 金{{price_no_decimal}}円

  • Decimal places:

    • {{price}} => 2
    • {{price_no_decimal}} => 0
    • {{price_bitcoin}} => 8

  • HTML使用可。ストアごとに設定可

  • プレースホルダー: {{price}}, {{price_no_decimal}}, {{price_bitcoin}}, {{symbol}}

  • {{symbol}}店舗 > 通貨 > 通貨記号を参照

  • 例: 金{{price_no_decimal}}円

  • 小数位:

    • {{price}} => 2
    • {{price_no_decimal}} => 0
    • {{price_bitcoin}} => 8

How to use

Read the description above and go to backend Stores > Configuration > Currency Setup > Currency Options > Price Format

上を読んで、バックエンドの店舗 > 設定 > 通貨セットアップ > 通貨オプション > Price Format

Requirements

Magento 2.4

Installation

composer require wubinworks/module-price-formatter

For developers

The format you set in Price Format affects method \Magento\Framework\Pricing\Helper\Data::currency in frontend area.

magento2-price-formatter's People

Contributors

wubinworks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.