Ballance

27.03.2025 08:19
#1
msin
Joomshopping forum user no avatar
Name: Marcel Singer
17.05.2012
Сообщения: 51
Quote
Ballance

Hello

I tested Ballance but the update of the field "ballanced = 1" doesn't work. I checked the function order->store and this function doesn't work at all in ballance.php

$user->ballance += $order->ballance; (OK)
$user->store(); (OK)
$order->ballanced = 1; (NOK)
$order->store(); (NOK)

After check_out the order_status is correct. (change to paid)

Is there a problem with other addons I use?

+----+--------------------------------+----------------------------------------------------------------+
| id | alias | name |
+----+--------------------------------+----------------------------------------------------------------+
| 1 | addon_sna | JoomShopping sna |
| 2 | addon_min_max_quantity_product | Addon minimum maximum quantity product |
| 4 | addon_tcpdf | JoomShopping Addon TCPDF |
| 5 | addon_qr_bill | Addon QR Bill |
| 6 | payment_user_group | Payment for Usergroup |
| 7 | addon_send_copy_email | Addon send copy e-mail users |
| 8 | addon_list_product | Addon List Product |
| 9 | extrascoupon | Addon Coupon Extra Fields |
| 10 | addon_choice_amount_product | Addon choice amount product |
| 11 | check_db | Addon check the availability of the database tables and fields |
| 12 | fix_dublicate_order | Fix dublicate order |
| 13 | regular_products | Regular products |
| 14 | addon_ballance | Ballance |
+----+--------------------------------+----------------------------------------------------------------+


Joomla: 5.2.5
JoomShopping: 5.6.0
PHP: 8.3.16
MySQL: 11.6.2-MariaDB-ubu2404
Website Url: www.mshosting.ch
 
27.03.2025 10:07
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28003
Quote
Aw: Ballance

I tested Ballance but the update of the field "ballanced = 1" doesn't work. I checked the function order->store and this function doesn't work at all in ballance.php


Describe what you did.
Change order status in admin or click button ....

 
27.03.2025 11:34
#3
msin
Joomshopping forum user no avatar
Name: Marcel Singer
17.05.2012
Сообщения: 51
Quote
Aw: Ballance

Client buy item and check out and pay by balance. 1000 starting balance
After order. Account balance is 953.20

then I go to backend --> orders

I see status is "paid" but balance counted = NO

this is the first error already without any manipulation on my side.

2nd error (concerns same function)

when client buys new account balance, paid by common bill. State start with 1 ( is correct)

I receive money go to backend and change state from 1 to 6 (6 = paid)

but nothing happens. The status changes but the "balance counted" rests at NO

 
27.03.2025 21:47
#4
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28003
Quote
Aw: Ballance

New version:
Ballance 2.0.3
Fixed
Balance counted: Yes
---------------------------
back balance to user (after change status order => cancel)
will be later.

 
30.03.2025 19:30
#5
msin
Joomshopping forum user no avatar
Name: Marcel Singer
17.05.2012
Сообщения: 51
Quote
Aw: Ballance

I confirm it works now but...

you call the function changeStatusOrder() two times. Because of this I have two order-status with the same value

you see in the picture 1) = double status, 2) = admin status change

order_history_id 20 and 21 = buy with ballance
order_history_id 22 and 23 = buy with normal payment

Error on both type of buy.
Aw: Ballance

 
30.03.2025 19:42
#6
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28003
Quote
Aw: Ballance

I think the problem is not in the Ballance addon.

Payment system?
payment / paymentdata log?


Последнее изменение: 30.03.2025 19:43
 
31.03.2025 13:10
#7
msin
Joomshopping forum user no avatar
Name: Marcel Singer
17.05.2012
Сообщения: 51
Quote
Aw: Ballance

used pm_bank and pm_qrbill and pm_ballance

all generate two status lines

 
31.03.2025 14:44
#8
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28003
Quote
Aw: Ballance

Do you have a test site?

 
31.03.2025 21:37
#9
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28003
Quote
Aw: Ballance

Fixed in
Ballance 2.0.4

 
01.04.2025 20:50
#10
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28003
Quote
Aw: Ballance

New version
Ballance 2.1.0 (JoomShopping 5.0.0+)

Updated obsolete classes
After cancel order => update user balance

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.