Support » Plugins » [Plugin: WooCommerce] Remove product link from Thank You page

  • There is just one little thing keeping me from going live with WooCommerce. I offer just one downloadable product. I have removed all unnecessary links to the shop page, to the product page and in the cart. This to prevent the customer from getting lost.

    All is well, except for the “Thank You – Order Received” page. In the order overview the name of the downloadable product is shown as a link, together with the download link.

    The product name link is a link to the product page, a page that is not used and in this case should not be shown. I would prefer to keep the name of the product in the overview but as plain text in stead of a link.

    Does any one know how to go about this?

    The page is build in thankyou.php and there is even an action: woocommerce_thankyou

Viewing 7 replies - 1 through 7 (of 7 total)
  • Good day Magdor –
    How did you manage to remove the links to the shop page / product page and the ones like it in the cart. Would really appreciate your advice success here. Trying to do the same thing.
    Thanks if you can!

    Hi Magdor,

    I just encountered the same issue when trying to setup my woocommerce page. So Magdor, I wasnt able to find out how to “de-link” the product name link but what I have done is found a way to redirect the link to any url that you wish.

    What you want to do is copy, then open, the woocommerce/templates/order/order-details.php file. Inside the file you will see a line of code as follows:

    apply_filters( ‘woocommerce_order_table_product_title’, ‘

    What you want to do is erase the get_permalink area and enter whatever url you desire. So this is what it will look like:

    apply_filters( ‘woocommerce_order_table_product_title’, ‘

    Then upload the file into a new folder in your theme folder so that the directory looks like this: themes/YOURTHEME/woocommerce/order/order-details.php. What this does is prevent your customizations from being overwritten when you update the plugin.

    Hope this helps 🙂

    Hi Magdor,

    I just encountered the same issue when trying to setup my woocommerce page. So Magdor, I wasnt able to find out how to “de-link” the product name link but what I have done is found a way to redirect the link to any url that you wish.

    What you want to do is copy, then open, the woocommerce/templates/order/order-details.php file. Inside the file you will see a line of code as follows:

    apply_filters( 'woocommerce_order_table_product_title', '<a href="' . get_permalink( $item['product_id'] ) . '">

    What you want to do is erase the get_permalink area and enter whatever url you desire. So this is what it will look like:

    apply_filters( 'woocommerce_order_table_product_title', '<a href="ENTER YOUR URL HERE">

    Then upload the file into a new folder in your theme folder so that the directory looks like this: themes/YOURTHEME/woocommerce/order/order-details.php. What this does is prevent your customizations from being overwritten when you update the plugin.

    Hope this helps 🙂

    wpjohnny

    (@wpjohnny)

    Anyone know how to remove (de-link) the “image product link” and “product link” from the cart page?

    I’m also interested to know How to de-link products everywhere in woocommerce.

    I only want a catalog with add-to-cart for each product without any link to product details.

    Dimitri

    leklend… For starts, here is the de-link for the product carts…

    table.checkout_cart .product-name a , table.checkout_cart .product-thumbnail a {
    pointer-events: none;
    cursor: default;
    }

    (Thanks to woocommerce support)

    Thank you wpjohnny
    In fact they do not remove the link, they remove the ability to click on the link and they change the cursor.

    Smart way 🙂

    Dimitri

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WooCommerce] Remove product link from Thank You page’ is closed to new replies.