Jump to content

Adding a sentence under the Price of a product


Recommended Posts

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

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 by walidon (see edit history)
Link to comment
Share on other sites

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 by walidon (see edit history)
Link to comment
Share on other sites

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

  • 3 weeks later...

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:
 
 
 
 
Link to comment
Share on other sites

×
×
  • Create New...