sagoontech / magento2-price-decimal
Magento 2 Price Decimal, hide `.00` but show `.10`. So that $8.00 becomes $8 and $8.90 becomes $8.90
Installs: 10 885
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 2
Open Issues: 2
Language:JavaScript
Type:magento2-module
Requires
- magento/framework: ~101.0|~102.0|~103.0
- magento/module-backend: ~101.0|~102.0
- magento/module-directory: ~100.3
- magento/module-quote: ~101.1
- sagoontech/magento2-base: *
This package is auto-updated.
Last update: 2024-03-26 10:37:29 UTC
README
This extension will allow you to remove only .00 from your frontend product prices.
Remove ".00" decimal from price in magento2
For Example,
$500.00 => $500
$19.99 => $19.99
Removes from:
- Catalog Page
- Product view page
- Compare page
- Cart page
- Checkout page
- Recently Viewed Product widget
- Mention if you know other places ;)
Installation
To make the integration process as easy as possible for you, we have developed various plugins for your webshop software package. This is the manual for installing the Magento® 2 Plugin. Before you start up the installation process, we recommend that you make a backup of your webshop files, as well as the database.Installation using Composer Magento® 2 use the Composer to manage the module package and the library. Composer is a dependency manager for PHP. Composer declare the libraries your project depends on and it will manage (install/update) them for you.
Check if your server has composer installed by running the following command:
composer –v
If your server doesn’t have composer installed, you can easily install it by using this manual: https://getcomposer.org/doc/00-intro.md
Step-by-step to install the Magento 2 extension through Composer:
-
Connect to your server running Magento® 2 using SSH or other method (make sure you have access to the command line).
-
Locate your Magento® 2 project root.
-
Install the Magento® 2 extension through composer and wait till it's completed:
composer require sagoontech/magento2-price-decimal
-
Once completed run the Magento module enable command:
bin/magento module:enable SagoonTech_Base SagoonTech_PriceDecimal
-
After that run the Magento upgrade
bin/magento setup:upgrade
If Magento is running in production mode you may also need to redeploy the static content:
bin/magento setup:static-content:deploy
-
Now, run compilation (only if your instance is in production):
bin/magento setup:di:compile
-
Clear the cache
bin/magento cache:flush
-
After the installation: Go to your Magento admin portal and from Menu find "Sagoon Tech > Price Decimal System > Price Decimal Config" and enable it.