VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: vibinr on May 06, 2014, 16:40:38 PM

Title: Shipping doesn't work without logging in
Post by: vibinr on May 06, 2014, 16:40:38 PM
I think this question has been posted quite a lot of times (as I saw in search), but none of the solutions mentioned have worked for me.

Thing is, Virtuemart works perfectly if the user is logged in. But not when I use "Checkout as Guest".

If I'm logged in, because "Auto selected shipment/payment" is checked, I see the payment gateway selected on the checkout page.
Like this: http://cl.ly/VN9F/Screen%20Shot%202014-05-06%20at%208.04.36%20pm.PNG (http://cl.ly/VN9F/Screen%20Shot%202014-05-06%20at%208.04.36%20pm.PNG)

If I'm not logged in, no shipment method is selected, and when I click on "Select Shipment", it says "We are sorry, no shipment method matches the characteristics of your order".
It looks like this: http://f.cl.ly/items/0y2R3h1u163y0D3L443i/Screen%20Shot%202014-05-06%20at%208.03.59%20pm.PNG (http://f.cl.ly/items/0y2R3h1u163y0D3L443i/Screen%20Shot%202014-05-06%20at%208.03.59%20pm.PNG)

Any sort of help will be appreciated. :)
Title: Re: Shipping doesn't work without logging in
Post by: GJC Web Design on May 06, 2014, 16:49:57 PM
and when you switch on debugging what does it say?
Title: Re: Shipping doesn't work without logging in
Post by: jenkinhill on May 06, 2014, 16:51:04 PM
Shipping cannot be shown unless any required address info (eg Zip, country) of the shopper is known; with registered this is already known, but guests must first enter their billing address for shipping to be calculated.
Title: Re: Shipping doesn't work without logging in
Post by: vibinr on May 06, 2014, 18:41:00 PM
Quote from: GJC Web Design on May 06, 2014, 16:49:57 PM
and when you switch on debugging what does it say?

I switched on debugging, but when I go to Tools > Log > com_virtuemart.log.php, there it says -

"ERROR vmError: vmPdf: For the pdf, you must install the tcpdf library at /Applications/MAMP/htdocs/pavins.in/libraries/tcpdf"

So I downloaded the tcpdf package and installed it. Now there's a "tcpdf" folder in my /libraries folder. But still, the same error shows up.

Quote from: jenkinhill on May 06, 2014, 16:51:04 PM
Shipping cannot be shown unless any required address info (eg Zip, country) of the shopper is known; with registered this is already known, but guests must first enter their billing address for shipping to be calculated.

Actually, the guest user is given all the fields to enter - zip code/country/address etc. After entering all these and clicking "Checkout as guest", I get the error.

BTW, both of you, thanks a lot for taking time to try answering my question :)
Title: Re: Shipping doesn't work without logging in
Post by: GJC Web Design on May 06, 2014, 19:28:07 PM
Wouldn't worry about the pdf library for the moment - will have no effect on this problem
The reason I said to use the debug is it should print out (on the screen) all the shipping etc calcs it is doing - in there you should see why no shipping method matches the data sent

have you got shopping groups selected in your shipping methods? You shouldn't  - it should be blank i.e. all groups
Title: Re: Shipping doesn't work without logging in
Post by: vibinr on May 07, 2014, 05:11:42 AM
Quote from: GJC Web Design on May 06, 2014, 19:28:07 PM
Wouldn't worry about the pdf library for the moment - will have no effect on this problem
The reason I said to use the debug is it should print out (on the screen) all the shipping etc calcs it is doing - in there you should see why no shipping method matches the data sent

have you got shopping groups selected in your shipping methods? You shouldn't  - it should be blank i.e. all groups

Man, you're awesome!

Didn't think it was this simple. I just removed Shopper group from Payment methods and Shipping methods. Now it works.

Cheers!  ;D
Title: Re: Shipping doesn't work without logging in
Post by: vibinr on May 07, 2014, 09:08:30 AM
Noticing a one more small problem on the checkout page.

When I try to checkout as a guest, I see an error message saying "Invalid Credentials. Please try again".
Here's the screenshot (Billing information hidden intentionally) : http://cl.ly/VONd/Screen%20Shot%202014-05-07%20at%2012.28.16%20pm.PNG

In spite of this error, I can go through the payment gateway just fine. (Shipment/Payment automatically selected)
Title: Re: Shipping doesn't work without logging in
Post by: GJC Web Design on May 07, 2014, 09:22:32 AM
Doesn't look like any error I know from VM - would assume it is from your payment plugin/gateway