News:

Support the VirtueMart project and become a member

Main Menu

wired bug show in checkout page without login

Started by florihana, September 06, 2017, 10:45:47 AM

Previous topic - Next topic

florihana

Hi experts:

Jommla 3.6
VirtueMart 3.0.18

In our site web site, if user is not login, the default country will still set as France,
I had check in Admin/ virtuemart/ configuration/ custom filed/ virtuemart_country_id

had set no default value and also in database SQL has no default value set as well

please see this link: https://www.florihana.com/en/view-your-cart-content.html
we can see Bill to information has show France even user has not login

could any one help if had the same experience?

thank you so much

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

florihana

Hi Mibo,

That's good question, I had tried once and the site had bit problem in checkout page
so I restore back

But I think this is necessary to update;;;

And also I found the solution ( but still dont know why the problem from)
in your templte/html/com_virtuemart/cart/default_address.php

to generate Bill address part
foreach ($this->cart->BTaddress['fields'] as $item)
I had add this:
if($this->cart->user->virtuemart_user_id==0) break;

so it will not generate any info from database so we will not no longer see the country string: France

thank you