WCMp bundle is available at a slashed price

Grab It Now

Override email template wcce_reply_email.php or wcce_send_email.php

Override email template wcce_reply_email.php or wcce_send_email.php2019-01-04T00:38:20+00:00

Home Support Forum WCMp Catalog Enquiry Override email template wcce_reply_email.php or wcce_send_email.php

WCMp Catalog Enquiry

Override email template wcce_reply_email.php or wcce_send_email.php Resolved

  • Author
    Posts
  • Philippe
    Participant
    Post count: 38

    Hi There,

    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.

    Philippe.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 1415

    @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.

  • Philippe
    Participant
    Post count: 38

    Hi Moumita,

    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>

    by :
    <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 Moumita
    Keymaster
    Post count: 1415

    @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

  • Philippe
    Participant
    Post count: 38

    Hi Moumita,

    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 :
    http://mywebsite.com/shop/product_1
    When the Vendor replies, I would like to provide automatically a link to the same product + a parameter :
    http://mywebsite.com/shop/product_1/?myvar=pay

    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 😉

  • Philippe
    Participant
    Post count: 38
    This reply has been marked as private.
  • Tech Tycoon Debleena
    Keymaster
    Post count: 292
    This reply has been marked as private.
  • Philippe
    Participant
    Post count: 38
    This reply has been marked as private.
  • NerdySupportExpert Moumita
    Keymaster
    Post count: 1415
    This reply has been marked as private.
  • Philippe
    Participant
    Post count: 38

    Hi Moumita,

    first of all I wish you a happy new year 2019.
    Just a small word to tell you the problem is resolved 😉

    Thank you again for your support.

    Philippe.

  • NerdySupportExpert Moumita
    Keymaster
    Post count: 1415

    Wish you a happy new year too @Sure @Philippe

    We are closing this thread.

    If you need any further help, just open a new thread.

The topic ‘Override email template wcce_reply_email.php or wcce_send_email.php’ is closed to new replies.