Override email template wcce_reply_email.php or wcce_send_email.php Resolved
PhilippeParticipantDecember 24, 2018 at 11:31 amPost count: 38
I hope you’re fine.
I have a little issue about overiding email template.
For example in the file wcce_reply_email.php you have written:
“Override this template by copying it to yourtheme/woocommerce-catalog-enquiry-pro/emails/wcce_reply_email.php”
But when I copy/paste and modify a bit the text in this file it doesn’t work.
I use the Rehub theme and Rehub Vendor child theme.
I tried both, in Rehub and in Child, no way …
Any idea ? What did I miss ?
2nd point, I’d like to add the “product link” in reply email, how is it possible ? Which php/WP variable ?
Thanks a millions for your support.
NerdySupportExpert MoumitaKeymasterDecember 25, 2018 at 2:36 amPost count: 2562
@Philippe, can you please share the modified template file with us and let us know what changes have you mad,e so we can test the same on our end.
Regarding adding product link in the reply email, let me consult with our team regarding this. I will be able to revert back to you by Wednesday.
PhilippeParticipantDecember 26, 2018 at 5:42 amPost count: 38
for the moment I didn’t modify the template.
I just made some tests by adding peaces of HTML code into the template, and it seems that doesn’t work at all when I place the php file in my theme.
* WCCE Reply Email
* Override this template by copying it to yourtheme/woocommerce-catalog-enquiry-pro/emails/wcce_reply_email.php
* @author WC Marketplace
* @package woocommerce-catalog-enquiry-pro/Templates
* @version 1.0.0
For example I replaced in all templates, in file wcce_reply_email.php
this line :
<p style=”color: white; font-family: Arial; font-size: 15px; font-weight: 400; line-height: 25px; padding: 0 0 0 20px;display: inline-block;”><?php echo __(‘First of all, Thanks for showing interest on ‘,’woocommerce-catalog-enquiry-pro’) . get_option(‘blogname’);?>.</p>
<p style=”color: white; font-family: Arial; font-size: 15px; font-weight: 400; line-height: 25px; padding: 0 0 0 20px;display: inline-block;”><?php echo __(‘First of all, Thanks for showing interest on ‘,’woocommerce-catalog-enquiry-pro’) . get_option(‘blogname’);?> HOHOHO HOHOHO.</p>
Whatever the template I use (I made the change for all templates) I receive a reply with “HOHOHO HOHOHO” in the message, as expected when I let this file in plugin folder.
When I try to put it in my Theme folder it doesn’t work.
When I tried to remove this file from the Plugin folder and let it in Theme folder, I got the error messsage :
“Somethings wrong with your mail!”
So, it doesn’t work like explained in header of this file, overriding doesn’t work.
That’s all I can say.
Finally my question is : can we override the emails templates ?
Thank you for your support.
NerdySupportExpert MoumitaKeymasterDecember 26, 2018 at 7:24 amPost count: 2562
@Philippe, yes you can override the templates.
Now that you are facing the issue, can you share a temporary admin and ftp access, so we can test the same. While sharing the access, don’t forget to mark the response as private.
Also, in order to add product link for the email reply, you can use our default tag such as |PRODUCT_NAME|, |PRODUCT_URL|, as you can see in this screenshot – https://prnt.sc/lzp0z6
PhilippeParticipantDecember 26, 2018 at 11:52 amPost count: 38
thank you for your answer,
I will share an admin access in the next post.
Right now, I would like to clarify my needs about the product link.
In fact I need to add the product link automatically in reply email template, cause I need to add also a paramater in the url.
For example a Customer asks for a quote about a product, the product link will be :
When the Vendor replies, I would like to provide automatically a link to the same product + a parameter :
To go further, this is how it works :
On the page http://mywebsite.com/shop/product_1
we use a special CSS which hides the “pay button”, so we have only the Catalog Enquiry button.
When a vendor replies, the link in the email is (would be) : http://mywebsite.com/shop/product_1/?myvar=pay
So, if myvar=pay then we use another CSS to hide the Enquiry button and show the pay button up.
This way a Customer cannot pay a product if the vendor didn’t reply at least one time.
I share an access now 😉
The topic ‘Override email template wcce_reply_email.php or wcce_send_email.php’ is closed to new replies.