VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Coding Central => Topic started by: sandomatyas on April 21, 2022, 15:22:05 PM

Title: Send waitinglist notification via CLI
Post by: sandomatyas on April 21, 2022, 15:22:05 PM
Is it possible to use VirtueMartModelWaitingList.notifyList() via CLI script?
I can call the method but can't get the correct language and the correct image url's
Do you have maybe some example scripts for something like that?
Title: Re: Send waitinglist notification via CLI
Post by: pinochico on April 21, 2022, 16:41:17 PM
With Email Manager and Waiting List plugin you can use cron
Title: Re: Send waitinglist notification via CLI
Post by: sandomatyas on April 21, 2022, 17:09:18 PM
Thanks, but waiting list is just an example, I want to learn how to manage VM things via CLI script

(FYI: yout site's SSL cert has expired)
Title: Re: Send waitinglist notification via CLI
Post by: pinochico on April 21, 2022, 18:37:19 PM
Quote(FYI: yout site's SSL cert has expired)

thanks, yesterday was ok, so I send info to our server staff.

We created more CLI script for VM:
- for synchronization VM orders with mobile app
- for synchronization sale prices (sales price before normal price) for filtering
- for synchronization payment with bank account

For every script we created php file - inside call vm trigger.
Sometimes as system plugin into joomla, sometimes call with CLI OPC Rupostel
For notify (waiting list) we created system plugin.