Author Topic: paid checkbox in administrator  (Read 1185 times)

jarlu

  • Beginner
  • *
  • Posts: 34
  • A beginner
paid checkbox in administrator
« on: October 30, 2019, 09:28:45 am »
Hello, please can you help me with setting paid checkbox in VM administrator? I have own order status for paid orders and I need change settings when VM set that order was paid for other order status than confirmed. Thx.

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3280
  • VirtueMart Version: 3.8.4
Re: paid checkbox in administrator
« Reply #1 on: October 30, 2019, 10:20:32 am »
This is available via a hidden configuration  set in the file:-

administrator\components\com_virtuemart\virtuemart.cfg

using a setting of:

os_trigger_paid=array:C|newstatus|newstatus


To activate the setting - after you have updated your .cfg details

Go to admin/config and just hit save - then new values will override the defaults  used by the system
regards
A

Joomla 3.9.20
php 7.3

jarlu

  • Beginner
  • *
  • Posts: 34
  • A beginner
Re: paid checkbox in administrator
« Reply #2 on: October 30, 2019, 10:55:54 am »
Thank you, it works. How I can set it for more than one order status? Thanks

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3280
  • VirtueMart Version: 3.8.4
Re: paid checkbox in administrator
« Reply #3 on: October 30, 2019, 11:28:05 am »
This is a value that has to be manually added to

the file:

administrator\components\com_virtuemart\virtuemart.cfg

using a setting of:

os_trigger_paid=array:C|newstatus|newstatus


To activate the setting - after you have updated your .cfg details

Go to admin/config and just hit save - then new values will override the defaults  used by the system

https://docs.virtuemart.net/manual/general-concepts/206-hidden-configurations.html
regards
A

Joomla 3.9.20
php 7.3

jarlu

  • Beginner
  • *
  • Posts: 34
  • A beginner
Re: paid checkbox in administrator
« Reply #4 on: October 30, 2019, 13:06:31 pm »
Yes I know, it works but is it possible set paid for more than one status? For example for C or Z status?

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3280
  • VirtueMart Version: 3.8.4
Re: paid checkbox in administrator
« Reply #5 on: October 30, 2019, 16:08:56 pm »
That is what I am pointing you to do

os_trigger_paid=array:C|Z

will set paid for status C and or Z
regards
A

Joomla 3.9.20
php 7.3

jarlu

  • Beginner
  • *
  • Posts: 34
  • A beginner
Re: paid checkbox in administrator
« Reply #6 on: October 30, 2019, 16:37:33 pm »
Thank you, I thought that os_trigger_paid=array:C|newstatus|newstatus is strict structure. Now I understend, what newstatus says :D

AH

  • Global Moderator
  • Sr. Member
  • *
  • Posts: 3280
  • VirtueMart Version: 3.8.4
Re: paid checkbox in administrator
« Reply #7 on: October 30, 2019, 17:03:42 pm »
Excellent  :)
regards
A

Joomla 3.9.20
php 7.3

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: paid checkbox in administrator
« Reply #8 on: October 30, 2019, 20:31:23 pm »
:-)

I wonder if we should make it a normal config. I wrote here an explanation for that http://forum.virtuemart.net/index.php?topic=143733.0

By the reaction of Jarlu, I see that he struggled the same logic problem as I did. Almost any order status can be paid or partial paid, so I added this extra field. Jarlu, I am very interested in your report.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jarlu

  • Beginner
  • *
  • Posts: 34
  • A beginner
Re: paid checkbox in administrator
« Reply #9 on: October 30, 2019, 21:39:37 pm »
Hello Milbo, I think that normal config is important, because now I don't know which order status is the default for setting up paid orders.
I use speciffic order status for customer to information about their payment. If I accept order I set to order only confirmed status. I use speciffic payments metods (cash on delivery, cardpay, bank transfer payment). When customer select cardpay or bank transfer payment and payment is succesfful VM change order status to "confirmed and paid". Now customer know that, its payment was corrent.

In topic which you sent me, you wrote about refund payments. For this case, I edited the delivery note to a credit note. When customer return only part of order I set status on returned products "partical refund" and my delivery note generate for me credit note (.pdf) (this is without refund shipping and payment fees). When customer refund all products I set "refund" for all order and now I generate credit note with full price of order (product price with all shipment and payments fees - it is law in our country for eshops).

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 10070
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: paid checkbox in administrator
« Reply #10 on: October 31, 2019, 08:09:19 am »
Good. But your credit notes should now be done by VM. You may test it. just set an order to refund and create a new invoice, you should get a credit note.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

jarlu

  • Beginner
  • *
  • Posts: 34
  • A beginner
Re: paid checkbox in administrator
« Reply #11 on: October 31, 2019, 10:46:55 am »
Yes VM create credit notes, but I need to distinguish if the customer has returned all or part of the ordered products. Because when customer return all products I have to refund all fees (price of products, shipment and payment fees)