So I see a lot of people asking for a second currency add-on. Well, here's what I did and it seems to be working for me (I'm yet to create a shop with said currency, but will do that when I get home)
Go to MyPHPAdmin
You'll be editing the adopts_settings one.
Open up the SQL query and enter in this.
You can change premiumcurrency to whatever suits you, but please note you'll need to change any future uses of it to what you want it to be.
Next you'll edit the adopts_users.
Go to Structure then add a new column.
I simply checked the money one structure and copied it with the name 'premiumcurrency'. (I'll add a pic when I'm home later)
Now we need to go to your file manager and make some changes.
I wanted to be able to manually add currency through the ACP, so we'll start there.
Go to your adminCP files, and find user.php.
Find this:
and add beneath it:
Continues to next post as it won't let me post it all at once :/
Go to MyPHPAdmin
You'll be editing the adopts_settings one.
Open up the SQL query and enter in this.
INSERT INTO `adopts_settings`(`name`, `value`) VALUES ('premiumcurrency', 'Your Currency Name')
You can change premiumcurrency to whatever suits you, but please note you'll need to change any future uses of it to what you want it to be.
Next you'll edit the adopts_users.
Go to Structure then add a new column.
I simply checked the money one structure and copied it with the name 'premiumcurrency'. (I'll add a pic when I'm home later)
Now we need to go to your file manager and make some changes.
I wanted to be able to manually add currency through the ACP, so we'll start there.
Go to your adminCP files, and find user.php.
Find this:
$mysidia->db->update("users", array("email" => $mysidia->input->post("email")), "uid='{$mysidia->input->get("uid")}'");
$mysidia->db->update("users", array("money" => $mysidia->input->post("money")), "uid='{$mysidia->input->get("uid")}'");
and add beneath it:
$mysidia->db->update("users", array("premiumcurrency" => $mysidia->input->post("premiumcurrency")), "uid='{$mysidia->input->get("uid")}'");
Continues to next post as it won't let me post it all at once :/
Last edited: