How to change the labels in the Inquiry form of Hide Price/Call for Price for Magento 2

Created by Robin Hoang, Modified on Mon, 01 Jul 2019 at 01:44 PM by Kaylin Nguyen


I have two questions about the Inquiry form.
1. The form label above the form "Call for Price Form", is there a way to change that and where can I do that?
2. Is there also a way to change the labels Name and Email? Where can I do that?


In order to change the labels in the Inquiry form, please making adjustment in this file: app/code/Bss/AdvancedHidePrice/view/frontend/web/js/popup_modal.js  

  1. Edit line 26 title: $.mage.__('Call For Price Form'), 

  2. Edit line 30-42: 

    <?php if ($block->isShowCustomerNameInfo()) : ?>

    <div class="field required">

    <label class="label"><?php echo __('Name') ?></label>

    <div class="control">

    <input type="text" name="customer_name" data-validate="{required:true}"/>



    <div class="field required">

    <label class="label"><?php echo __('Email') ?></label>

    <div class="control">

    <input type="text" name="customer_email" data-validate="{required:true,'validate-email':true}"/>



    <?php endif ?>

Please note to not remove “email” and just edit its name to change the label. The line may be different due to module version. 

For more information about product, please refer Hide Price/Call For Price for Magento 2 page.

If you need any further assistance, please feel free to contact us.

Please visit our site for more useful Magento 2 Extensions:

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article