- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Restrict Custom Pricing on backend
Hello!
We have our Customer Services Reps creating orders using Magento's backend. We want to eliminate the Custom Price checkbox from the order form. Is this possible?
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Restrict Custom Pricing on backend
Hello @arisaac
It is not advisable to make changes in the core file to eliminate the custom price checkbox from the order form.
However, you can override the below file or make the changes directly as mentioned:
vendor\magento\module-sales\view\adminhtml\templates\order\create\items\grid.phtml
Line Number 97:
Replace: <?php if ($block->canApplyCustomPrice($_item)): ?>
with:
<?php if (0): ?>
If you've found my answer useful, please give"Kudos" and "Accept as Solution"
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Restrict Custom Pricing on backend
Thank you. I think we can use that snippet as a starting point.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Restrict Custom Pricing on backend
Welcome @arisaac
Glad to help
I'd like to know how the solution helped you as it may help other community members facing a similar issue.
Thank you.
If you've found my answer useful, please give"Kudos" and "Accept as Solution"