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
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.
Thanks Ziven for your prompt response. I have made teh changes but not quite sure what “Once done, please re-compile LESS->CSS”. means.
Jim
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.