How to remove "Apply Discount Code"

Hi Guys,

How does one remover the “Apply Discount Code” block from the checkout page so it doesn’t appear as we won’t be using any coupons.

Many thanks
Jim

3 answers

Profile photo of Ziven Staff 100280.00 $tone February 21, 2018
Public

Hi Jim,
You can remove the ‘Apply Discount Code’ block as follows:
Open the file: app\design\frontend\Ubertheme\mago\Magento_Checkout\web\css\source\_ub_extend.less at line 4 and replace the code:

.cart-summary {
  > .title {
    color: @color-333;
    font-weight: 700;
  }
}

with:

.cart-summary {
  > .title {
    color: @color-333;
    font-weight: 700;
  }
  .block.discount {
    display: none;
  }
}

 
Once done, please re-compile LESS->CSS.
Best Regards,
Ziven.
 
 
 
 
 

#1
Profile photo of Ziven Staff 100280.00 $tone February 22, 2018
Public

Hi Jim,

 I have made teh changes but not quite sure what “Once done, please re-compile LESS->CSS”. means. 

To compile Less -> CSS please follow the guide like below:
Step1: go to root site with CLI and type:
rm -rf var/* pub/static/*
Step2: php bin/magento setup:static-content:deploy -f
 
Best Regards,
Ziven.
 
 

#3

Please login or Register to Submit Answer

Written By

Comments