crystalcodingsolutions
Forum Replies Created
-
the file containing the code for the button is /wp-content/plugins/woocommerce-catalog-enquiry/classes/class-woocommerce-catalog-enquiry-frontend.php
There are six places where the text-setting is done, it depends on the setting in the admin area which of those actually gets displayed.
Find them and change them all or change step by step till you see the change on your site.
I just hope the developers see this topic and understand that both questions need to be addressed in their next update
looks like this is another “bug” they introduced with the latest update.
The Enquiry Button will take your change if you activate the Option “Your own button style”
BUT that changes the text of all buttons – in case you use some kind of product listing where the buttons appear as a link to the actual product page.If that is ok for you fine.
If not you’ll have to wait for the next update and hope they fixed it
or
you have to change code.
Remember changing code means it will get lost as soon as the plugin is updated.If you only change one thing you can redo the change but you must remember to do so
Hi zetto123
if you still need help, please give more details on your button problem
what kind of text change do you mean, you mention .pot file, does that mean you want different language ?
when I gave the instruction
in front of line 13 paste
//
–>> this is a security measure, it keeps the original line like a comment.I missed something and created that little problem of the new line showing in the mail — sorry
– delete everything in line 13
– leave the new line as it isthen it should be fine
I went to the page you referred to in your own topic and tested the enquiry.
I did not receive a mail which means I do not see it
BUT
it is still wrong that you see it…yes it could
which means I have to find out why…I checked and in my version it is not visible
I need to see it, give me a second to figure out how
yes
on the left select the “WC Catalog Enquiry”
below the “select plugin”-area is a listing of folders and files
first select the folder “templates”
then the folder “emails”
then the file “woocommerce-catalog-enquiry-admin.php”that will open the file in the editor.
go to line 13
there you should see:
do_action( ‘woocommerce_email_header’, $email_heading ); ?>in front of line 13 paste
//
–>> this is a security measure, it keeps the original line like a comment.then paste the following below line 13
do_action( ‘woocommerce_email_header’, $email_heading, ‘test-parameter’ ); ?>now scroll down and save your changes
if you were facing the same issue as I did the problem should be solved
let me know…
EDIT: In case others are reading this
the instructionin front of line 13 paste
//
–>> this is a security measure, it keeps the original line like a comment.was not such a good idea please just delete everything in line 13 and only paste
do_action( ‘woocommerce_email_header’, $email_heading, ‘test-parameter’ ); ?>- This reply was modified 5 years, 4 months ago by crystalcodingsolutions.
- This reply was modified 5 years, 4 months ago by crystalcodingsolutions.
- This reply was modified 5 years, 4 months ago by crystalcodingsolutions. Reason: after finding problem it needed clarification
go to your backend, click on “plugins” and then on “Plugin Editor”
if that opens a new area and a popup asking if you know what you are doing we are halfway there and I’ll give more instructions
I’ll be back in a few minutes with a more detailed explanantion.
What I need to know is
– do you use FTP to edit files
or
– just the wordpress backend with the settings pagesto nandinidesigns
I’m referring to – when I try to send an enquiry it just loads and loads…
and in my answer it is a file that came with the plugin.
If you have no routine with coding try to be very specific in your question and maybe I can help
mock parameter meaning it is not intended to ever be used,
but due to the declaration this must provide two parameters, email_heading and email_subject.The plugin seems to be handling the email_subject somewhere else. Therefore whatever is passed in at this point is not used within the actual mail.
My mock parameter is a string like ‘test-parameter’.Hi,
regarding
2nd – when I try to send an enquiry it just loads and loads…I had the same issue,
found the problem originates in wp-content/plugins/woocommerce-catalog-enquiry/templates/emails/woocommerce-catalog-enquiry-admin.php on line 13.The do_action(…) call needs two parameters, but here it only has one.
For me it solved the problem to add a mock parameter.Quick testing showed that added parameter does not appear in the mail, but you must test it yourself to be on the safe side