VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Tryer on April 23, 2019, 17:33:25 PM

Title: Option to pay on line or pay on collection
Post by: Tryer on April 23, 2019, 17:33:25 PM
I have a requirement to offer customes the option of paying for a product on-line in the normal way, or allowing them to place an order on-line for the same product but then pay on collection from our premises. The problem is that the cart always shows the correct cost of the products even when the customer wishes to pay on collection. How can I force the cart to show a zero price under such circumstances (and treat the order as an upaid order to be paid for later?) Is it possible?
Title: Re: Option to pay on line or pay on collection
Post by: Tryer on April 23, 2019, 17:35:09 PM
Sorry, forgot to add:

Virtuemart 3.4.2, Joomla 3.9.5, PHP 7.2.17
Title: Re: Option to pay on line or pay on collection
Post by: AH on April 23, 2019, 18:43:11 PM
Ensure you have an Order status that does not create an invoice etc.  There is one in the default VM settings U - Confirmed by shopper

Create a standard payment method - Call it "Pay on collection"

Set the "Order Status for Pending transactions " to "confirmed by shopper" (or which ever status you require)

The payment method will be an option for customers allowing them to finalise an order with you without it setting a status that you recognise as "paid"

Title: Re: Option to pay on line or pay on collection
Post by: Tryer on April 23, 2019, 20:27:48 PM
Thank you. This seems to be working thanks to your help. I do however, get a warning message "At least on recipient email must be specified". I have read a number of earlier posts on this but have not resolved it. Who is the recipient? - the customer or the vendor. In my case both have emails specified.
Title: Re: Option to pay on line or pay on collection
Post by: GJC Web Design on April 24, 2019, 08:38:56 AM
Quote"At least one recipient email must be specified"

make sure your standard Joomla mailer is working ...  i.e. does the Joomla contact page work?
Title: Re: Option to pay on line or pay on collection
Post by: Tryer on April 24, 2019, 09:33:04 AM
Yes, it does. Both the details of the person placing the order, and those of the vendor, are listed in the Contacts list. But I still get the message "You must provide at least one recipient email address" when  an order is confirmed.
Title: Re: Option to pay on line or pay on collection
Post by: Jörgen on April 24, 2019, 12:41:38 PM
The Joomla contact list has nothing to do with Virtuemart order details. A link would probably help

Jörgen @ Kreativ Fotografi
Title: Re: Option to pay on line or pay on collection
Post by: Tryer on April 24, 2019, 13:12:32 PM
Thanks for your comments.

I'm not 100% sure, but I think I may have fixed this. The vendor did not have a shopper id, so I added some random code and it seems to have solved the problem. More tests ongoing! Does that make any sense? I could post a link but would like to do it privately and can't see how on this forum.