Post by carcaras3 » Sat Jul 21, 2018 1:43 am

Hi All.
I need to find (or build) a way to save the balance due after an order has been edited through admin (removed products, added products, changed shipping, etc). So I can show in the order details if there is a payment or refund to be requested/done after the changes are made. Does Opencart save this information somewhere? (I can't find where) If not, that's ok, I will probably need to write a new module and a mod for this, but just want to be sure before I start coding.
Version: 3.0.2.0

Thanks.
Last edited by carcaras3 on Sat Jul 21, 2018 5:12 am, edited 1 time in total.

Newbie

Posts

Joined
Mon Jul 31, 2017 8:19 pm

Post by straightlight » Sat Jul 21, 2018 3:48 am

As a new forum user, please follow the forum rules. No OC version posted. However, the balance can be seen in the admin customers page once the total being confirmed when an order either gets added or edited from the admin based on the order total extension module you might be using.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by carcaras3 » Sat Jul 21, 2018 5:12 am

Sorry.
The Opencart Version is 3.0.2.0.
I know you can check it after edition. I was wondering if you can check this value before hitting the save button.

Another question, let's say you added a product to the order, and you end up with a balance of $30, then you have to edit again to change the shipping method because you forgot to change it in the first edit. After you save again the balance becomes a $0 refund. And you lose the old balance value.
Is this behavior ok? Or is something wrong?

I think it should keep the balance due until I check somewhere else that the pending amount has been paid. And I should be able to edit the order as much as I want in the meantime.

Thanks.

Newbie

Posts

Joined
Mon Jul 31, 2017 8:19 pm

Post by straightlight » Sat Jul 21, 2018 5:18 am

I know you can check it after edition. I was wondering if you can check this value before hitting the save button.
Yes, this is what the Opencart API is about as explained on the above.
Another question, let's say you added a product to the order, and you end up with a balance of $30, then you have to edit again to change the shipping method because you forgot to change it in the first edit. After you save again the balance becomes a $0 refund. And you lose the old balance value.
Is this behavior ok? Or is something wrong?
Opencart out-of-the-box does not use balance with shipping extension modules. The issue you are experiencing must be originating from an installed extension downloaded either from the Marketplace or from a 3rd party website.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


Regards,
Straightlight


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON
Who is online

Users browsing this forum: No registered users and 31 guests