VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: gabriela on November 23, 2016, 19:15:36 PM

Title: Request a quote without shipping and payment
Post by: gabriela on November 23, 2016, 19:15:36 PM
I am converting virtuemart into a quote request system rather than a shopping cart.
I have advanced in several things but I have only one problem that I can not solve.
As this is a quote request, I do not need the method of shipping and the form of payment. Both of them could be removed from the product summary, so that the user does not have to select either the payment or the shipping and can only click and send an email to the administrator.
The problem is that clicking, and although it is no longer displayed, the system anyway asks the shipping system first and then asks for the payment method, both in separate steps, that is, as if the user had forgotten to select them.

How can I really eliminate these two instances, payment and shipping?

The site under developer is http://www.solumet.cl/nuevo

Virtuemart is 3.0.18 and joomla 3.6.4
Title: Re: Request a quote without shipping and payment
Post by: AH on November 23, 2016, 20:17:25 PM
why not create

one shipping and one payment method

Shipping method configured as cost of 0.00 payment required call it "No shipping"

Standard payment and call it "Quote only"

These can then be "auto" selected and the user will have to do nothing but complete the "order quote"

Unfortunately your link gave me a 403 error
Title: Re: Request a quote without shipping and payment
Post by: gabriela on November 23, 2016, 22:15:08 PM
But in this way the shipping and payment are only instances that complicate the user and only slow down the process. There must be a way to tell Virtuemart by PHP with a condition that if the user has requested (or purchased) the products then the message is sent ... and skip everything else.
Title: Re: Request a quote without shipping and payment
Post by: jenkinhill on November 23, 2016, 23:38:03 PM
No. If there is one shipping and one payment method, each requiring no input from the customer then thay can be set to autoselect and will be bypassed as there is nothing to be saved. When I set up a quote system I simply hide unrequired content with css and use language overrides to ensuire the process is obvious to the user.
Title: Re: Request a quote without shipping and payment
Post by: gabriela on November 24, 2016, 21:06:35 PM
And how I could set a autoselect shipment and autoselect payment method? I could set a autoselect payment system called "without payment" for example, and a autoselect shipment called "send to email adress"? If autoselect don't need to show the step to customer would be better.
Title: Re: Request a quote without shipping and payment
Post by: jenkinhill on November 24, 2016, 23:16:11 PM
In VM Configuration/Checkout  - surely you have tried this?
Title: Re: Request a quote without shipping and payment
Post by: Studio 42 on November 25, 2016, 10:20:49 AM
You can hide, the shipment part with some CSS, or remove it, only the checkbox to use same shipto adress as billto is needed but can be replaced by an HTML hidden input field.
For the customer Bill to adress, you can use a onepage checkout and in the user fields remove or disable display for all unneeded fields.
Title: Re: Request a quote without shipping and payment
Post by: AH on November 25, 2016, 10:43:29 AM
I suggest you use the one page checkout functionality

You can hide all the relevant fields as long as they are auto populated

Bill to same as ST is always auto checked so you can hide anything to do with shipping address.

This is relatively easy to do with overrides to the checkout templates

You are being advised here - but are not making it easy  -  because the link you provided is dead.

Title: Re: Request a quote without shipping and payment
Post by: gabriela on November 25, 2016, 13:02:17 PM
hi
I have one page checkout enabled. I hide the fields of shipment and payment in this page, and I think for this the system asked me again in two steps, but now I set in "Enable Automatic Selected Shipment" with self-pick up and "Enable Automatic Selected Payment" with cash on delivery, but now my problem is I can't complete the request (with or without shipment or payment, this error shows since before). The error says:

Warning: include(/home/sol515cl/public_html/nuevo/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php): failed to open stream: Permission denied in /home/sol515cl/public_html/nuevo/libraries/vendor/composer/ClassLoader.php on line 412

Warning: include(): Failed opening '/home/sol515cl/public_html/nuevo/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sol515cl/public_html/nuevo/libraries/vendor/composer/ClassLoader.php on line 412

Fatal error: Class 'PHPMailer' not found in /home/sol515cl/public_html/nuevo/libraries/joomla/mail/mail.php on line 18


The error is not corrected if I arrange the payment and shipping method. This error must have been happening before, but I had not checked.

The URL is still http://www.solumet.cl/nuevo/, please tell me what error shows your computer. Maybe there are some black list and I have to call to the server. I send a screenshot.

Title: Re: Request a quote without shipping and payment
Post by: Studio 42 on November 25, 2016, 13:09:21 PM
I think that file have not the right permission in your server.
Check with your cpanel file browser or by ftp.
Title: Re: Request a quote without shipping and payment
Post by: gabriela on November 25, 2016, 13:24:36 PM
The folder and files have right 744 and 644 permissions. The system was working, the last line in error says "Fatal error: Class 'PHPMailer' not found in /home/sol515cl/public_html/nuevo/libraries/joomla/mail/mail.php on line 18" and in line 18 there are nothing (a parenthesis)
Title: Re: Request a quote without shipping and payment
Post by: Studio 42 on November 25, 2016, 13:32:10 PM
You have fatal error, because file
/home/sol515cl/public_html/nuevo/libraries/vendor/phpmailer/phpmailer/class.phpmailer.php
is not loaded
This has nothing to do with Virtuemart itself and if the file is not missing, then this is protected by a permission rule.
Note line 18 extend PHPMailer : class JMail extends PHPMailer
Title: Re: Request a quote without shipping and payment
Post by: gabriela on November 25, 2016, 13:58:54 PM
I see php is not called another file, and for this the file is not missing. I don't know where I should search permissions error. If this is not necessary a VM error is maybe a user error (mailer error), but the users are the same, the emails are the same (gmail and yahoo original adress). Really I don't know what to do.
Title: Re: Request a quote without shipping and payment
Post by: Studio 42 on November 25, 2016, 14:22:39 PM
This code is used by standard Joomla mails too, try to send a mail from Joomla(contact form or back-end mail) and check if you have not same problem.

Title: Re: Request a quote without shipping and payment
Post by: gabriela on November 25, 2016, 14:27:24 PM
Yes. I have the same problem through contact form. I will ask in joomla forum.
After I will continue with the problem with shipment and payment. Thanks.