I am not able to hide the custom price (+$10.00) in Magento 2.1.7. I am using Mageworx Extension for custom option. How can I achieve this, its my client requirement, as I am not able to hide this.


1 Answer 1


Refer to link to see magento add price in custom options when rendering in front end.

So you can create a after plugin for method afterGetFormatedPrice() and return an empty string your price will not be displayed.


Di.xml File

<type name="Magento\Catalog\Block\Product\View\Options\AbstractOptions">
    <plugin name="hide_custom_option_price" type="Vendor\ModuleName\Plugin\AbstractOptions"/>



namespace Vendor\ModuleName\Plugin;

class AbstractOptions
    public function afterGetFormatedPrice(
    ) {
        return '';

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.