walidon Posted July 16, 2014 Share Posted July 16, 2014 Dear all, I want to add a sentence "Preise inkl. gesetzl. MwSt. zzgl. Versandkosten" under the price of a product in the product page with the versandkosten being a link to a cms page! I know that it is in product.tpl but there a lot of price lines there I couldn't know where exactly, I tried few but nothing! Here is the link to the site. Your answer is highly appreciated:) Link to comment Share on other sites More sharing options...
NemoPS Posted July 16, 2014 Share Posted July 16, 2014 Hi! Prestashop version? COuld you share a link to your site as well? Link to comment Share on other sites More sharing options...
walidon Posted July 16, 2014 Author Share Posted July 16, 2014 (edited) Thank you very much for your quick answer version is 1.5.5 I succeeded in doing that but it is the same for all languages I have 3 languages En/Fr/De how to make that works that for each language will be the equivalent sentence! and how to make the versandkosten( or equivalent shipping in English) either blue or underlined to be clear that it is a link here is the link for one article http://www.chabaane.de/en/home/45-training-short-jump.html + i want to font smaller as you can see it is big! thank you in advance for any help that you will bring:) cheers Edited July 16, 2014 by walidon (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 16, 2014 Share Posted July 16, 2014 you can use <a href="{$link->getCMSLink(8)}">{l s=''your text'}</a> 8 is just an example use the cms page id instead Link to comment Share on other sites More sharing options...
walidon Posted July 16, 2014 Author Share Posted July 16, 2014 (edited) that is what I did <p> Preise inkl. gesetzl. MwSt. zzgl. <a class="iframe" href="{$link->getCMSLink(1)}">{l s='Versandkosten'}</a></p> the link and everything works fine. but the probleme is that the sentence Preise inkl. gesetzl. MwSt. zzgl.Versandkosten appearns in all 3 languages:) while I want for every language the equivalent sentence:) edit: this is the code and where I put the added one <p class="our_price_display"> {if $priceDisplay >= 0 && $priceDisplay <= 2} <span id="our_price_display">{convertPrice price=$productPrice}</span> {if $tax_enabled && ((isset($display_tax_label) && $display_tax_label == 1) OR !isset($display_tax_label))} {if $priceDisplay == 1}{l s='tax excl.'}{else}{l s='tax incl.'}{/if} {/if} {/if} <p>Preise inkl. gesetzl. MwSt. zzgl. <a class="iframe" href="{$link->getCMSLink(1)}">{l s='Versandkosten'}</a></p> </p> {if $priceDisplay == 2} <span id="pretaxe_price"><span id="pretaxe_price_display">{convertPrice price=$product->getPrice(false, $smarty.const.NULL)}</span> {l s='tax excl.'}</span> {/if} <p id="reduction_percent" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'percentage'} style="display:none;"{/if}><span id="reduction_percent_display">{if $product->specificPrice AND $product->specificPrice.reduction_type == 'percentage'}-{$product->specificPrice.reduction*100}%{/if}</span></p> <p id="reduction_amount" {if !$product->specificPrice OR $product->specificPrice.reduction_type != 'amount' && $product->specificPrice.reduction|intval ==0} style="display:none"{/if}> <span id="reduction_amount_display"> {if $product->specificPrice AND $product->specificPrice.reduction_type == 'amount' AND $product->specificPrice.reduction|intval !=0} -{convertPrice price=$productPriceWithoutReduction-$productPrice|floatval} {/if} </span> </p> could it be that I put the code in the wrong place as well? Edited July 16, 2014 by walidon (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted July 16, 2014 Share Posted July 16, 2014 You have to use {l s=''} on that too, separately Link to comment Share on other sites More sharing options...
walidon Posted July 16, 2014 Author Share Posted July 16, 2014 you are a start:) just one last thing if you allow:) how to make the link blue or at least underline the link!? in my case href="{$link->getCMSLink(1)}">{l s='Versandkosten'} (versandekosten = shipping) so I want that word either underlined or blue to appear as a link and if it is possible to make th whole sentence smaller. if you go to the link i provided you can see that it is big i want it smaller:) and that is highly appreciated Link to comment Share on other sites More sharing options...
NemoPS Posted July 18, 2014 Share Posted July 18, 2014 THat depends on css. If you only need that, you can add style="color: blue;text-decoration:underline" to the anchor tag. Of course change blue wot any hex you like Link to comment Share on other sites More sharing options...
walidon Posted July 20, 2014 Author Share Posted July 20, 2014 you mean something like this <a style="color: blue;text-decoration:underline" class="iframe" href="{$link->getCMSLink(1)}">{l s='Versandkosten'}</a> Thank you Link to comment Share on other sites More sharing options...
wespazjon Posted August 10, 2014 Share Posted August 10, 2014 Hello, I have the same problem - in the latest version. I added the above solution - end of my_template/product.tpl file. unfortunately does not work additionally: Link : - Lieferzeit 1-3 Werktage - (Deutschlang link with CMS) - Lieferzeit 4-11 Werktage - (Europe link with CMS) i.e something like here: http://www.abitspezialist.com/hosting/image.php?di=5RP7 Link to comment Share on other sites More sharing options...
NemoPS Posted August 11, 2014 Share Posted August 11, 2014 Clear your cache in advanced parameters -> performance, it should appear Link to comment Share on other sites More sharing options...
Recommended Posts