Skip to main content
Notice removed Canonical answer required by Dmitry Dubovitsky
Bounty Ended with Rakesh Jesadiya's answer chosen by Dmitry Dubovitsky
added 4 characters in body; edited tags
Source Link
Rakesh Jesadiya
  • 42.4k
  • 19
  • 132
  • 184

In \magento\framework\Pricing\PriceCurrencyInterface, I want to change the constant in that php interface file from this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 2;

to this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 0;

What is the best practices to override this php interface from the magento core files?What is the best practices to override this php interface from the magento core files?

In \magento\framework\Pricing\PriceCurrencyInterface, I want to change the constant in that php interface file from this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 2;

to this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 0;

What is the best practices to override this php interface from the magento core files?

In \magento\framework\Pricing\PriceCurrencyInterface, I want to change the constant in that php interface file from this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 2;

to this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 0;

What is the best practices to override this php interface from the magento core files?

Notice added Canonical answer required by Dmitry Dubovitsky
Bounty Started worth 50 reputation by Dmitry Dubovitsky
Tweeted twitter.com/StackMagento/status/937730146882211840

In \magento\framework\Pricing\PriceCurrencyInterface, iI want to change the constant in that phpphp interface file from this:

`/**

  • Default precision */ const DEFAULT_PRECISION = 2;`
/**
 * Default precision
 */
const DEFAULT_PRECISION = 2;

to this:

`/**

  • Default precision */ const DEFAULT_PRECISION = 0;`
/**
 * Default precision
 */
const DEFAULT_PRECISION = 0;

What is the best practices to override this php interface from the magento core files?

In \magento\framework\Pricing\PriceCurrencyInterface, i want to change the constant in that php interface file from this:

`/**

  • Default precision */ const DEFAULT_PRECISION = 2;`

to this:

`/**

  • Default precision */ const DEFAULT_PRECISION = 0;`

What is the best practices to override this php interface from the magento core files?

In \magento\framework\Pricing\PriceCurrencyInterface, I want to change the constant in that php interface file from this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 2;

to this:

/**
 * Default precision
 */
const DEFAULT_PRECISION = 0;

What is the best practices to override this php interface from the magento core files?

Source Link
wingski
  • 111
  • 1
  • 3

How can i override the PriceCurrencyInterface in Magento 2?

In \magento\framework\Pricing\PriceCurrencyInterface, i want to change the constant in that php interface file from this:

`/**

  • Default precision */ const DEFAULT_PRECISION = 2;`

to this:

`/**

  • Default precision */ const DEFAULT_PRECISION = 0;`

What is the best practices to override this php interface from the magento core files?