cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict Custom Pricing on backend

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

3 REPLIES 3

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): ?>

 

Meetanshi - Solution.png

---
If you've found my answer useful, please give"Kudos" and "Accept as Solution"

Re: Restrict Custom Pricing on backend

Thank you. I think we can use that snippet as a starting point. 

Re: Restrict Custom Pricing on backend

Welcome @arisaac 

Glad to help Smiley Happy

 

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"