Jump to content

$product.url is not available in the order confirmation page


Ana MBL

Recommended Posts

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

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 :)

image.thumb.png.a50b011a5220eeb343c1a705b32226ff.png

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...