VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: vagrant on April 30, 2014, 17:51:03 PM

Title: As soon I click on confirm purchase nothing happens?
Post by: vagrant on April 30, 2014, 17:51:03 PM
Hey respectful helpers hope you all are doing fine
        I am using virutemart 2.6.0 and joomla 2.5.19
I updated virtuemart to 2.6.0 and then whenever I press on  confirm purchase nothing happens.If I leave billing information empty and press confirm purchase it asks me to fill billing information but when I fill it and press confirm purchase nothing happens.
Please help thanks in advance
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: jenkinhill on April 30, 2014, 18:06:35 PM
URL?
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: jenkinhill on April 30, 2014, 18:36:29 PM
Error on confirm is
TypeError: document.id(...) is null
if(valid_billto && document.id('virtuemart_country_id').value<=0) {

Seems to be looking for Country.

Are you sure that template with its overrides is compatible with VM2.6?
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: vagrant on April 30, 2014, 18:44:42 PM
Yeah it is for sure even I reinstall VM few times but invain
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: GJC Web Design on April 30, 2014, 19:13:25 PM
as Jenks says - it is looking for a Country id in the validation

if(valid_billto && document.id('virtuemart_country_id').value<=0) {
valid_billto = false;
return alert(Joomla.JText._('SYSTEM_ONESTEPCHECKOUT_COUNTRY_INVALID'));
}

there is no element with an id of virtuemart_country_id  on the checkout page .. either add a country field and hide it by css or remove that validation
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: vagrant on April 30, 2014, 23:34:01 PM
Hey GJC and Jenkinhill
      Thanks a lot for explaining me very well. Its working as soon I added a country field you both are star :)
Can you please tell me how to remove its validation as this website is only for one country?
thanks in advance
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: jenkinhill on May 01, 2014, 00:02:57 AM
I suspect the delivery or payment plugin requires a country to be entered.
Title: Re: As soon I click on confirm purchase nothing happens?
Post by: vagrant on May 01, 2014, 00:28:30 AM
Hey Jenkinhill
Thanks again and yes you were right but as soon I added country in shipment and payment method shipment and payment disappeared from the checkout point.
I added deafult id of my country in virtuemart_country_id so country is already selected when customer is filling the form so its perfectly fine now.
I think when I upgraded to 2.6.0 it changed all the settings ti default which it shouldn't be but its all fine now
thanks a lot you all are star cheers :)