fitgura Posted September 24, 2010 Share Posted September 24, 2010 Hi all! I just looking for a solution, how to write the code in the product.tpl file ---> because I wanna show a little free delivery icon above the price IF the price is over X dollar!!!Could anybody help me??pleaseTHX Link to comment Share on other sites More sharing options...
razaro Posted September 24, 2010 Share Posted September 24, 2010 Don't know if this is best way but try it.In your theme folder open product.tpl and copy this code just above prices code {if ( $product->getPrice(true, $smarty.const.NULL)|intval)>200}<img src="{$img_dir}free_del_{$lang_iso}.gif" alt="{l s='Free delivery !'}" class="free_del_img"/>{/if} <!-- prices --> I used condition that price with tax is greater then 200 you can change that.And you need to make and place images for each language you use, if more then one , in your theme img folder and name them free_del_en.gif, free_del_fr.gif, free_del_es..gif .Also you can add some styles for class free_del_img in global.css. Link to comment Share on other sites More sharing options...
fitgura Posted September 24, 2010 Author Share Posted September 24, 2010 Great thanks it works corectly Link to comment Share on other sites More sharing options...
rocky Posted September 24, 2010 Share Posted September 24, 2010 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