BoonDock Posted July 24, 2009 Share Posted July 24, 2009 Hi,I sell books from my website, and I wanted to create a link from my "Data Sheet" to my books on Lulu.com. I have added the "Lulu ID" as a feature on all the books that I have published, but never had a link to the books on Lulu. I finally got around to making the hack. This is what I did:First, made sure I was not using the default theme (copied the prestashop theme to a new directory) then opened product.tpl for editing.Search for <!-- product's features --> in that file. Under that line you will find the following : ></pre> <ul> {foreach from=$features item=feature} {$feature.name|escape:'htmlall':'UTF-8'}{l s=':'} {$feature.value|escape:'htmlall':'UTF-8'} I inserted the following code directly after that: {if $feature.name == "Lulu ID"} {/if} The feature name is important because that is what it is using to ensure it has the correct feature value. The Feature name is what you defined in the Back Office. I then created the link using the $feature.value as a part of the link. The whole link is displayed as an image, aligned right so that it doesn't interfere with the display of the list.I could have changed the code that actually displays the feature value, but I didn't want to mess with that, so adding an image worked well for me. You can check it out at http://www.justdone.co.za/shop/product.php?id_product=335, just click on the Data Sheet to see it working.I hope others find this useful (let me know). I would suggest that a forum where we can share this type of hack/mod etc might be a good idea.All the bestJohn Link to comment Share on other sites More sharing options...
Recommended Posts