Net Price don't show on frontend

hau.nguyen
hau.nguyen Posts: 23 πŸ§‘πŸ»β€πŸš€ - Cadet

Hi guys,

We have price entry at Net Price.

But it doesn't show the price on storefront. Am I missing some config?

https://pasteboard.co/ij7ged8YAcCY.png

https://pasteboard.co/EFxy6ZVUVD3M.png

Thanks

Hau Nguyen

Tagged:

Answers

  • Hari Vijayakumar
    Hari Vijayakumar Posts: 27 πŸ§‘πŸ»β€πŸš€ - Cadet

    Hi Hau,

    Could you please specify which course you're referring to?

    Thanks!

  • Hidran Arias
    Hidran Arias Senior Technical Trainer Sprykee Posts: 81 πŸ› - Council (mod)

    There is the PriceConfig class where you can set how prices are shown: net or gross. That class can be overridden at project level and by code bucket. By default is GROSS_MODE . That's why it's shown empty in your case.
    Here is an example on how to override it at project level:


    namespace Pyz\Shared\Price;

    use Spryker\Shared\Price\PriceConfig as SprykerPriceConfig;

    class PriceConfig extends SprykerPriceConfig

    {

    public function getDefaultPriceMode(): string

    {

    return static::PRICE_MODE_NET;

    }

    }

  • hau.nguyen
    hau.nguyen Posts: 23 πŸ§‘πŸ»β€πŸš€ - Cadet

    hi Hidran Arias,

    It works fine for me, but is there no config support for this in backOffice?

    Thanks

    Hau Nguyen