Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Configurable order status (Howto)
(1 viewing) (1) Guest
Support forum for customers who have purchased this product. Archive only, no new post can be added.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.
  • Page:
  • 1

TOPIC: Configurable order status (Howto)

Configurable order status (Howto) 12 years ago #34883

Hello, first of all, great component. Bought it yesterday and now up an running for 95%.
But i actually bought the component for the following:

Configurable order status, when invoice is generated and sent.

But how to do that? I have the following setup:

J2.5.6 VM2.0.14

When an order is placed and paid, the status is set to confirmed by virtuemart. Then your component triggers the invoice process. Invoice is made and sent. The next thing I would like to happen is this Configurable order status, when invoice is generated and sent.

So that the status will automaticly change to for instance "status:invoice sent".

How can I configure this?
The topic has been locked.

Re: Configurable order status (Howto) 12 years ago #34885

  • maju
  • OFFLINE
  • Posts: 1107
Hello,

If system send an invoice to the customer, it is marked in VM Invoice database tables and all already sent invoices are visible on Invoice/Order Management (column Invoice Sent). It has nothing to do with order status, which is used from VirtueMart component.
ARTIO Support Team
The topic has been locked.

Re: Configurable order status (Howto) 12 years ago #34917

Thanks for your input! Thats a clear answer. I think I can work with this.

In relation to this above question I have another.

When the invoice is sent, I would like to invite my customers to write a review on a review site. I can do this manually by entering the customers emailadress to in the customer review system. But there also is an option for automatic invitation. This link has to be called:

www.reviewsite.com/set.php?user={user}&connector={connector}&action={action}&targetMail={targetMail}&
delay={delay}

The only important value is the {targetMail} wich has to be the buyers emailadress (to witch the invoice is also sent).

Can this link be triggered when an invoice is sent? Or can you pinpoint me in the right direction for modification of the script? Inother words, can you help me on this matter (willing to pay for it) or can you tell me what triggers the sending of invoices in your script.?

Thanks in advance.
The topic has been locked.

Re: Configurable order status (Howto) 12 years ago #34927

  • pama
  • OFFLINE
  • Posts: 489
Hello. Point you are probably looking for it administrator/components/com_vminvoice/helpers/invoucehelper.php somewhere before end of sendMail() function.

You can add there something like:

if ($res===true){
file_get_contents('www.reviewsite.com/set.php?user={user}&connector={connector}&action={action}&targetMail='.$mailTo.'&delay={delay}');

}

Of course on dependance of your server, if file_get_contents will not work, you will need to use cURL library, etc.
Beware, if this file updates during component update, your changes are discarted and you will have to make modification again.
We can make this as paid customization for you. 1 Hour will be totally sufficient, also changes stays after upgrade.
ARTIO Support Team
The topic has been locked.

Re: Configurable order status (Howto) 12 years ago #34928

Thanks for this clear answer. I really appreciate the fast response on questions!

Ill try to modify it myself. This doenst look all that hard!
Last Edit: 12 years ago by nsonsma.
The topic has been locked.
  • Page:
  • 1
Přihlášení uživatele Prázdný