How do you change point cost and currency from $ to £ in iObbah points shop
Hello Ragezone
Probably in wrong section so someone please move but anyways
How do I change the point cost and currency in iObbah's Point Shop. By default it is set to 1000 points for $1. I need to change it to 100 points for £1 any help much appreciated.
Thanks A 1 f i e
Re: How do you change point cost and currency from $ to £ in iObbah points shop
Off Topic: lbullen gtfo
On Topic: Look's Like need's some coding or checking Paypal or Paygol stuff :P
Re: How do you change point cost and currency from $ to £ in iObbah points shop
Quote:
Originally Posted by
lbullen
Alfie I would help you but thinking again i cba
Seriously? You post this?
@A1fie, I'm sure you can edit it within the code? (Guessing, Never used this)
Re: How do you change point cost and currency from $ to £ in iObbah points shop
I have a little feeling its somewhere in /paypal/paypal.php
Code:
$name = filter($_POST['name']);
$pertenct = 0.001;
$points = filter($_POST['points']);
$total = $pertenct * $points;
$money = number_format($total, 2, '.', '');
$paypal = ($money * 0.045 + .30);
$money3 = $money + $paypal;
$grand = number_format($money3, 2, '.', '');
$p->add_field('business', 'You@email.com');
$p->add_field('return', 'http://'.$_SERVER['HTTP_HOST']); //The success URL
$p->add_field('custom', $name);
$p->add_field('cancel_return', 'http://'.$_SERVER['HTTP_HOST']); // The "canceled" URL
$p->add_field('notify_url', $this_script.'?action=ipn'); //The IPN URL, the URL pointing to THIS page.
$p->add_field('item_number', filter($_POST['points']));
$p->add_field('item_name', $_POST['points'] . ' Points');
$p->add_field('amount', $grand);
$p->submit_paypal_post();
break;
But I'm not sure, since I've never used this.
Re: How do you change point cost and currency from $ to £ in iObbah points shop
Just looked around the code a little.
Go to file /js/default.js then line 152(154)
You should see something like this
Code:
function updatePoints(){
var points = document.getElementById('number').value;
if(points >= 1000)
{
var percent = 0.001;
var total = percent * points;
var money = total.toFixed(2);
document.getElementById('total').innerHTML = '$' + money;
}
else
{
document.getElementById('total').innerHTML = 'Minimum to buy is 1000';
}
}
Just edit the underlined number to the mount you want.
As for the USD to GBP, I didn't really look for. Sure you'll find it.