VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: duncan12 on October 08, 2015, 18:50:15 PM

Title: Viewing cart when not logged in is disturbing.
Post by: duncan12 on October 08, 2015, 18:50:15 PM
If my customers are not logged in, and if they add something to their cart, then view their cart, the get a page riddled with warnings. It is a disturbing customer experience. See attachment:

I've temporarily hidden my store in a subdirectory until I can resolve some of these troubling errors: http://www.bevaradesign.com/joomla
Title: Re: Viewing cart when not logged in is disturbing.
Post by: jenkinhill on October 08, 2015, 19:28:05 PM
You are using a non-VirtueMart default template for checkout. Looks like an issue with Gavick's code - you don't give any versions, but is the template compatible with the one you are using?
Title: Re: Viewing cart when not logged in is disturbing.
Post by: duncan12 on October 09, 2015, 18:29:25 PM
I released the site and it isn't hidden in a folder anymore: http://www.bevaradesign.com

I am using Virtuemart 3 and that's what came with the Gavick Template InStyle. So compatibility should not be the issue. I fiddled with a plugin that removed two of the warnings, but there are still two warnings which I'd like to remove.

When somebody views their cart and they are not logged in, it is obvious that we cannot calculate the tax, so I'd like that error to go away entirely.
Title: Re: Viewing cart when not logged in is disturbing.
Post by: jenkinhill on October 09, 2015, 23:27:30 PM
Quote
I am using Virtuemart 3 and that's what came with the Gavick Template

Means nothing to us. There have been many "VM3" versions released over the last year, the current version which you should be using is 3.0.10

You must first rule out issues that may be caused by your template, so test with the Protostar template to see if you get the same problem.
Title: Re: Viewing cart when not logged in is disturbing.
Post by: duncan12 on October 10, 2015, 01:09:46 AM
I am using 3.0.10

Here is it on the Protostar template. Lots of warnings about not being able to calculate tax when not logged in.
Title: Re: Viewing cart when not logged in is disturbing.
Post by: GJC Web Design on October 10, 2015, 01:35:58 AM
and what does your tax config look like?
Title: Re: Viewing cart when not logged in is disturbing.
Post by: AH on October 10, 2015, 10:23:44 AM
You look to have tax based on address and as no address is entered the message pops up

Title: Re: Viewing cart when not logged in is disturbing.
Post by: duncan12 on October 12, 2015, 19:04:39 PM
I'm using AvaTax. And I can understand why it can't calculate the tax... because I'm not logged in and it doesn't know my address.

I just think the user experience is bad. It would prefer if it did not throw an error at all. I tried this on some other stores (non-virtuemart) to see what they do, and they don't throw any errors. They just show tax as $0 until there is a shipping address. That approach makes sense to me.

It this error trigger configurable, or do I need to customize/hack virtuemart?
Title: Re: Viewing cart when not logged in is disturbing.
Post by: GJC Web Design on October 12, 2015, 19:44:49 PM
I'm surprised Avatax does this...  perhaps you should have used my TaxCloud extension instead...  ;)    :P

If there is no config for this I guess a hack to the avalara.php is required....  but I just tried enabling Avatax on a test site ..

not logged in I didn't receive any address notices... 

Please remove your attachment as it has your Avatax details..
Title: Re: Viewing cart when not logged in is disturbing.-SOLVED
Post by: duncan12 on October 12, 2015, 20:06:23 PM
OK. I figured it out. There is a setting in Avatax called "Prevent checkout if address is invalid." Unselect it and this error condition goes away. Thanks GJC.
Title: Re: Viewing cart when not logged in is disturbing.
Post by: Milbo on October 13, 2015, 22:51:46 PM
Quote from: GJC Web Design on October 12, 2015, 19:44:49 PM
I'm surprised Avatax does this...  perhaps you should have used my TaxCloud extension instead...  ;)    :P

which is a clone of avatax. It is even so cloned (lol), that if both plugins are activated, the native one does not work anylonger. You should fix that, btw.