VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: jarlu on September 30, 2019, 14:29:18 PM

Title: When I change order status of product delete discount from coupon
Post by: jarlu on September 30, 2019, 14:29:18 PM
Hello, please help me. When I change order status for one or more ordered products and save order, discount form coupon will be remove and order have full price like without coupon.  Where is a problem? Details is in attachment.
Before save is price of order with coupon 61,12€ after save 67,80 (coupon discound was removed)
Title: Re: When I change order status of product delete discount from coupon
Post by: Jörgen on September 30, 2019, 15:27:53 PM
Vm and joomla versions please. Is this a new issue ?
Upgraded ? New install ?
Jörgen @ Kreativ Fotografi
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on September 30, 2019, 15:56:13 PM
VM: 3.2.12
Joomla: 3.9.12
Title: Re: When I change order status of product delete discount from coupon
Post by: Jörgen on September 30, 2019, 16:17:31 PM
Quote from: Jörgen on September 30, 2019, 15:27:53 PM
Is this a new issue ?
Jörgen @ Kreativ Fotografi

This is an old an insecure Vm version. Upgrade on a backup version of Your site.

Jörgen @ Kreativ Fotografi
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 01, 2019, 09:34:26 AM
Hello, I upgraded VM to 3.6.2 version, but issue is still being. Coupon discount was removed after change status order on product. You can see it in attachment.
Title: Re: When I change order status of product delete discount from coupon
Post by: Jörgen on October 01, 2019, 13:00:43 PM
Is this native coupon or some addon component ? I have never seen this behaviour when changing status on order and I have used Awocoupon for years. Is the only thing You are doing changing order status from for example CONFIRMED to PAYED ?

When did this start to happen ? Have You upgraded the PHP version ? What PHP version are You using ?

Jörgen @ Kreativ Fotografi
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 01, 2019, 13:22:27 PM
Quote from: Jörgen on October 01, 2019, 13:00:43 PM
Is this native coupon or some addon component ? I have never seen this behaviour when changing status on order and I have used Awocoupon for years. Is the only thing You are doing changing order status from for example CONFIRMED to PAYED ?

When did this start to happen ? Have You upgraded the PHP version ? What PHP version are You using ?

Jörgen @ Kreativ Fotografi

Hello,
it is classic native coupon from virtuemart. PHP is 7.2.16. I don't know when problem started, but during one order I saw, that coupon discount was removed. When I tested problem I found it that will be happend only, when I change status of order but only on product label. Yes sometimes I am setting one status for one product and second status for other product.
Title: Re: When I change order status of product delete discount from coupon
Post by: Jörgen on October 01, 2019, 13:43:35 PM
Have You upgraded the live site ? If You have upgraded a backup, turn on error reporting to see if you can see any errors.
If You do not see any errors, please test with a PHP 7.0 or 7.1 version. Preferably on a backup.

Jörgen @ Kreativ Fotografi
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 01, 2019, 14:11:41 PM
I tried php version 7.1 the issue was not resolved. In attachments are screens of bugs report.
Title: Re: When I change order status of product delete discount from coupon
Post by: Jörgen on October 01, 2019, 14:33:42 PM
Since I do not know Your language, has the coupon expired ?

Jörgen @ Kreativ Fotografi
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 01, 2019, 14:41:18 PM
No, coupon is valid. Issue is the same when is gift coupon or permanent coupon.
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 03, 2019, 21:26:04 PM
Hello, do you have for me some solution? Thank you.
Title: Re: When I change order status of product delete discount from coupon
Post by: Studio 42 on October 03, 2019, 22:59:06 PM
You change the statut per product or global ?
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 04, 2019, 06:56:37 AM
The issue is only when I change status per product.
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 07, 2019, 16:43:53 PM
If you will try it on yours virtuemart, do you have same issue or not? Thx
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 11, 2019, 16:52:37 PM
Hello, I use virtuemart about 2 years. I thought that, if I find some bug or issue, I find help on official forum, but my experience is different...
Title: Re: When I change order status of product delete discount from coupon
Post by: AH on October 11, 2019, 18:06:00 PM
odd - because I see lots of responses trying to help you - and it is not a confirmed "bug"
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 11, 2019, 20:01:27 PM
Thank you, for your answer. Yes I have a lot of questions about my issue but I dont have any solution (12 days passed).
Title: Re: When I change order status of product delete discount from coupon
Post by: StefanSTS on October 11, 2019, 21:45:48 PM
Your problem is a very specific task that affects probably just a few users, so the problem is probably on the to do list of the VM team, but not of very high priority.

If you want to increase the priority of your issue, you could buy a supporter membership. The description there says that bugs will be of higher priority, if a member reports it, if I remember that right.

If that is an urgent matter for you, you can also open a ticket at virtuemart.net and let them fix that for you. Or ask a developer of your choice.

Stefan

Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 14, 2019, 12:20:31 PM
Thank you, now I know what I can do.
Title: Re: When I change order status of product delete discount from coupon
Post by: Milbo on October 16, 2019, 13:30:58 PM
I think I was able to fix the bug, please test http://dev.virtuemart.net/attachments/1204/com_virtuemart.3.6.3.10179_package_or_extract.zip
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 16, 2019, 13:53:45 PM
Hello, I tried it, but bug is still not solved. If I change order status in product label, discount of coupon is removed. Screen is in attachment.
Title: Re: When I change order status of product delete discount from coupon
Post by: Milbo on October 29, 2019, 14:11:39 PM
The bug was there. I can confirm that. I just tested again with the svn version 10187 and it worked for my case.

You may describe more specific. Which calculation rules do you use?
Title: Re: When I change order status of product delete discount from coupon
Post by: jarlu on October 29, 2019, 14:38:13 PM
Hello, Thank you for your answer. I use two types of VAT rules (settings you can see in screens). DPH 20 is main VAT rules. Coupons are standards coupons from VM