Magento 2 Total Savings

Magento 2 Total Savings extension calculates and displays the total saving amount availed through discounts in the cart and checkout page in Magento 2 store.

 

Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Total Savings in Frontend
  1. Extension Installation
    • For Magento Marketplace Customers
      • Find the Composer name and version of the extension in the extension’s composer.json file.
      • Login to your SSH and run:
        • composer require meetanshi/meetanshi-magento2-total-saving
      • Enter your authentication keys. Your public key is your username; your private key is your password.
      • Wait for Composer to finish updating your project dependencies and make sure there aren’t any errors.
      • To verify that the extension installed properly, run the command:
        • php bin/magento module:status Meetanshi_Totalsaving
      • By default, the extension is probably disabled.
      • Enable the extension and clear static view files:
        • php bin/magento module:enable Meetanshi_Totalsaving --clear-static-content
        • php bin/magento setup:upgrade
        • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
        • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
        • php bin/magento cache:flush
    • For Meetanshi Customers
      • Extract the zip folder and upload our extension to the root of your Magento 2 directory via FTP.
      • Login to your SSH and run below commands step by step:
        • php bin/magento setup:upgrade
        • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
        • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy –f
        • php bin/magento cache:flush
  1. Configuration
    For configuring the extension, login to Magento 2, move to Stores à Configuration à Meetanshi à Total Savings where you can find various settings to enable the extension.
  • Total Savings: Enable the Total Savings extension from here.
  • Total Savings Label: Enter text to label total saving value on the cart and checkout page in frontend.
  • Display Total Saving As: Select one of the total saving value types to be displayed in the frontend.
    • Fixed Amount: Set to show total saving value as fixed price.
    • Percentage: Set to show total saving value in percentage.
  • Total Savings Value Display Color: Set color in which you want to show the total saving value in the frontend to differentiate it from other amounts.

  1. Total Savings in Frontend
    After successful configuration, the extension gets enabled. For example, let’s consider that a user adds a product with the special price to the cart.

  • Now user applies coupon code for the 20% discount on the cart page. Below explained the total savings amount with the table.

Product Price

$99

Special Price

$79 ($20 flat discount)

Discount Applied

$15.80 (20% of product price)

Total Savings

($99 - $79) + $15.80 = $35.80

 

  • The user can see total savings amount with the set label in the frontend. The amount is shown in the color set from the backend to highlight the display of total savings amount from other amounts.

Total savings amount will be shown only if:

  • A coupon code is applied or product is discounted automatically.
  • A product is having a special price.
  • Discount is applied through custom options.
  • Discount based on tier prices.
  • Total Savings Amount on Cart Page

​​​​

    • Total Savings Amount on Checkout Page