• Resolved calincosmin

    (@calincosmin)


    Hello

    The links to the products received in the email take me to product edit. I would like the links to take me to the product page

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Alberto Martin

    (@albertomrtn)

    Hi @calincosmin, in the emails this link is created to redirect you to the product administration area.

    Thread Starter calincosmin

    (@calincosmin)

    Hi. I am sorry but I don’t see the helpfulness in this. As I see it, this plugin is mostly used by stores that don’t sell products directly, but by making custom quotes for each customer, based on the quantity of products bought. Maybe the person that makes the quotes needs a reminder about the solicited product, so a link to the product is useful. But an edit product link would be only useful for the web admin or someone else that has editing rights. The person responsible for quotes might not even have website credentials.

    Plugin Support Carlos M

    (@cjmora)

    Hi @calincosmin,
    The only way would be to override the email template on a Child Theme.
    You need to copy this file:
    wp-content/plugins/yith-woocommerce-request-a-quote/templates/emails/request-quote.php

    And paste it inside the woocommerce directory from the Child Theme.
    It should be like:
    wp-content/themes/<your child theme>/woocommerce/emails/request-quote.php

    Then you can add your modifications to the PHP code. Substitute line 55 with this one:
    <td scope="col" style="text-align:left;"><a href="<?php echo esc_url( $_product->get_permalink() ); ?>"><?php echo wp_kses_post( $_product->get_title() ); ?></a>

    I hope it helps.

    Thread Starter calincosmin

    (@calincosmin)

    That worked. Thank you for your help

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.