Jump to content

Problem with leasing e-calculator


apastalas

Recommended Posts

Hello, I need to atach leasing e-calculator, looks very simple, but...

Here is the code that I need to put in product.tpl:

<iframe src="https://secure.mokilizingas.lt/online/calc/{layout}/{api-key}/{price}/{months}/{advance}/{share}/" scrolling="no" frameborder="0" allowtransparency="true"
  style="border: none; width: 100%; height: 100%;" title="Moki lizingas"></iframe> 

 Everything works fine, but calculator doesn't show any numbers, and I don't  know what code I need to write there {price} stands. At this moment I have to show two prices and I Used this code in product.tpl:

<div class="price">
<p class="our_price_display" itemprop="offers" itemscope itemtype="http://schema.org/Offer">
{if $priceDisplay >= 0 && $priceDisplay <= 2}{convertPrice price=FrontController::ConvertPrice($productPrice,$cookie->id_currency,4)}
{if $currencyFormat == 1 || $currencyFormat == 4}						
<meta itemprop="priceCurrency" content="{$currency->iso_code}" /> {$currencySign} <span id="our_price_display" itemprop="price">{$rightPrice|regex_replace:"/[\\{$currencySign}]/":""}</span>
{else}						
<span id="our_price_display" itemprop="price">{$rightPrice|regex_replace:"/[\\{$currencySign}]/":""} {convertPrice price=$productPrice}</span><meta itemprop="priceCurrency" content="{$currency->iso_code}" />
{/if}
<!--{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>

I'm attaching screen shot. Using prestshop 1.5.6.1. Website www.akvakomfortas.lt Thanks for any help.

post-756130-0-06715200-1429020337_thumb.png

Edited by apastalas (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...