0

I want to show the product link on order admin onclick go to storefont product link or onclick to product thumbnail it open store product ordered image by new tab exabople link html http://example.com/simple-product-name.html#139=12&138=4 http://example.com/media/catalog/product/a/simple-product-image-link.jpg thank for your help, Image demo

2
  • There may be multiple products ordered in each order. How would you like to show multiple products in the grid? Nov 8, 2022 at 14:54
  • Per line product <a href= "product 1 link">Product 1 name<a> <a href= "product 2 link">Product 2name<a>
    – Bbaodenx3
    Nov 9, 2022 at 7:09

1 Answer 1

0

Add your column with a custom renderer: https://meetanshi.com/blog/use-grid-renderer-in-magento-2/

You should get all order items in your renderer and just concatenate them. Keep in mind it's a flat storage so take care to try catch NosuchEntityException in case of the product don't exists.

1
  • Thank you I will try with the guide and show the result after make a change
    – Bbaodenx3
    Nov 9, 2022 at 7:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.