VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: iWim on March 30, 2021, 16:45:33 PM

Title: VM Payment - Standard does not change order status
Post by: iWim on March 30, 2021, 16:45:33 PM
I thought I had created the topic, appearantly not...

Anyway...

I have created a testshop with 1 payment method: VM Payment - Standard.
Order Status for Pending transactions is set to Confirmed by shopper.

In configuration:
Enable Automatic Selected Payment is set to No preference.

But, when I place an order the order status remains Pending.

Extra info:
Clean & empty instal of J3.9.25 / VM 3.8.8
No additional extensions.

The payment method and plugin are published.

What did I miss...?
How do I make the status change from Pending to Confirmed (by shopper) when a customer clicks the confirm button?

Thank you.
Wim
Title: Re: VM Payment - Standard does not change order status
Post by: Jörgen on March 30, 2021, 17:52:36 PM
This has worked for at east 10 years...

Please show all your settings in payment and show the order status for the pending order.

By the way, are You trying to create invoices ? Turn off this.

Jörgen
Title: Re: VM Payment - Standard does not change order status
Post by: iWim on March 31, 2021, 11:00:05 AM
That's what I thought.

It's a real bare bones J/VM instal just to test something.
1 product/1 payment/1 shipping

Just tested on localhost. It has the Same issue.

Anyway, I attached screenshots of the payment method...
Title: Re: VM Payment - Standard does not change order status
Post by: iWim on March 31, 2021, 11:01:29 AM
...and here are screenshots of the email settings and the pending order.
Title: Re: VM Payment - Standard does not change order status
Post by: Jörgen on March 31, 2021, 13:59:58 PM
I think I see two things

Creating an invoice is actually ionly a problem when the data for the invoice is not setup correctly. To advanced CSS which breaks the TCPDF or logos that TCPDF can not handle.

I guess the invoce creation is the problem. Once fixed it will work with the status update.

Jörgen @ Kreativ Fotografi

Title: Re: VM Payment - Standard does not change order status
Post by: iWim on March 31, 2021, 16:35:54 PM
Thank you, Jörgen.

I do appreciate the help, but I'm not sure if we are talking about the same thing.

In a vanilla/clean/barebones J/VM install VM Payment - Standard does not change the order status from pending to confirmed by customer when a customer confirms an order with this payment method (auto)selected.
It remains Pending.

All I did was
- install Joomla
- install VM
- create 1 payment
- create 1 shipment
- create category
- create product
- place a test order.

QuoteYou have no wieght for the product, should not matter, but just to make sure
There is no setting in payment that requires weight.

QuoteIt looka like You are creating n invoice
According to the settings an invoice is created when status is confirmed. I haven't gotten that far... The status remains Pending
When I do change a status to confirmed an invoice is sent, but that's not the issue.

QuoteCreating an invoice is actually ionly a problem when the data for the invoice is not setup correctly. To advanced CSS which breaks the TCPDF or logos that TCPDF can not handle.
I currently only use the Protostar template and there are no logos or images set.

I do hope I explained it clearer.

Regards,
Wim
Title: Re: VM Payment - Standard does not change order status
Post by: AH on March 31, 2021, 17:48:15 PM
Just tested

"Standard does not change the order status from pending to confirmed by customer"

And in my test installation bare vm3 (VirtueMart 3.8.9 10499) everything works as expected and the order confirmation does change the status to that set in "Order Status for Pending transactions" which for me was - "confirmed by shopper."
Title: Re: VM Payment - Standard does not change order status
Post by: pinochico on March 31, 2021, 19:28:41 PM
important - you use beta version VM admin template - maybe is problem there?
Title: Re: VM Payment - Standard does not change order status
Post by: iWim on March 31, 2021, 19:44:49 PM
Okay... I think I solved it...  :-\

So after AH's reply I installed VM3.8.9 over VM3.8.8.
Issue remained, status remains Pending when placing an order.

I did a clean install of VM 3.8.9, with sample data.
No issue, status becomes Confirmed by shopper, works as expected.

Then I decided to change the Order Status for Pending transactions first to Pending and then back to Confirmed by shopper on the 3.8.9 shop with the issue.
Success!!! The status changed to Confirmed by Shopper when I place an order.

So I did the same with the 3.8.8 shop...
Success #2

Why? I don't know, but it seems to work...

Quoteimportant - you use beta version VM admin template
That might be true. I'll have to test that too...

Anyway, for now... Jörgen, AH and pinochico thanks for listening  ;D
Title: Re: VM Payment - Standard does not change order status
Post by: Jörgen on March 31, 2021, 20:59:06 PM
Hello

This looks strange. I have no good explanation, Pinochicos guess that this has to do with the admin template could be a correct guess. I have not seen this issue ever before. Not saying that this is a guarantee of any kind. Nice that You have a workaround, test without the new admin on a fresh install and see what happens. Would be nice to know.

best regards

Jörgen @ Kreativ Fotografi
Title: Re: VM Payment - Standard does not change order status
Post by: AH on April 01, 2021, 01:33:40 AM
Great you got back to us and found a working option - no idea what the issue could have been
Title: Re: VM Payment - Standard does not change order status
Post by: iWim on April 02, 2021, 12:16:58 PM
Found the reason...
It was me... :-\

When I created a new payment method I only saved once to load the configuration.
I checked the config if Confirmed by Shopper was selected.
Then I did a test purchase.

What I should have done was just a second save to save the configuration as well.  :P ::)

:-[
Title: Re: VM Payment - Standard does not change order status
Post by: Jörgen on April 02, 2021, 17:21:48 PM
Great, this is easier to understand. I wanted to ask if the data was saved in the database, but you showed the screenshots and what is shown in the views is exctly  what is stored in the database. So it did not make any sense to ask once again for this. Never thought that You had shown the views without making a final save.  ;)

Jörgen @ Kreativ Fotografi
Title: Re: VM Payment - Standard does not change order status
Post by: AH on April 02, 2021, 17:28:30 PM
Great to find out what you had done and thanks for letting the people reading this know - so many just don't bother once there problem is fixed.

Never realised you had not saved the settings.

It happens to us all  ;)