Jump to content

Flawed href in shipping info link


JohnSluder

Recommended Posts

I am looking at the file "in_transit.html" in PrestaShop 1.4.7. The link to click to view your shipping status is flawed

 

the file has line

 

You can track your package by clicking on the following link: {followup}

 

the resulting code

 

You can track your package by clicking on the following link: <a href="<br/>FEDEX : http://www.fedex.com/Tracking?cntry_code=us&tracknumber_list=514630342232&language=english<br/>"><br/>FEDEX : http://www.fedex.com/Tracking?cntry_code=us&tracknumber_list=514630342232&language=english<br/></a>

 

The a href with the BR tag and the word FEDEX seems to cause a problem with some email clients.

 

Where do I find where/how the html file is render?

Where would I start to look to hunt down the variable {followup}, I have hunted to "AdminOrders.php"

 

 

$templateVars = array(
'{followup}' => str_replace('@', $order->shipping_number, $carrier->url),
'{firstname}' => $customer->firstname,
'{lastname}' => $customer->lastname,
'{id_order}' => (int)($order->id)
);

 

My skills working with object based code is not as strong as it should be, a few points would be great.

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...