Author Topic: wired bug show in checkout page without login  (Read 108 times)

florihana

  • Beginner
  • *
  • Posts: 21
  • A beginner
wired bug show in checkout page without login
« on: September 06, 2017, 10:45:47 am »
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

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9322
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: wired bug show in checkout page without login
« Reply #1 on: September 06, 2017, 10:52:39 am »
Why the heck do you not use vm3.2.4?
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

florihana

  • Beginner
  • *
  • Posts: 21
  • A beginner
Re: wired bug show in checkout page without login
« Reply #2 on: September 06, 2017, 11:54:42 am »
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