mao101 Posted February 4, 2014 Share Posted February 4, 2014 Hi guys! The images for the "specials block" are not appearing, the same is true for a new image that I'm trying to add to the footer block. You can see this page as example http://www.anitakremer.com/presta/en/home/22-bra-strapless-push-up-lycra-glamour-collection.html For the specials block I do not have a clue how to fix it. Regarding of the footer block I have added this piece of code: <img src ="<?php print base_path().path_to_theme(); ?>/footer_images/image_to_insert.jpg" /> now I can see a big question mark instead of the image. Any expert advice is highly appreciated. Link to comment Share on other sites More sharing options...
NemoPS Posted February 5, 2014 Share Posted February 5, 2014 That's not the way to go for dynamic paths. You have to use {$img dir} for the theme's image directory for example, or {$base_dir}/{$base_dir_ssl} to get the base prestashop directory. Don't use php tags in smarty, use smarty tags Link to comment Share on other sites More sharing options...
mao101 Posted February 5, 2014 Author Share Posted February 5, 2014 Nemo, if the directory where the image is located is called FOOTER IMAGES it is ok to write this code? {$footer images_dir}/{$base_dir_ssl} Link to comment Share on other sites More sharing options...
vekia Posted February 5, 2014 Share Posted February 5, 2014 {$base_dir_ssl} creates link with http (or https) to your shop something like http://yourshop.com/ so construction like {$footer images_dir}/{$base_dir_ssl} is wrong Link to comment Share on other sites More sharing options...
Recommended Posts