Advertisement:

Author Topic: Adding money manually at user wallet  (Read 1697 times)

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
Adding money manually at user wallet
« on: October 28, 2014, 09:31:49 pm »
Can Admin add money manually to a user's wallet???

bengalliboy

  • Full Member
  • ***
  • Posts: 204
Re: Adding money manually at user wallet
« Reply #1 on: October 28, 2014, 09:53:48 pm »
What is a wallet? Is this part of a shopping cart?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: Adding money manually at user wallet
« Reply #2 on: October 29, 2014, 12:24:32 am »
Hi,

Not using the Payment plugin, but you can do it this way:

1.- Create a file with extension .sql using a text editor with this content:

Code: [Select]
SET @user = 7;
SET @credits = 200;
INSERT INTO /*TABLE_PREFIX*/t_payments_wallet (fk_i_user_id, i_amount) VALUES (@user, @credits)
ON DUPLICATE KEY UPDATE i_amount = i_amount+@credits;

Change @user and @credits values and save.

1.- Import that file on Admin Dashboard -> Tools -> Import Data.

Regards

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
Re: Adding money manually at user wallet
« Reply #3 on: October 29, 2014, 12:50:01 am »
so every time that I want to add money manually to specific user , I will do this???? for every user that i want??

I think the "payments" wallet has money, not credits. its the same???

@bengalliboy the wallet is part of Payments plugin when someone buy a PACK
« Last Edit: October 29, 2014, 12:53:13 am by AdMeGreek »

AdMeGreek

  • Full Member
  • ***
  • Posts: 101
Re: Adding money manually at user wallet
« Reply #4 on: October 29, 2014, 01:12:54 am »
Hi,

Not using the Payment plugin, but you can do it this way:

1.- Create a file with extension .sql using a text editor with this content:

Code: [Select]
SET @user = 7;
SET @credits = 200;
INSERT INTO /*TABLE_PREFIX*/t_payments_wallet (fk_i_user_id, i_amount) VALUES (@user, @credits)
ON DUPLICATE KEY UPDATE i_amount = i_amount+@credits;

Change @user and @credits values and save.

1.- Import that file on Admin Dashboard -> Tools -> Import Data.

Regards

I made that BUT, I dont see any change at user's wallet.
At MySQL I saw the points to the user's values but at user's dashboard/wallet I dont see the specific value that I add.

I put money only with the normal way (paypal) :(

Im searching the way to add money manually :/

ridder

  • Newbie
  • *
  • Posts: 29
Re: Adding money manually at user wallet
« Reply #5 on: December 30, 2014, 05:45:13 pm »
up....Im searching too