Ana MBL Posted March 25, 2022 Share Posted March 25, 2022 In the order confirmation page I need to add links to each product, to their respective page, but it seems that $product.url is not available there. I can't find what class to edit in order to add this information to the template, if anybody could point me in the right direction it would be great. Link to comment Share on other sites More sharing options...
Magicalname Posted March 25, 2022 Share Posted March 25, 2022 Hello, you can modify the themes/classic/templates/checkout/_partials/order-confirmation-table.tpl this way {*if $add_product_link*}<a href="{Context::getContext()->link->getProductLink($product)}" target="_blank">{*/if*} <span>{$product.name}</span> {*if $add_product_link*}</a>{*/if*} to get the Product Name linking to the Product. Maybe there are other ways or variables but its a way to make it work Link to comment Share on other sites More sharing options...
Ana MBL Posted March 25, 2022 Author Share Posted March 25, 2022 Thank you for the quick response, this seems to work. And it's a better solution than modifying the classes. Link to comment Share on other sites More sharing options...
Magicalname Posted March 25, 2022 Share Posted March 25, 2022 $link->getProductLink($product) seems to be the right solution 1 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