Jolsvi Posted March 9, 2021 Share Posted March 9, 2021 (edited) Hi, I'm just wondering is there any way to insert product url into invoice (pdf)? So when customer open the pdf and click the product, they can be redirected to product page. Edited March 16, 2021 by Jolsvi (see edit history) Link to comment Share on other sites More sharing options...
Jolsvi Posted March 15, 2021 Author Share Posted March 15, 2021 Hi @ndiaga thank you for your answer. Can you show me how? Let say one customer order product A, how can I generate automatically the product url link (refer to product A) from order details and apply to invoice? Link to comment Share on other sites More sharing options...
Jolsvi Posted March 15, 2021 Author Share Posted March 15, 2021 Hi @ndiaga This is from the file invoice.product-tab.tpl and I try this: <table width="100%"> <tr> <td width="15%"> {if isset($order_detail.image) && $order_detail.image->id} {$order_detail.image_tag} {/if} </td> <td width="5%"> </td> <td width="80%"> <a href="'.$this->context->link->getProductLink($product['id_product']).'">{$order_detail.product_name}</a> </td> </tr> </table> But when I open the pdf file, product is not linked to product page Link to comment Share on other sites More sharing options...
Jolsvi Posted March 16, 2021 Author Share Posted March 16, 2021 Hi @ndiaga, it works!!!! Now the product on pdf can open the product page. Thank you for your help, really appreciate it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now