seog Posted November 21, 2010 Share Posted November 21, 2010 Hi, I am modifying the tables in order steps and I need know how to put the code php so that instead of the transporter's name be replaced by the image of the transporter which was uploaded to BackOffice in Carriers, I try with the next codes but only work the carrier name and i need only carrier image: {if $carrier.img}{else}{$carrier.name|escape:'htmlall':'UTF-8'}{/if} and: And this dont work, Any suggestions?Regards Link to comment Share on other sites More sharing options...
rocky Posted November 26, 2010 Share Posted November 26, 2010 Try the following code: <img src="{$img_ship_dir}{$carrier.id_carrier|intval}.jpg" alt="{l s='Carrier'}" /> Link to comment Share on other sites More sharing options...
seog Posted November 27, 2010 Author Share Posted November 27, 2010 You are a genius Rocky! Your code work perfectt thank you very much ;-) Link to comment Share on other sites More sharing options...
rocky Posted November 27, 2010 Share Posted November 27, 2010 I'm glad it worked for you. Please edit your first post and add [sOLVED] to the front of the title. 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