Well a small update. I modified productsinfo.php a little bit (and renamed it so it doesn't get overwritten in the future because of updates).
I didn't want to display the currency as EUR, so I did the following:
//$price = formatCurrency($price);
And it works.
I now have another small issue, but I don't know if I can change it at all.
I want to display the lowest price for a hosting package, so I entered the corresponding PID.
However it will display the price per year, because the product isn't available monthly, quarterly, but only per year.
I tried doing the following:
$price = $data[$billingCycle/12];
But that didn't work out.
Is there a way to create a re-calculation like price/12?
- - - Updated - - -
Nevermind. I was close already.
Just retried it with:
$price = $data[$billingCycle]/12;
And now it works.
And yes, I will keep this in mind when using other products (as I mentioned I renamed the file to be used with hosting only). )
Well using it twice on a page slows it down considerably. At least I noticed it straight away. Guess I will change it back my original coding, so I need to change it by hand. Won't happen much, so no harm done.
I will use this however on the TLD page. Very useful for it!