Page 1 of 1

Dollar sign before the price

Posted: Fri Sep 29, 2006 6:47 am
by anton
Hi,

Thank you for this wonderful software, this is what I was looking for a long time. I am planning to have deposit payments through the Paypal as well, now I am trying to customize the script for my holiday properties in Australia.

I was wondering if you could show where to change the code to show the dollar sign before a price (e.g $100 instead of 100 Dollars).

I was trying to figure out myself, but because the code is in Italian I couldn't find it.

Thank You!

Probmem solved - Dollar sign

Posted: Fri Sep 29, 2006 8:06 am
by anton
I figured out myself, don't worry about it.
Just modified modello_disponibilita.php

Thanks!

Dollar Sign

Posted: Wed Nov 01, 2006 2:33 pm
by whacker
Hello
Went digging through the file to try and add $ sign before the price..
Couldn't find the spot..
Could you offer some suggestions where to look???

Walter

Posted: Thu Nov 02, 2006 8:46 pm
by marco
Try searching for the $Euro variable. The file of the availability template is includes/templates/modello_disponibilita.php.

Marco

$ sign

Posted: Fri Nov 03, 2006 7:48 pm
by whacker
Hi

I need some more clarification!!!

heres some of the code from modello_disponibilita.php , shows 2 instances of euro
There is probably at least 10 other instances in this file...

if ($costo_tariffa_tot == 1) $testo_a_video .= " $fr_Euro";
else $testo_a_video .= " $fr_Euros";

Shown below is the text from the availability template I would like to change 84.36 CDN Dollars to $84.36 CDN
also 10.36 CDN Dollars in the same way.

Walter

Check Availability
Please add note in Comments for extra Guests (basic 2 Guests/Room)


There is still availability in the requested period for type Room 5.

Period of 1 day from 18-11-2006 to 19-11-2006 for 2 people.

Price: 84.36 CDN Dollars (including 10.36 CDN Dollars of 14% HST).

Posted: Mon Nov 06, 2006 10:14 am
by marco
$fr_Euro is the variable that holds the currency symbol, $testo_a_video holds the text that's going to be printed on the sceen. So you should look for what is added before to $testo_a_video (probably $costo_tariffa_tot_p in your example) and move those lines before that.

Marco

Trying to find the DOllar sign variable and how to move it

Posted: Sat May 26, 2007 12:18 am
by riklogtenberg
Hi Marco,

thanks for this great software!

I'm trying to figure out how to do this and I can't seem to figure out where to move $fr_Euros. Can you explain again how to move the dollar sign to the front of the price? For example, in the availability template I need this:

Price: 175 $.

to be this:

Price: $ 175.



Thanks.

Posted: Sat May 26, 2007 1:10 pm
by marco
Hello,
some degree of php knowledge is needed, if I have to explain it step by step it would take more time than doing it directly. I will add this feature to my list of things to do for future versions, if you need it immediately I can make you an estimate of the cost.

Marco