Question:
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?
Answer:
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
Edit line 26 title: $.mage.__('Call For Price Form'), https://prnt.sc/o8vl8h
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>
</div>
<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}"/>
</div>
</div>
<?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: https://bsscommerce.com/magento-2-extensions.html
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article