You have no items in your shopping cart.

Wednesday, May 8, 2024 9:45:33 PM

Problem with button?

Posted: 5 years ago

#8297 Quote

ron78

Posted: 5 years ago

#8297 Quote
​I updated the plugin, which was newer than the one I had.

I think ​I figured out what the problem is: The store owner was manually changing the Order Status from "Processing" to "Pending" after he reviewed the orders. Can you confirm that the "Generate Label" button shows up correctly for the "Processing" order status, but NOT for "Pending". Is that a bug?

Posted: 5 years ago

#8298 Quote

Support

Posted: 5 years ago

#8298 Quote
Yes.              
I did it because I wanted to avoid any mistake... my first customers wanted such logic and agreed with them.

if (order.PaymentStatus != PaymentStatus.Paid ||
                    order.ShippingStatus != ShippingStatus.NotYetShipped ||
                    order.OrderStatus != OrderStatus.Processing)
                    return Content("");

Do you want to print Label for Paid and Pending state too?

I can change this logic. Write me and I'll do it.

Posted: 5 years ago

#8299 Quote

ron78

Posted: 5 years ago

#8299 Quote
I'm not sure. The Pending status is supposed to indicate an order that hasn't been paid yet (check or money order payment, for example). So, a Pending order also has a PaymentStatus of "Not Paid". If you let Pending orders through (by adding another case to your if statement), the ones that aren't paid will still be filtered out, but it would let us use Pending to mean something else.

It's your call.

One other small thing you might consider: instead of not showing the button at all, it might be better to show it disabled. When I see an order without the button, I get nervous that the plugin isn't working.

Thanks!

Posted: 5 years ago

#8302 Quote

Support

Posted: 5 years ago

#8302 Quote
I did new release.

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved